0s autopkgtest [01:08:06]: starting date and time: 2026-02-06 01:08:06+0000 0s autopkgtest [01:08:06]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [01:08:06]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.4uhoyazn/out --timeout-copy=6000 --needs-internet=try --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3.14 --apt-upgrade glib2.0 --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3.14/3.14.3-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@sto01-ppc64el-13.secgroup --name adt-resolute-ppc64el-glib2.0-20260206-002641-juju-7f2275-prod-proposed-migration-environment-20-dce05e57-bf64-42a2-997c-5f6963aa1fa8 --image adt/ubuntu-resolute-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-autopkgtest-workers-ppc64el -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-ppc64el-glib2.0-20260206-002641-juju-7f2275-prod-proposed-migration-environment-20-dce05e57-bf64-42a2-997c-5f6963aa1fa8 from image adt/ubuntu-resolute-ppc64el-server-20260205.img (UUID f866c950-0b62-4023-bac6-0f13279e15ed)... 110s autopkgtest [01:09:56]: testbed dpkg architecture: ppc64el 110s autopkgtest [01:09:56]: testbed apt version: 3.1.14 110s autopkgtest [01:09:56]: @@@@@@@@@@@@@@@@@@@@ test bed setup 111s autopkgtest [01:09:57]: testbed release detected to be: None 111s autopkgtest [01:09:57]: updating testbed package index (apt update) 112s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 112s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 112s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 112s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 112s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1631 kB] 112s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [31.4 kB] 112s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5260 B] 112s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [221 kB] 112s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el Packages [262 kB] 112s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el Packages [1416 kB] 112s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse ppc64el Packages [19.7 kB] 112s Fetched 3711 kB in 1s (4987 kB/s) 113s Reading package lists... 114s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 114s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 114s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 114s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 115s Reading package lists... 115s Reading package lists... 115s Building dependency tree... 115s Reading state information... 115s Calculating upgrade... 115s The following packages will be upgraded: 115s libdrm-amdgpu1 libdrm-common libdrm2 mawk pollinate python3-referencing 115s python3.14-gdbm sed 115s 8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 115s Need to get 518 kB of archives. 115s After this operation, 0 B of additional disk space will be used. 115s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el sed ppc64el 4.9-2build3 [211 kB] 115s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el mawk ppc64el 1.3.4.20260129-1 [147 kB] 115s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm-common all 2.4.131-1 [9774 B] 115s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm2 ppc64el 2.4.131-1 [51.4 kB] 115s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3.14-gdbm ppc64el 3.14.3-1 [34.4 kB] 115s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm-amdgpu1 ppc64el 2.4.131-1 [27.5 kB] 115s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el pollinate all 4.33-4ubuntu5 [14.0 kB] 115s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-referencing all 0.36.2-1ubuntu2 [22.2 kB] 116s dpkg-preconfigure: unable to re-open stdin: No such file or directory 116s Fetched 518 kB in 0s (17.9 MB/s) 116s (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 ... 82008 files and directories currently installed.) 116s Preparing to unpack .../sed_4.9-2build3_ppc64el.deb ... 116s Unpacking sed (4.9-2build3) over (4.9-2build2) ... 116s Setting up sed (4.9-2build3) ... 116s (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 ... 82008 files and directories currently installed.) 116s Preparing to unpack .../0-mawk_1.3.4.20260129-1_ppc64el.deb ... 116s Unpacking mawk (1.3.4.20260129-1) over (1.3.4.20250131-2) ... 116s Preparing to unpack .../1-libdrm-common_2.4.131-1_all.deb ... 116s Unpacking libdrm-common (2.4.131-1) over (2.4.129-1) ... 116s Preparing to unpack .../2-libdrm2_2.4.131-1_ppc64el.deb ... 116s Unpacking libdrm2:ppc64el (2.4.131-1) over (2.4.129-1) ... 116s Preparing to unpack .../3-python3.14-gdbm_3.14.3-1_ppc64el.deb ... 116s Unpacking python3.14-gdbm (3.14.3-1) over (3.14.2-1) ... 116s Preparing to unpack .../4-libdrm-amdgpu1_2.4.131-1_ppc64el.deb ... 116s Unpacking libdrm-amdgpu1:ppc64el (2.4.131-1) over (2.4.129-1) ... 116s Preparing to unpack .../5-pollinate_4.33-4ubuntu5_all.deb ... 116s Unpacking pollinate (4.33-4ubuntu5) over (4.33-4ubuntu4) ... 116s Preparing to unpack .../6-python3-referencing_0.36.2-1ubuntu2_all.deb ... 117s Unpacking python3-referencing (0.36.2-1ubuntu2) over (0.36.2-1ubuntu1) ... 117s Setting up pollinate (4.33-4ubuntu5) ... 127s Setting up python3.14-gdbm (3.14.3-1) ... 127s Setting up mawk (1.3.4.20260129-1) ... 127s Setting up libdrm-common (2.4.131-1) ... 127s Setting up python3-referencing (0.36.2-1ubuntu2) ... 128s Setting up libdrm2:ppc64el (2.4.131-1) ... 128s Setting up libdrm-amdgpu1:ppc64el (2.4.131-1) ... 128s Processing triggers for man-db (2.13.1-1) ... 129s Processing triggers for install-info (7.2-5) ... 129s Processing triggers for libc-bin (2.42-2ubuntu4) ... 129s autopkgtest [01:10:15]: upgrading testbed (apt dist-upgrade and autopurge) 129s Reading package lists... 130s Building dependency tree... 130s Reading state information... 130s Calculating upgrade... 130s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 130s Reading package lists... 130s Building dependency tree... 130s Reading state information... 130s Solving dependencies... 130s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 130s autopkgtest [01:10:16]: rebooting testbed after setup commands that affected boot 178s autopkgtest [01:11:04]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 12 16:45:54 UTC 2026 185s autopkgtest [01:11:11]: @@@@@@@@@@@@@@@@@@@@ apt-source glib2.0 195s Get:1 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (dsc) [4685 B] 195s Get:2 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (tar) [661 kB] 195s Get:3 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (tar) [5675 kB] 195s Get:4 http://ftpmaster.internal/ubuntu resolute/main glib2.0 2.86.3-4 (diff) [141 kB] 195s gpgv: Signature made Thu Jan 1 13:00:10 2026 UTC 195s gpgv: using RSA key 4D0BE12F0E4776D8AACE9696E66C775AEBFE6C7D 195s gpgv: Can't check signature: No public key 195s dpkg-source: warning: cannot verify inline signature for ./glib2.0_2.86.3-4.dsc: no acceptable signature found 196s autopkgtest [01:11:22]: testing package glib2.0 version 2.86.3-4 203s autopkgtest [01:11:29]: build not needed 212s autopkgtest [01:11:38]: test build: preparing testbed 212s Reading package lists... 213s Building dependency tree... 213s Reading state information... 213s Solving dependencies... 213s The following NEW packages will be installed: 213s build-essential cpp cpp-15 cpp-15-powerpc64le-linux-gnu 213s cpp-powerpc64le-linux-gnu g++ g++-15 g++-15-powerpc64le-linux-gnu 213s g++-powerpc64le-linux-gnu gcc gcc-15 gcc-15-powerpc64le-linux-gnu 213s gcc-powerpc64le-linux-gnu libasan8 libblkid-dev libc-dev-bin libc6-dev 213s libcc1-0 libcrypt-dev libffi-dev libgcc-15-dev libgio-2.0-dev libgomp1 213s libisl23 libitm1 liblsan0 libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 213s libpcre2-dev libpcre2-posix3 libpkgconf3 libquadmath0 libselinux-dev 213s libsepol-dev libstdc++-15-dev libsysprof-capture-4-dev libtsan2 libubsan1 213s linux-libc-dev pkgconf pkgconf-bin rpcsvc-proto uuid-dev zlib1g-dev 213s 0 upgraded, 46 newly installed, 0 to remove and 0 not upgraded. 213s Need to get 71.6 MB of archives. 213s After this operation, 268 MB of additional disk space will be used. 213s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el libc-dev-bin ppc64el 2.42-2ubuntu4 [23.9 kB] 213s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el linux-libc-dev ppc64el 6.18.0-9.9 [1847 kB] 213s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el libcrypt-dev ppc64el 1:4.5.1-1 [162 kB] 213s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el rpcsvc-proto ppc64el 1.4.3-1build1 [84.2 kB] 213s Get:5 http://ftpmaster.internal/ubuntu resolute/main ppc64el libc6-dev ppc64el 2.42-2ubuntu4 [2080 kB] 213s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el libisl23 ppc64el 0.27-1build1 [893 kB] 213s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el libmpc3 ppc64el 1.3.1-2 [62.5 kB] 213s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp-15-powerpc64le-linux-gnu ppc64el 15.2.0-12ubuntu1 [11.4 MB] 213s Get:9 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp-15 ppc64el 15.2.0-12ubuntu1 [1038 B] 213s Get:10 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp-powerpc64le-linux-gnu ppc64el 4:15.2.0-4ubuntu1 [5746 B] 213s Get:11 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp ppc64el 4:15.2.0-4ubuntu1 [22.4 kB] 213s Get:12 http://ftpmaster.internal/ubuntu resolute/main ppc64el libcc1-0 ppc64el 15.2.0-12ubuntu1 [49.0 kB] 213s Get:13 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgomp1 ppc64el 15.2.0-12ubuntu1 [169 kB] 213s Get:14 http://ftpmaster.internal/ubuntu resolute/main ppc64el libitm1 ppc64el 15.2.0-12ubuntu1 [32.2 kB] 213s Get:15 http://ftpmaster.internal/ubuntu resolute/main ppc64el libasan8 ppc64el 15.2.0-12ubuntu1 [3006 kB] 214s Get:16 http://ftpmaster.internal/ubuntu resolute/main ppc64el liblsan0 ppc64el 15.2.0-12ubuntu1 [1374 kB] 214s Get:17 http://ftpmaster.internal/ubuntu resolute/main ppc64el libtsan2 ppc64el 15.2.0-12ubuntu1 [2729 kB] 214s Get:18 http://ftpmaster.internal/ubuntu resolute/main ppc64el libubsan1 ppc64el 15.2.0-12ubuntu1 [1231 kB] 214s Get:19 http://ftpmaster.internal/ubuntu resolute/main ppc64el libquadmath0 ppc64el 15.2.0-12ubuntu1 [160 kB] 214s Get:20 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgcc-15-dev ppc64el 15.2.0-12ubuntu1 [1670 kB] 214s Get:21 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc-15-powerpc64le-linux-gnu ppc64el 15.2.0-12ubuntu1 [22.4 MB] 214s Get:22 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc-15 ppc64el 15.2.0-12ubuntu1 [530 kB] 214s Get:23 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc-powerpc64le-linux-gnu ppc64el 4:15.2.0-4ubuntu1 [1220 B] 214s Get:24 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc ppc64el 4:15.2.0-4ubuntu1 [5032 B] 214s Get:25 http://ftpmaster.internal/ubuntu resolute/main ppc64el libstdc++-15-dev ppc64el 15.2.0-12ubuntu1 [2747 kB] 214s Get:26 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++-15-powerpc64le-linux-gnu ppc64el 15.2.0-12ubuntu1 [13.0 MB] 215s Get:27 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++-15 ppc64el 15.2.0-12ubuntu1 [25.3 kB] 215s Get:28 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++-powerpc64le-linux-gnu ppc64el 4:15.2.0-4ubuntu1 [970 B] 215s Get:29 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++ ppc64el 4:15.2.0-4ubuntu1 [1092 B] 215s Get:30 http://ftpmaster.internal/ubuntu resolute/main ppc64el build-essential ppc64el 12.12ubuntu2 [5256 B] 215s Get:31 http://ftpmaster.internal/ubuntu resolute/main ppc64el libffi-dev ppc64el 3.5.2-3 [72.7 kB] 215s Get:32 http://ftpmaster.internal/ubuntu resolute/main ppc64el uuid-dev ppc64el 2.41.2-4ubuntu2 [59.9 kB] 215s Get:33 http://ftpmaster.internal/ubuntu resolute/main ppc64el libblkid-dev ppc64el 2.41.2-4ubuntu2 [293 kB] 215s Get:34 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsepol-dev ppc64el 3.9-2 [516 kB] 215s Get:35 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpcre2-16-0 ppc64el 10.46-1 [292 kB] 215s Get:36 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpcre2-32-0 ppc64el 10.46-1 [275 kB] 215s Get:37 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpcre2-posix3 ppc64el 10.46-1 [7334 B] 215s Get:38 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpcre2-dev ppc64el 10.46-1 [937 kB] 215s Get:39 http://ftpmaster.internal/ubuntu resolute/main ppc64el libselinux-dev ppc64el 3.9-4 [210 kB] 215s Get:40 http://ftpmaster.internal/ubuntu resolute/main ppc64el libmount-dev ppc64el 2.41.2-4ubuntu2 [37.6 kB] 215s Get:41 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsysprof-capture-4-dev ppc64el 49.0-5 [62.0 kB] 215s Get:42 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpkgconf3 ppc64el 1.8.1-4build1 [37.9 kB] 215s Get:43 http://ftpmaster.internal/ubuntu resolute/main ppc64el pkgconf-bin ppc64el 1.8.1-4build1 [22.7 kB] 215s Get:44 http://ftpmaster.internal/ubuntu resolute/main ppc64el pkgconf ppc64el 1.8.1-4build1 [16.8 kB] 215s Get:45 http://ftpmaster.internal/ubuntu resolute/main ppc64el zlib1g-dev ppc64el 1:1.3.dfsg+really1.3.1-1ubuntu2 [903 kB] 215s Get:46 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgio-2.0-dev ppc64el 2.86.3-4 [2206 kB] 215s Fetched 71.6 MB in 2s (33.1 MB/s) 215s Selecting previously unselected package libc-dev-bin. 216s (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 ... 82008 files and directories currently installed.) 216s Preparing to unpack .../00-libc-dev-bin_2.42-2ubuntu4_ppc64el.deb ... 216s Unpacking libc-dev-bin (2.42-2ubuntu4) ... 216s Selecting previously unselected package linux-libc-dev:ppc64el. 216s Preparing to unpack .../01-linux-libc-dev_6.18.0-9.9_ppc64el.deb ... 216s Unpacking linux-libc-dev:ppc64el (6.18.0-9.9) ... 216s Selecting previously unselected package libcrypt-dev:ppc64el. 216s Preparing to unpack .../02-libcrypt-dev_1%3a4.5.1-1_ppc64el.deb ... 216s Unpacking libcrypt-dev:ppc64el (1:4.5.1-1) ... 216s Selecting previously unselected package rpcsvc-proto. 216s Preparing to unpack .../03-rpcsvc-proto_1.4.3-1build1_ppc64el.deb ... 216s Unpacking rpcsvc-proto (1.4.3-1build1) ... 216s Selecting previously unselected package libc6-dev:ppc64el. 216s Preparing to unpack .../04-libc6-dev_2.42-2ubuntu4_ppc64el.deb ... 216s Unpacking libc6-dev:ppc64el (2.42-2ubuntu4) ... 216s Selecting previously unselected package libisl23:ppc64el. 216s Preparing to unpack .../05-libisl23_0.27-1build1_ppc64el.deb ... 216s Unpacking libisl23:ppc64el (0.27-1build1) ... 216s Selecting previously unselected package libmpc3:ppc64el. 216s Preparing to unpack .../06-libmpc3_1.3.1-2_ppc64el.deb ... 216s Unpacking libmpc3:ppc64el (1.3.1-2) ... 216s Selecting previously unselected package cpp-15-powerpc64le-linux-gnu. 216s Preparing to unpack .../07-cpp-15-powerpc64le-linux-gnu_15.2.0-12ubuntu1_ppc64el.deb ... 216s Unpacking cpp-15-powerpc64le-linux-gnu (15.2.0-12ubuntu1) ... 216s Selecting previously unselected package cpp-15. 216s Preparing to unpack .../08-cpp-15_15.2.0-12ubuntu1_ppc64el.deb ... 216s Unpacking cpp-15 (15.2.0-12ubuntu1) ... 216s Selecting previously unselected package cpp-powerpc64le-linux-gnu. 216s Preparing to unpack .../09-cpp-powerpc64le-linux-gnu_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 216s Unpacking cpp-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 216s Selecting previously unselected package cpp. 216s Preparing to unpack .../10-cpp_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 216s Unpacking cpp (4:15.2.0-4ubuntu1) ... 216s Selecting previously unselected package libcc1-0:ppc64el. 216s Preparing to unpack .../11-libcc1-0_15.2.0-12ubuntu1_ppc64el.deb ... 216s Unpacking libcc1-0:ppc64el (15.2.0-12ubuntu1) ... 216s Selecting previously unselected package libgomp1:ppc64el. 216s Preparing to unpack .../12-libgomp1_15.2.0-12ubuntu1_ppc64el.deb ... 216s Unpacking libgomp1:ppc64el (15.2.0-12ubuntu1) ... 216s Selecting previously unselected package libitm1:ppc64el. 216s Preparing to unpack .../13-libitm1_15.2.0-12ubuntu1_ppc64el.deb ... 216s Unpacking libitm1:ppc64el (15.2.0-12ubuntu1) ... 216s Selecting previously unselected package libasan8:ppc64el. 216s Preparing to unpack .../14-libasan8_15.2.0-12ubuntu1_ppc64el.deb ... 216s Unpacking libasan8:ppc64el (15.2.0-12ubuntu1) ... 216s Selecting previously unselected package liblsan0:ppc64el. 216s Preparing to unpack .../15-liblsan0_15.2.0-12ubuntu1_ppc64el.deb ... 216s Unpacking liblsan0:ppc64el (15.2.0-12ubuntu1) ... 216s Selecting previously unselected package libtsan2:ppc64el. 216s Preparing to unpack .../16-libtsan2_15.2.0-12ubuntu1_ppc64el.deb ... 216s Unpacking libtsan2:ppc64el (15.2.0-12ubuntu1) ... 216s Selecting previously unselected package libubsan1:ppc64el. 216s Preparing to unpack .../17-libubsan1_15.2.0-12ubuntu1_ppc64el.deb ... 216s Unpacking libubsan1:ppc64el (15.2.0-12ubuntu1) ... 216s Selecting previously unselected package libquadmath0:ppc64el. 216s Preparing to unpack .../18-libquadmath0_15.2.0-12ubuntu1_ppc64el.deb ... 216s Unpacking libquadmath0:ppc64el (15.2.0-12ubuntu1) ... 216s Selecting previously unselected package libgcc-15-dev:ppc64el. 216s Preparing to unpack .../19-libgcc-15-dev_15.2.0-12ubuntu1_ppc64el.deb ... 216s Unpacking libgcc-15-dev:ppc64el (15.2.0-12ubuntu1) ... 216s Selecting previously unselected package gcc-15-powerpc64le-linux-gnu. 216s Preparing to unpack .../20-gcc-15-powerpc64le-linux-gnu_15.2.0-12ubuntu1_ppc64el.deb ... 216s Unpacking gcc-15-powerpc64le-linux-gnu (15.2.0-12ubuntu1) ... 217s Selecting previously unselected package gcc-15. 217s Preparing to unpack .../21-gcc-15_15.2.0-12ubuntu1_ppc64el.deb ... 217s Unpacking gcc-15 (15.2.0-12ubuntu1) ... 217s Selecting previously unselected package gcc-powerpc64le-linux-gnu. 217s Preparing to unpack .../22-gcc-powerpc64le-linux-gnu_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 217s Unpacking gcc-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 217s Selecting previously unselected package gcc. 217s Preparing to unpack .../23-gcc_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 217s Unpacking gcc (4:15.2.0-4ubuntu1) ... 217s Selecting previously unselected package libstdc++-15-dev:ppc64el. 217s Preparing to unpack .../24-libstdc++-15-dev_15.2.0-12ubuntu1_ppc64el.deb ... 217s Unpacking libstdc++-15-dev:ppc64el (15.2.0-12ubuntu1) ... 217s Selecting previously unselected package g++-15-powerpc64le-linux-gnu. 217s Preparing to unpack .../25-g++-15-powerpc64le-linux-gnu_15.2.0-12ubuntu1_ppc64el.deb ... 217s Unpacking g++-15-powerpc64le-linux-gnu (15.2.0-12ubuntu1) ... 217s Selecting previously unselected package g++-15. 217s Preparing to unpack .../26-g++-15_15.2.0-12ubuntu1_ppc64el.deb ... 217s Unpacking g++-15 (15.2.0-12ubuntu1) ... 217s Selecting previously unselected package g++-powerpc64le-linux-gnu. 217s Preparing to unpack .../27-g++-powerpc64le-linux-gnu_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 217s Unpacking g++-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 217s Selecting previously unselected package g++. 217s Preparing to unpack .../28-g++_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 217s Unpacking g++ (4:15.2.0-4ubuntu1) ... 217s Selecting previously unselected package build-essential. 217s Preparing to unpack .../29-build-essential_12.12ubuntu2_ppc64el.deb ... 217s Unpacking build-essential (12.12ubuntu2) ... 217s Selecting previously unselected package libffi-dev:ppc64el. 217s Preparing to unpack .../30-libffi-dev_3.5.2-3_ppc64el.deb ... 217s Unpacking libffi-dev:ppc64el (3.5.2-3) ... 217s Selecting previously unselected package uuid-dev:ppc64el. 217s Preparing to unpack .../31-uuid-dev_2.41.2-4ubuntu2_ppc64el.deb ... 217s Unpacking uuid-dev:ppc64el (2.41.2-4ubuntu2) ... 217s Selecting previously unselected package libblkid-dev:ppc64el. 217s Preparing to unpack .../32-libblkid-dev_2.41.2-4ubuntu2_ppc64el.deb ... 217s Unpacking libblkid-dev:ppc64el (2.41.2-4ubuntu2) ... 217s Selecting previously unselected package libsepol-dev:ppc64el. 217s Preparing to unpack .../33-libsepol-dev_3.9-2_ppc64el.deb ... 217s Unpacking libsepol-dev:ppc64el (3.9-2) ... 217s Selecting previously unselected package libpcre2-16-0:ppc64el. 217s Preparing to unpack .../34-libpcre2-16-0_10.46-1_ppc64el.deb ... 217s Unpacking libpcre2-16-0:ppc64el (10.46-1) ... 217s Selecting previously unselected package libpcre2-32-0:ppc64el. 217s Preparing to unpack .../35-libpcre2-32-0_10.46-1_ppc64el.deb ... 217s Unpacking libpcre2-32-0:ppc64el (10.46-1) ... 217s Selecting previously unselected package libpcre2-posix3:ppc64el. 217s Preparing to unpack .../36-libpcre2-posix3_10.46-1_ppc64el.deb ... 217s Unpacking libpcre2-posix3:ppc64el (10.46-1) ... 217s Selecting previously unselected package libpcre2-dev:ppc64el. 217s Preparing to unpack .../37-libpcre2-dev_10.46-1_ppc64el.deb ... 217s Unpacking libpcre2-dev:ppc64el (10.46-1) ... 217s Selecting previously unselected package libselinux-dev:ppc64el. 217s Preparing to unpack .../38-libselinux-dev_3.9-4_ppc64el.deb ... 217s Unpacking libselinux-dev:ppc64el (3.9-4) ... 217s Selecting previously unselected package libmount-dev:ppc64el. 217s Preparing to unpack .../39-libmount-dev_2.41.2-4ubuntu2_ppc64el.deb ... 217s Unpacking libmount-dev:ppc64el (2.41.2-4ubuntu2) ... 217s Selecting previously unselected package libsysprof-capture-4-dev:ppc64el. 217s Preparing to unpack .../40-libsysprof-capture-4-dev_49.0-5_ppc64el.deb ... 217s Unpacking libsysprof-capture-4-dev:ppc64el (49.0-5) ... 217s Selecting previously unselected package libpkgconf3:ppc64el. 217s Preparing to unpack .../41-libpkgconf3_1.8.1-4build1_ppc64el.deb ... 218s Unpacking libpkgconf3:ppc64el (1.8.1-4build1) ... 218s Selecting previously unselected package pkgconf-bin. 218s Preparing to unpack .../42-pkgconf-bin_1.8.1-4build1_ppc64el.deb ... 218s Unpacking pkgconf-bin (1.8.1-4build1) ... 218s Selecting previously unselected package pkgconf:ppc64el. 218s Preparing to unpack .../43-pkgconf_1.8.1-4build1_ppc64el.deb ... 218s Unpacking pkgconf:ppc64el (1.8.1-4build1) ... 218s Selecting previously unselected package zlib1g-dev:ppc64el. 218s Preparing to unpack .../44-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu2_ppc64el.deb ... 218s Unpacking zlib1g-dev:ppc64el (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 218s Selecting previously unselected package libgio-2.0-dev:ppc64el. 218s Preparing to unpack .../45-libgio-2.0-dev_2.86.3-4_ppc64el.deb ... 218s Unpacking libgio-2.0-dev:ppc64el (2.86.3-4) ... 218s Setting up linux-libc-dev:ppc64el (6.18.0-9.9) ... 218s Setting up libgomp1:ppc64el (15.2.0-12ubuntu1) ... 218s Setting up libffi-dev:ppc64el (3.5.2-3) ... 218s Setting up libpcre2-16-0:ppc64el (10.46-1) ... 218s Setting up libsysprof-capture-4-dev:ppc64el (49.0-5) ... 218s Setting up libpcre2-32-0:ppc64el (10.46-1) ... 218s Setting up libpkgconf3:ppc64el (1.8.1-4build1) ... 218s Setting up rpcsvc-proto (1.4.3-1build1) ... 218s Setting up libquadmath0:ppc64el (15.2.0-12ubuntu1) ... 218s Setting up libmpc3:ppc64el (1.3.1-2) ... 218s Setting up libsepol-dev:ppc64el (3.9-2) ... 218s Setting up pkgconf-bin (1.8.1-4build1) ... 218s Setting up libubsan1:ppc64el (15.2.0-12ubuntu1) ... 218s Setting up libpcre2-posix3:ppc64el (10.46-1) ... 218s Setting up libcrypt-dev:ppc64el (1:4.5.1-1) ... 218s Setting up libasan8:ppc64el (15.2.0-12ubuntu1) ... 218s Setting up libtsan2:ppc64el (15.2.0-12ubuntu1) ... 218s Setting up libisl23:ppc64el (0.27-1build1) ... 218s Setting up libc-dev-bin (2.42-2ubuntu4) ... 218s Setting up libcc1-0:ppc64el (15.2.0-12ubuntu1) ... 218s Setting up liblsan0:ppc64el (15.2.0-12ubuntu1) ... 218s Setting up libitm1:ppc64el (15.2.0-12ubuntu1) ... 218s Setting up libgcc-15-dev:ppc64el (15.2.0-12ubuntu1) ... 218s Setting up pkgconf:ppc64el (1.8.1-4build1) ... 218s Setting up cpp-15-powerpc64le-linux-gnu (15.2.0-12ubuntu1) ... 218s Setting up cpp-15 (15.2.0-12ubuntu1) ... 218s Setting up libc6-dev:ppc64el (2.42-2ubuntu4) ... 218s Setting up cpp-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 218s Setting up libpcre2-dev:ppc64el (10.46-1) ... 218s Setting up gcc-15-powerpc64le-linux-gnu (15.2.0-12ubuntu1) ... 218s Setting up gcc-15 (15.2.0-12ubuntu1) ... 218s Setting up libstdc++-15-dev:ppc64el (15.2.0-12ubuntu1) ... 218s Setting up gcc-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 218s Setting up uuid-dev:ppc64el (2.41.2-4ubuntu2) ... 218s Setting up zlib1g-dev:ppc64el (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 218s Setting up cpp (4:15.2.0-4ubuntu1) ... 218s Setting up libselinux-dev:ppc64el (3.9-4) ... 218s Setting up libblkid-dev:ppc64el (2.41.2-4ubuntu2) ... 218s Setting up g++-15-powerpc64le-linux-gnu (15.2.0-12ubuntu1) ... 218s Setting up gcc (4:15.2.0-4ubuntu1) ... 218s Setting up g++-15 (15.2.0-12ubuntu1) ... 218s Setting up libmount-dev:ppc64el (2.41.2-4ubuntu2) ... 218s Setting up g++-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 218s Setting up libgio-2.0-dev:ppc64el (2.86.3-4) ... 218s Setting up g++ (4:15.2.0-4ubuntu1) ... 218s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 218s Setting up build-essential (12.12ubuntu2) ... 218s Processing triggers for libc-bin (2.42-2ubuntu4) ... 218s Processing triggers for man-db (2.13.1-1) ... 219s Processing triggers for libglib2.0-0t64:ppc64el (2.86.3-4) ... 219s No schema files found: doing nothing. 219s Processing triggers for install-info (7.2-5) ... 220s autopkgtest [01:11:46]: test build: [----------------------- 220s + mode=dynamic 220s + getopt -o --long static -n debian/tests/build -- 220s + getopt_temp= -- 220s + eval set -- -- 220s + set -- -- 220s + true 220s + shift 220s + break 220s + mktemp -d 220s + WORKDIR=/tmp/tmp.cYFtHuEXf4 220s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 220s + cd /tmp/tmp.cYFtHuEXf4 220s + [ -n ] 220s + CROSS_COMPILE= 220s + cat 220s + cat 220s + cat 220s + cat 220s + cat 220s + cat 220s + cflags= 220s + pcflags= 220s + packages=glib-2.0 220s + pkg-config --cflags --libs glib-2.0 220s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 221s build (glib, dynamic): OK 221s + echo build (glib, dynamic): OK 221s + [ -x glib-dynamic ] 221s + foo=bar ./glib-dynamic 221s + echo run (glib, dynamic): OK 221s + cflags= 221s + pcflags= 221s + packages=gobject-2.0 221s + pkg-config --cflags --libs gobject-2.0 221s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 221s + echo build (gobject, dynamic): OK 221s + [ -x gobject-dynamic ] 221s + foo=bar ./gobject-dynamic 221s + echo run (gobject, dynamic): OK 221s + cflags= 221s + pcflags= 221s + packages=gio-2.0 221s + pkg-config --cflags --libs gio-2.0 221s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-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 221s + echo build (gio, dynamic): OK 221s + [ -x gio-dynamic ] 221s + foo=bar ./gio-dynamic 221s + echo run (gio, dynamic): OK 221s + cflags= 221s + pcflags= 221s + packages=gio-unix-2.0 221s + pkg-config --cflags --libs gio-unix-2.0 221s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-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 221s + echo build (gio-unix, dynamic): OK 221s + [ -x gio-unix-dynamic ] 221s + foo=bar ./gio-unix-dynamic 221s + echo run (gio-unix, dynamic): OK 221s + cflags= 221s + pcflags= 221s + packages=gmodule-2.0 221s + pkg-config --cflags --libs gmodule-2.0 221s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-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 221s + echo build (gmodule, dynamic): OK 221s + [ -x gmodule-dynamic ] 221s + foo=bar ./gmodule-dynamic 221s + echo run (gmodule, dynamic): OK 221s + cflags= 221s + pcflags= 221s + packages=gthread-2.0 221s + pkg-config --cflags --libs gthread-2.0 221s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 221s + echo build (gthread, dynamic): OK 221s + [ -x gthread-dynamic ] 221s + foo=bar ./gthread-dynamic 221s + echo run (gthread, dynamic): OK 221s + rm -rf /tmp/tmp.cYFtHuEXf4 221s run (glib, dynamic): OK 221s build (gobject, dynamic): OK 221s run (gobject, dynamic): OK 221s build (gio, dynamic): OK 221s run (gio, dynamic): OK 221s build (gio-unix, dynamic): OK 221s run (gio-unix, dynamic): OK 221s build (gmodule, dynamic): OK 221s run (gmodule, dynamic): OK 221s build (gthread, dynamic): OK 221s run (gthread, dynamic): OK 221s autopkgtest [01:11:47]: test build: -----------------------] 222s build PASS (superficial) 222s autopkgtest [01:11:48]: test build: - - - - - - - - - - results - - - - - - - - - - 222s autopkgtest [01:11:48]: test build-static: preparing testbed 222s Reading package lists... 222s Building dependency tree... 222s Reading state information... 222s Solving dependencies... 222s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 223s autopkgtest [01:11:49]: test build-static: [----------------------- 223s + mode=dynamic 223s + getopt -o --long static -n debian/tests/build -- --static 223s + getopt_temp= --static -- 223s + eval set -- --static -- 223s + set -- --static -- 223s + true 223s + mode=static 223s + shift 223s + continue 223s + true 223s + shift 223s + break 223s + mktemp -d 223s + WORKDIR=/tmp/tmp.eSbzydt7Qq 223s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 223s + cd /tmp/tmp.eSbzydt7Qq 223s + [ -n ] 223s + CROSS_COMPILE= 223s + cat 223s + cat 223s + cat 223s + cat 223s + cat 223s + cat 223s + cflags= 223s + pcflags= 223s + packages=glib-2.0 223s + cflags=-static 223s + pcflags=--static 223s + pkg-config --static --cflags --libs glib-2.0 223s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-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 223s /usr/bin/powerpc64le-linux-gnu-ld.bfd: /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 223s (.text+0x154): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 223s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x438): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 223s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x1a4): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 223s build (glib, static): OK 223s run (glib, static): OK 223s + echo build (glib, static): OK 223s + [ -x glib-static ] 223s + foo=bar ./glib-static 223s + echo run (glib, static): OK 223s + cflags= 223s + pcflags= 223s + packages=gobject-2.0 223s + cflags=-static 223s + pcflags=--static 223s + pkg-config --static --cflags --libs gobject-2.0 223s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-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 224s /usr/bin/powerpc64le-linux-gnu-ld.bfd: /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 224s (.text+0x154): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 224s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x438): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 224s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x1a4): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 224s build (gobject, static): OK 224s + echo build (gobject, static): OK 224s + [ -x gobject-static ] 224s + foo=bar ./gobject-static 224s run (gobject, static): OK 224s + echo run (gobject, static): OK 224s + cflags= 224s + pcflags= 224s + packages=gio-2.0 224s + cflags=-static 224s + pcflags=--static 224s + continue 224s + cflags= 224s + pcflags= 224s + packages=gio-unix-2.0 224s + cflags=-static 224s + pcflags=--static 224s + continue 224s + cflags= 224s + pcflags= 224s + packages=gmodule-2.0 224s + cflags=-static 224s + pcflags=--static 224s + pkg-config --static --cflags --libs gmodule-2.0 224s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-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 224s /usr/bin/powerpc64le-linux-gnu-ld.bfd: /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../powerpc64le-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 224s (.text+0x944): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 224s /usr/bin/powerpc64le-linux-gnu-ld.bfd: /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 224s (.text+0x154): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 224s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x438): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 224s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x1a4): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 224s build (gmodule, static): OK 224s run (gmodule, static): OK 224s + echo build (gmodule, static): OK 224s + [ -x gmodule-static ] 224s + foo=bar ./gmodule-static 224s + echo run (gmodule, static): OK 224s + cflags= 224s + pcflags= 224s + packages=gthread-2.0 224s + cflags=-static 224s + pcflags=--static 224s + pkg-config --static --cflags --libs gthread-2.0 224s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-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 224s /usr/bin/powerpc64le-linux-gnu-ld.bfd: /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 224s (.text+0x154): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 224s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x438): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 224s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x1a4): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 224s build (gthread, static): OK 224s run (gthread, static): OK 224s + echo build (gthread, static): OK 224s + [ -x gthread-static ] 224s + foo=bar ./gthread-static 224s + echo run (gthread, static): OK 224s + rm -rf /tmp/tmp.eSbzydt7Qq 224s autopkgtest [01:11:50]: test build-static: -----------------------] 225s autopkgtest [01:11:51]: test build-static: - - - - - - - - - - results - - - - - - - - - - 225s build-static PASS (superficial) 225s autopkgtest [01:11:51]: test girepository-tools: preparing testbed 232s Creating nova instance adt-resolute-ppc64el-glib2.0-20260206-002641-juju-7f2275-prod-proposed-migration-environment-20-dce05e57-bf64-42a2-997c-5f6963aa1fa8 from image adt/ubuntu-resolute-ppc64el-server-20260205.img (UUID f866c950-0b62-4023-bac6-0f13279e15ed)... 292s autopkgtest [01:12:58]: testbed dpkg architecture: ppc64el 292s autopkgtest [01:12:58]: testbed apt version: 3.1.14 292s autopkgtest [01:12:58]: @@@@@@@@@@@@@@@@@@@@ test bed setup 292s autopkgtest [01:12:58]: testbed release detected to be: resolute 293s autopkgtest [01:12:59]: updating testbed package index (apt update) 293s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 293s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 293s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 293s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 293s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [31.4 kB] 294s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5260 B] 294s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [221 kB] 294s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1631 kB] 294s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el Packages [262 kB] 294s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el Packages [1416 kB] 294s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse ppc64el Packages [19.7 kB] 294s Fetched 3711 kB in 1s (3573 kB/s) 295s Reading package lists... 296s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 296s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 296s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 296s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 297s Reading package lists... 297s Reading package lists... 297s Building dependency tree... 297s Reading state information... 297s Calculating upgrade... 297s The following packages will be upgraded: 297s libdrm-amdgpu1 libdrm-common libdrm2 mawk pollinate python3-referencing 297s python3.14-gdbm sed 297s 8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 297s Need to get 518 kB of archives. 297s After this operation, 0 B of additional disk space will be used. 297s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el sed ppc64el 4.9-2build3 [211 kB] 297s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el mawk ppc64el 1.3.4.20260129-1 [147 kB] 297s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm-common all 2.4.131-1 [9774 B] 297s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm2 ppc64el 2.4.131-1 [51.4 kB] 297s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3.14-gdbm ppc64el 3.14.3-1 [34.4 kB] 297s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm-amdgpu1 ppc64el 2.4.131-1 [27.5 kB] 297s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el pollinate all 4.33-4ubuntu5 [14.0 kB] 297s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-referencing all 0.36.2-1ubuntu2 [22.2 kB] 297s dpkg-preconfigure: unable to re-open stdin: No such file or directory 297s Fetched 518 kB in 0s (18.3 MB/s) 298s (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 ... 82008 files and directories currently installed.) 298s Preparing to unpack .../sed_4.9-2build3_ppc64el.deb ... 298s Unpacking sed (4.9-2build3) over (4.9-2build2) ... 298s Setting up sed (4.9-2build3) ... 298s (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 ... 82008 files and directories currently installed.) 298s Preparing to unpack .../0-mawk_1.3.4.20260129-1_ppc64el.deb ... 298s Unpacking mawk (1.3.4.20260129-1) over (1.3.4.20250131-2) ... 298s Preparing to unpack .../1-libdrm-common_2.4.131-1_all.deb ... 298s Unpacking libdrm-common (2.4.131-1) over (2.4.129-1) ... 298s Preparing to unpack .../2-libdrm2_2.4.131-1_ppc64el.deb ... 298s Unpacking libdrm2:ppc64el (2.4.131-1) over (2.4.129-1) ... 298s Preparing to unpack .../3-python3.14-gdbm_3.14.3-1_ppc64el.deb ... 298s Unpacking python3.14-gdbm (3.14.3-1) over (3.14.2-1) ... 298s Preparing to unpack .../4-libdrm-amdgpu1_2.4.131-1_ppc64el.deb ... 298s Unpacking libdrm-amdgpu1:ppc64el (2.4.131-1) over (2.4.129-1) ... 298s Preparing to unpack .../5-pollinate_4.33-4ubuntu5_all.deb ... 298s Unpacking pollinate (4.33-4ubuntu5) over (4.33-4ubuntu4) ... 299s Preparing to unpack .../6-python3-referencing_0.36.2-1ubuntu2_all.deb ... 299s Unpacking python3-referencing (0.36.2-1ubuntu2) over (0.36.2-1ubuntu1) ... 299s Setting up pollinate (4.33-4ubuntu5) ... 309s Setting up python3.14-gdbm (3.14.3-1) ... 309s Setting up mawk (1.3.4.20260129-1) ... 309s Setting up libdrm-common (2.4.131-1) ... 309s Setting up python3-referencing (0.36.2-1ubuntu2) ... 310s Setting up libdrm2:ppc64el (2.4.131-1) ... 310s Setting up libdrm-amdgpu1:ppc64el (2.4.131-1) ... 310s Processing triggers for man-db (2.13.1-1) ... 311s Processing triggers for install-info (7.2-5) ... 311s Processing triggers for libc-bin (2.42-2ubuntu4) ... 311s autopkgtest [01:13:17]: upgrading testbed (apt dist-upgrade and autopurge) 311s Reading package lists... 311s Building dependency tree... 311s Reading state information... 311s Calculating upgrade... 312s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 312s Reading package lists... 312s Building dependency tree... 312s Reading state information... 312s Solving dependencies... 312s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 312s autopkgtest [01:13:18]: rebooting testbed after setup commands that affected boot 356s Reading package lists... 356s Building dependency tree... 356s Reading state information... 356s Solving dependencies... 356s The following NEW packages will be installed: 356s gir1.2-glib-2.0-dev girepository-tools native-architecture 356s 0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded. 356s Need to get 1003 kB of archives. 356s After this operation, 12.5 MB of additional disk space will be used. 356s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el gir1.2-glib-2.0-dev ppc64el 2.86.3-4 [865 kB] 357s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el native-architecture all 0.2.6build1 [2256 B] 357s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el girepository-tools ppc64el 2.86.3-4 [135 kB] 357s Fetched 1003 kB in 0s (3426 kB/s) 357s Selecting previously unselected package gir1.2-glib-2.0-dev:ppc64el. 357s (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 ... 82008 files and directories currently installed.) 357s Preparing to unpack .../gir1.2-glib-2.0-dev_2.86.3-4_ppc64el.deb ... 357s Unpacking gir1.2-glib-2.0-dev:ppc64el (2.86.3-4) ... 357s Selecting previously unselected package native-architecture. 357s Preparing to unpack .../native-architecture_0.2.6build1_all.deb ... 357s Unpacking native-architecture (0.2.6build1) ... 357s Selecting previously unselected package girepository-tools:ppc64el. 357s Preparing to unpack .../girepository-tools_2.86.3-4_ppc64el.deb ... 357s Unpacking girepository-tools:ppc64el (2.86.3-4) ... 357s Setting up native-architecture (0.2.6build1) ... 357s Setting up gir1.2-glib-2.0-dev:ppc64el (2.86.3-4) ... 357s Setting up girepository-tools:ppc64el (2.86.3-4) ... 357s Processing triggers for man-db (2.13.1-1) ... 368s autopkgtest [01:14:14]: test girepository-tools: [----------------------- 369s + cd /tmp/autopkgtest.5Le3RJ/autopkgtest_tmp 369s + dpkg-architecture -qDEB_HOST_GNU_TYPE 369s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 369s + DEB_HOST_GNU_TYPE=powerpc64le-linux-gnu 369s + dpkg-architecture -qDEB_HOST_MULTIARCH 369s dpkg-architecture: warning: cannot determine CC system type, falling back to default (native compilation) 369s + DEB_HOST_MULTIARCH=powerpc64le-linux-gnu 369s + powerpc64le-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 369s typelib: GLib-2.0 369s + powerpc64le-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/powerpc64le-linux-gnu/gir-1.0/GLib-2.0.gir 369s + powerpc64le-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 369s autopkgtest [01:14:15]: test girepository-tools: -----------------------] 370s girepository-tools PASS (superficial) 370s autopkgtest [01:14:16]: test girepository-tools: - - - - - - - - - - results - - - - - - - - - - 370s autopkgtest [01:14:16]: test libgio-2.0-dev-bin: preparing testbed 389s Creating nova instance adt-resolute-ppc64el-glib2.0-20260206-002641-juju-7f2275-prod-proposed-migration-environment-20-dce05e57-bf64-42a2-997c-5f6963aa1fa8 from image adt/ubuntu-resolute-ppc64el-server-20260205.img (UUID f866c950-0b62-4023-bac6-0f13279e15ed)... 439s autopkgtest [01:15:25]: testbed dpkg architecture: ppc64el 440s autopkgtest [01:15:26]: testbed apt version: 3.1.14 440s autopkgtest [01:15:26]: @@@@@@@@@@@@@@@@@@@@ test bed setup 440s autopkgtest [01:15:26]: testbed release detected to be: resolute 441s autopkgtest [01:15:27]: updating testbed package index (apt update) 441s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 441s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 441s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 441s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 441s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [31.4 kB] 441s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [221 kB] 441s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5260 B] 441s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1631 kB] 442s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el Packages [262 kB] 442s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el Packages [1416 kB] 442s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse ppc64el Packages [19.7 kB] 442s Fetched 3711 kB in 1s (3783 kB/s) 443s Reading package lists... 444s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 444s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 444s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 444s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 444s Reading package lists... 444s Reading package lists... 445s Building dependency tree... 445s Reading state information... 445s Calculating upgrade... 445s The following packages will be upgraded: 445s libdrm-amdgpu1 libdrm-common libdrm2 mawk pollinate python3-referencing 445s python3.14-gdbm sed 445s 8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 445s Need to get 518 kB of archives. 445s After this operation, 0 B of additional disk space will be used. 445s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el sed ppc64el 4.9-2build3 [211 kB] 445s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el mawk ppc64el 1.3.4.20260129-1 [147 kB] 445s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm-common all 2.4.131-1 [9774 B] 445s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm2 ppc64el 2.4.131-1 [51.4 kB] 445s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3.14-gdbm ppc64el 3.14.3-1 [34.4 kB] 445s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm-amdgpu1 ppc64el 2.4.131-1 [27.5 kB] 445s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el pollinate all 4.33-4ubuntu5 [14.0 kB] 445s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-referencing all 0.36.2-1ubuntu2 [22.2 kB] 445s dpkg-preconfigure: unable to re-open stdin: No such file or directory 445s Fetched 518 kB in 0s (20.1 MB/s) 446s (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 ... 82008 files and directories currently installed.) 446s Preparing to unpack .../sed_4.9-2build3_ppc64el.deb ... 446s Unpacking sed (4.9-2build3) over (4.9-2build2) ... 446s Setting up sed (4.9-2build3) ... 446s (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 ... 82008 files and directories currently installed.) 446s Preparing to unpack .../0-mawk_1.3.4.20260129-1_ppc64el.deb ... 446s Unpacking mawk (1.3.4.20260129-1) over (1.3.4.20250131-2) ... 446s Preparing to unpack .../1-libdrm-common_2.4.131-1_all.deb ... 446s Unpacking libdrm-common (2.4.131-1) over (2.4.129-1) ... 446s Preparing to unpack .../2-libdrm2_2.4.131-1_ppc64el.deb ... 446s Unpacking libdrm2:ppc64el (2.4.131-1) over (2.4.129-1) ... 446s Preparing to unpack .../3-python3.14-gdbm_3.14.3-1_ppc64el.deb ... 446s Unpacking python3.14-gdbm (3.14.3-1) over (3.14.2-1) ... 446s Preparing to unpack .../4-libdrm-amdgpu1_2.4.131-1_ppc64el.deb ... 446s Unpacking libdrm-amdgpu1:ppc64el (2.4.131-1) over (2.4.129-1) ... 446s Preparing to unpack .../5-pollinate_4.33-4ubuntu5_all.deb ... 446s Unpacking pollinate (4.33-4ubuntu5) over (4.33-4ubuntu4) ... 446s Preparing to unpack .../6-python3-referencing_0.36.2-1ubuntu2_all.deb ... 446s Unpacking python3-referencing (0.36.2-1ubuntu2) over (0.36.2-1ubuntu1) ... 446s Setting up pollinate (4.33-4ubuntu5) ... 457s Setting up python3.14-gdbm (3.14.3-1) ... 457s Setting up mawk (1.3.4.20260129-1) ... 457s Setting up libdrm-common (2.4.131-1) ... 457s Setting up python3-referencing (0.36.2-1ubuntu2) ... 457s Setting up libdrm2:ppc64el (2.4.131-1) ... 457s Setting up libdrm-amdgpu1:ppc64el (2.4.131-1) ... 457s Processing triggers for man-db (2.13.1-1) ... 458s Processing triggers for install-info (7.2-5) ... 458s Processing triggers for libc-bin (2.42-2ubuntu4) ... 458s autopkgtest [01:15:44]: upgrading testbed (apt dist-upgrade and autopurge) 458s Reading package lists... 459s Building dependency tree... 459s Reading state information... 459s Calculating upgrade... 459s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 459s Reading package lists... 459s Building dependency tree... 459s Reading state information... 459s Solving dependencies... 459s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 459s autopkgtest [01:15:45]: rebooting testbed after setup commands that affected boot 502s Reading package lists... 502s Building dependency tree... 502s Reading state information... 502s Solving dependencies... 502s The following NEW packages will be installed: 502s libgio-2.0-dev-bin 502s 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 502s Need to get 131 kB of archives. 502s After this operation, 822 kB of additional disk space will be used. 502s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgio-2.0-dev-bin ppc64el 2.86.3-4 [131 kB] 502s Fetched 131 kB in 0s (7821 kB/s) 502s Selecting previously unselected package libgio-2.0-dev-bin. 502s (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 ... 82008 files and directories currently installed.) 502s Preparing to unpack .../libgio-2.0-dev-bin_2.86.3-4_ppc64el.deb ... 502s Unpacking libgio-2.0-dev-bin (2.86.3-4) ... 503s Setting up libgio-2.0-dev-bin (2.86.3-4) ... 503s Processing triggers for man-db (2.13.1-1) ... 515s autopkgtest [01:16:41]: test libgio-2.0-dev-bin: [----------------------- 515s + gdbus-codegen --help 515s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 515s [--c-namespace NAMESPACE] [--c-generate-object-manager] 515s [--c-generate-autocleanup {none,objects,all}] 515s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 515s [--generate-rst OUTFILES] [--pragma-once] 515s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 515s [--glib-min-required VERSION] 515s [--glib-max-allowed VERSION] 515s [--symbol-decorator SYMBOL_DECORATOR] 515s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 515s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 515s [--generate-c-code OUTFILES | --header | --body | 515s --interface-info-header | --interface-info-body] 515s [--output FILE | --output-directory OUTDIR] 515s FILE [FILE ...] 515s 515s D-Bus code and documentation generator 515s 515s positional arguments: 515s FILE D-Bus introspection XML file 515s 515s options: 515s -h, --help show this help message and exit 515s --interface-prefix PREFIX 515s String to strip from D-Bus interface names for code 515s and docs 515s --c-namespace NAMESPACE 515s The namespace to use for generated C code 515s --c-generate-object-manager 515s Generate a GDBusObjectManagerClient subclass when 515s generating C code 515s --c-generate-autocleanup {none,objects,all} 515s Generate autocleanup support 515s --generate-docbook OUTFILES 515s Generate Docbook in OUTFILES-org.Project.IFace.xml 515s --generate-md OUTFILES 515s Generate Markdown in OUTFILES-org.Project.IFace.md 515s --generate-rst OUTFILES 515s Generate reStructuredText in OUTFILES- 515s org.Project.IFace.rst 515s --pragma-once Use "pragma once" as the inclusion guard 515s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 515s Add annotation (may be used several times) 515s --glib-min-required VERSION 515s Minimum version of GLib to be supported by the 515s outputted code (default: 2.30) 515s --glib-max-allowed VERSION 515s Maximum version of GLib to be used by the outputted 515s code (default: current GLib version) 515s --symbol-decorator SYMBOL_DECORATOR 515s Macro used to decorate a symbol in the outputted 515s header, possibly to export symbols 515s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 515s Additional header required for decorator specified by 515s --symbol-decorator 515s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 515s Additional define required for decorator specified by 515s --symbol-decorator 515s --generate-c-code OUTFILES 515s Generate C code in OUTFILES.[ch] 515s --header Generate C headers 515s --body Generate C code 515s --interface-info-header 515s Generate GDBusInterfaceInfo C header 515s --interface-info-body 515s Generate GDBusInterfaceInfo C code 515s --output FILE Write output into the specified file 515s --output-directory OUTDIR 515s Location to output generated files 515s + glib-compile-resources --version 515s + glib-genmarshal --version 515s 2.86.3 515s glib-genmarshal version 2.86.3 515s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 515s You may redistribute copies of glib-genmarshal under the terms of 515s the GNU General Public License which can be found in the 515s GLib source package. Sources, examples and contact 515s information are available at http://www.gtk.org 515s + glib-gettextize --version 515s /usr/bin/glib-gettextize (GNU glib) 2.86.3 515s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 515s This is free software; see the source for copying conditions. There is NO 515s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 515s Written by Ulrich Drepper 515s + glib-mkenums --version 515s glib-mkenums version 2.86.3 515s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 515s You may redistribute copies of glib-mkenums under the terms of 515s the GNU General Public License which can be found in the 515s GLib source package. Sources, examples and contact 515s information are available at http://www.gtk.org 515s + gobject-query tree 515s + gtester --version 515s GObject 515s gtester version 2.86.3 515s + gtester-report --version 516s gtester-report (GLib utils) version 2.86.3. 516s autopkgtest [01:16:42]: test libgio-2.0-dev-bin: -----------------------] 516s libgio-2.0-dev-bin PASS (superficial) 516s autopkgtest [01:16:42]: test libgio-2.0-dev-bin: - - - - - - - - - - results - - - - - - - - - - 517s autopkgtest [01:16:43]: test libglib2.0-dev: preparing testbed 663s Creating nova instance adt-resolute-ppc64el-glib2.0-20260206-002641-juju-7f2275-prod-proposed-migration-environment-20-dce05e57-bf64-42a2-997c-5f6963aa1fa8 from image adt/ubuntu-resolute-ppc64el-server-20260205.img (UUID f866c950-0b62-4023-bac6-0f13279e15ed)... 770s autopkgtest [01:20:56]: testbed dpkg architecture: ppc64el 770s autopkgtest [01:20:56]: testbed apt version: 3.1.14 770s autopkgtest [01:20:56]: @@@@@@@@@@@@@@@@@@@@ test bed setup 771s autopkgtest [01:20:57]: testbed release detected to be: resolute 771s autopkgtest [01:20:57]: updating testbed package index (apt update) 772s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 772s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 772s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 772s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 772s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1631 kB] 772s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5260 B] 772s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [31.4 kB] 772s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [221 kB] 772s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el Packages [262 kB] 772s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el Packages [1416 kB] 772s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse ppc64el Packages [19.7 kB] 772s Fetched 3711 kB in 1s (5459 kB/s) 773s Reading package lists... 774s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 774s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 774s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 774s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 775s Reading package lists... 775s Reading package lists... 775s Building dependency tree... 775s Reading state information... 775s Calculating upgrade... 775s The following packages will be upgraded: 775s libdrm-amdgpu1 libdrm-common libdrm2 mawk pollinate python3-referencing 775s python3.14-gdbm sed 775s 8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 775s Need to get 518 kB of archives. 775s After this operation, 0 B of additional disk space will be used. 775s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el sed ppc64el 4.9-2build3 [211 kB] 775s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el mawk ppc64el 1.3.4.20260129-1 [147 kB] 775s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm-common all 2.4.131-1 [9774 B] 775s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm2 ppc64el 2.4.131-1 [51.4 kB] 775s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3.14-gdbm ppc64el 3.14.3-1 [34.4 kB] 775s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm-amdgpu1 ppc64el 2.4.131-1 [27.5 kB] 775s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el pollinate all 4.33-4ubuntu5 [14.0 kB] 775s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-referencing all 0.36.2-1ubuntu2 [22.2 kB] 775s dpkg-preconfigure: unable to re-open stdin: No such file or directory 775s Fetched 518 kB in 0s (29.1 MB/s) 776s (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 ... 82008 files and directories currently installed.) 776s Preparing to unpack .../sed_4.9-2build3_ppc64el.deb ... 776s Unpacking sed (4.9-2build3) over (4.9-2build2) ... 776s Setting up sed (4.9-2build3) ... 776s (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 ... 82008 files and directories currently installed.) 776s Preparing to unpack .../0-mawk_1.3.4.20260129-1_ppc64el.deb ... 776s Unpacking mawk (1.3.4.20260129-1) over (1.3.4.20250131-2) ... 776s Preparing to unpack .../1-libdrm-common_2.4.131-1_all.deb ... 776s Unpacking libdrm-common (2.4.131-1) over (2.4.129-1) ... 776s Preparing to unpack .../2-libdrm2_2.4.131-1_ppc64el.deb ... 776s Unpacking libdrm2:ppc64el (2.4.131-1) over (2.4.129-1) ... 776s Preparing to unpack .../3-python3.14-gdbm_3.14.3-1_ppc64el.deb ... 776s Unpacking python3.14-gdbm (3.14.3-1) over (3.14.2-1) ... 776s Preparing to unpack .../4-libdrm-amdgpu1_2.4.131-1_ppc64el.deb ... 776s Unpacking libdrm-amdgpu1:ppc64el (2.4.131-1) over (2.4.129-1) ... 776s Preparing to unpack .../5-pollinate_4.33-4ubuntu5_all.deb ... 777s Unpacking pollinate (4.33-4ubuntu5) over (4.33-4ubuntu4) ... 777s Preparing to unpack .../6-python3-referencing_0.36.2-1ubuntu2_all.deb ... 777s Unpacking python3-referencing (0.36.2-1ubuntu2) over (0.36.2-1ubuntu1) ... 777s Setting up pollinate (4.33-4ubuntu5) ... 789s Setting up python3.14-gdbm (3.14.3-1) ... 789s Setting up mawk (1.3.4.20260129-1) ... 789s Setting up libdrm-common (2.4.131-1) ... 789s Setting up python3-referencing (0.36.2-1ubuntu2) ... 789s Setting up libdrm2:ppc64el (2.4.131-1) ... 789s Setting up libdrm-amdgpu1:ppc64el (2.4.131-1) ... 789s Processing triggers for man-db (2.13.1-1) ... 791s Processing triggers for install-info (7.2-5) ... 791s Processing triggers for libc-bin (2.42-2ubuntu4) ... 791s autopkgtest [01:21:17]: upgrading testbed (apt dist-upgrade and autopurge) 795s Reading package lists... 795s Building dependency tree... 795s Reading state information... 795s Calculating upgrade... 795s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 819s Reading package lists... 819s Building dependency tree... 819s Reading state information... 819s Solving dependencies... 819s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 820s autopkgtest [01:21:46]: rebooting testbed after setup commands that affected boot 862s Reading package lists... 862s Building dependency tree... 862s Reading state information... 863s Solving dependencies... 863s The following NEW packages will be installed: 863s build-essential cpp cpp-15 cpp-15-powerpc64le-linux-gnu 863s cpp-powerpc64le-linux-gnu g++ g++-15 g++-15-powerpc64le-linux-gnu 863s g++-powerpc64le-linux-gnu gcc gcc-15 gcc-15-powerpc64le-linux-gnu 863s gcc-powerpc64le-linux-gnu gir1.2-glib-2.0-dev girepository-tools libasan8 863s libblkid-dev libc-dev-bin libc6-dev libcc1-0 libcrypt-dev libffi-dev 863s libgcc-15-dev libgio-2.0-dev libgio-2.0-dev-bin libglib2.0-bin 863s libglib2.0-dev libglib2.0-dev-bin libgomp1 libisl23 libitm1 liblsan0 863s libmount-dev libmpc3 libpcre2-16-0 libpcre2-32-0 libpcre2-dev 863s libpcre2-posix3 libpkgconf3 libquadmath0 libselinux-dev libsepol-dev 863s libstdc++-15-dev libsysprof-capture-4-dev libtsan2 libubsan1 linux-libc-dev 863s native-architecture pkgconf pkgconf-bin rpcsvc-proto uuid-dev zlib1g-dev 863s 0 upgraded, 53 newly installed, 0 to remove and 0 not upgraded. 863s Need to get 72.9 MB of archives. 863s After this operation, 282 MB of additional disk space will be used. 863s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el libc-dev-bin ppc64el 2.42-2ubuntu4 [23.9 kB] 863s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el linux-libc-dev ppc64el 6.18.0-9.9 [1847 kB] 863s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el libcrypt-dev ppc64el 1:4.5.1-1 [162 kB] 863s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el rpcsvc-proto ppc64el 1.4.3-1build1 [84.2 kB] 863s Get:5 http://ftpmaster.internal/ubuntu resolute/main ppc64el libc6-dev ppc64el 2.42-2ubuntu4 [2080 kB] 864s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el libisl23 ppc64el 0.27-1build1 [893 kB] 864s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el libmpc3 ppc64el 1.3.1-2 [62.5 kB] 864s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp-15-powerpc64le-linux-gnu ppc64el 15.2.0-12ubuntu1 [11.4 MB] 865s Get:9 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp-15 ppc64el 15.2.0-12ubuntu1 [1038 B] 865s Get:10 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp-powerpc64le-linux-gnu ppc64el 4:15.2.0-4ubuntu1 [5746 B] 865s Get:11 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp ppc64el 4:15.2.0-4ubuntu1 [22.4 kB] 865s Get:12 http://ftpmaster.internal/ubuntu resolute/main ppc64el libcc1-0 ppc64el 15.2.0-12ubuntu1 [49.0 kB] 865s Get:13 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgomp1 ppc64el 15.2.0-12ubuntu1 [169 kB] 865s Get:14 http://ftpmaster.internal/ubuntu resolute/main ppc64el libitm1 ppc64el 15.2.0-12ubuntu1 [32.2 kB] 865s Get:15 http://ftpmaster.internal/ubuntu resolute/main ppc64el libasan8 ppc64el 15.2.0-12ubuntu1 [3006 kB] 865s Get:16 http://ftpmaster.internal/ubuntu resolute/main ppc64el liblsan0 ppc64el 15.2.0-12ubuntu1 [1374 kB] 865s Get:17 http://ftpmaster.internal/ubuntu resolute/main ppc64el libtsan2 ppc64el 15.2.0-12ubuntu1 [2729 kB] 865s Get:18 http://ftpmaster.internal/ubuntu resolute/main ppc64el libubsan1 ppc64el 15.2.0-12ubuntu1 [1231 kB] 865s Get:19 http://ftpmaster.internal/ubuntu resolute/main ppc64el libquadmath0 ppc64el 15.2.0-12ubuntu1 [160 kB] 865s Get:20 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgcc-15-dev ppc64el 15.2.0-12ubuntu1 [1670 kB] 865s Get:21 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc-15-powerpc64le-linux-gnu ppc64el 15.2.0-12ubuntu1 [22.4 MB] 866s Get:22 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc-15 ppc64el 15.2.0-12ubuntu1 [530 kB] 866s Get:23 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc-powerpc64le-linux-gnu ppc64el 4:15.2.0-4ubuntu1 [1220 B] 866s Get:24 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc ppc64el 4:15.2.0-4ubuntu1 [5032 B] 866s Get:25 http://ftpmaster.internal/ubuntu resolute/main ppc64el libstdc++-15-dev ppc64el 15.2.0-12ubuntu1 [2747 kB] 866s Get:26 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++-15-powerpc64le-linux-gnu ppc64el 15.2.0-12ubuntu1 [13.0 MB] 866s Get:27 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++-15 ppc64el 15.2.0-12ubuntu1 [25.3 kB] 866s Get:28 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++-powerpc64le-linux-gnu ppc64el 4:15.2.0-4ubuntu1 [970 B] 866s Get:29 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++ ppc64el 4:15.2.0-4ubuntu1 [1092 B] 866s Get:30 http://ftpmaster.internal/ubuntu resolute/main ppc64el build-essential ppc64el 12.12ubuntu2 [5256 B] 866s Get:31 http://ftpmaster.internal/ubuntu resolute/main ppc64el gir1.2-glib-2.0-dev ppc64el 2.86.3-4 [865 kB] 866s Get:32 http://ftpmaster.internal/ubuntu resolute/main ppc64el native-architecture all 0.2.6build1 [2256 B] 866s Get:33 http://ftpmaster.internal/ubuntu resolute/main ppc64el girepository-tools ppc64el 2.86.3-4 [135 kB] 866s Get:34 http://ftpmaster.internal/ubuntu resolute/main ppc64el libffi-dev ppc64el 3.5.2-3 [72.7 kB] 866s Get:35 http://ftpmaster.internal/ubuntu resolute/main ppc64el uuid-dev ppc64el 2.41.2-4ubuntu2 [59.9 kB] 866s Get:36 http://ftpmaster.internal/ubuntu resolute/main ppc64el libblkid-dev ppc64el 2.41.2-4ubuntu2 [293 kB] 866s Get:37 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsepol-dev ppc64el 3.9-2 [516 kB] 866s Get:38 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpcre2-16-0 ppc64el 10.46-1 [292 kB] 866s Get:39 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpcre2-32-0 ppc64el 10.46-1 [275 kB] 866s Get:40 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpcre2-posix3 ppc64el 10.46-1 [7334 B] 866s Get:41 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpcre2-dev ppc64el 10.46-1 [937 kB] 866s Get:42 http://ftpmaster.internal/ubuntu resolute/main ppc64el libselinux-dev ppc64el 3.9-4 [210 kB] 866s Get:43 http://ftpmaster.internal/ubuntu resolute/main ppc64el libmount-dev ppc64el 2.41.2-4ubuntu2 [37.6 kB] 866s Get:44 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsysprof-capture-4-dev ppc64el 49.0-5 [62.0 kB] 866s Get:45 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpkgconf3 ppc64el 1.8.1-4build1 [37.9 kB] 866s Get:46 http://ftpmaster.internal/ubuntu resolute/main ppc64el pkgconf-bin ppc64el 1.8.1-4build1 [22.7 kB] 866s Get:47 http://ftpmaster.internal/ubuntu resolute/main ppc64el pkgconf ppc64el 1.8.1-4build1 [16.8 kB] 866s Get:48 http://ftpmaster.internal/ubuntu resolute/main ppc64el zlib1g-dev ppc64el 1:1.3.dfsg+really1.3.1-1ubuntu2 [903 kB] 866s Get:49 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgio-2.0-dev ppc64el 2.86.3-4 [2206 kB] 866s Get:50 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgio-2.0-dev-bin ppc64el 2.86.3-4 [131 kB] 866s Get:51 http://ftpmaster.internal/ubuntu resolute/main ppc64el libglib2.0-bin ppc64el 2.86.3-4 [111 kB] 866s Get:52 http://ftpmaster.internal/ubuntu resolute/main ppc64el libglib2.0-dev-bin ppc64el 2.86.3-4 [18.2 kB] 866s Get:53 http://ftpmaster.internal/ubuntu resolute/main ppc64el libglib2.0-dev ppc64el 2.86.3-4 [18.9 kB] 867s Fetched 72.9 MB in 4s (19.2 MB/s) 867s Selecting previously unselected package libc-dev-bin. 867s (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 ... 82008 files and directories currently installed.) 867s Preparing to unpack .../00-libc-dev-bin_2.42-2ubuntu4_ppc64el.deb ... 867s Unpacking libc-dev-bin (2.42-2ubuntu4) ... 867s Selecting previously unselected package linux-libc-dev:ppc64el. 867s Preparing to unpack .../01-linux-libc-dev_6.18.0-9.9_ppc64el.deb ... 867s Unpacking linux-libc-dev:ppc64el (6.18.0-9.9) ... 867s Selecting previously unselected package libcrypt-dev:ppc64el. 867s Preparing to unpack .../02-libcrypt-dev_1%3a4.5.1-1_ppc64el.deb ... 867s Unpacking libcrypt-dev:ppc64el (1:4.5.1-1) ... 867s Selecting previously unselected package rpcsvc-proto. 867s Preparing to unpack .../03-rpcsvc-proto_1.4.3-1build1_ppc64el.deb ... 867s Unpacking rpcsvc-proto (1.4.3-1build1) ... 867s Selecting previously unselected package libc6-dev:ppc64el. 867s Preparing to unpack .../04-libc6-dev_2.42-2ubuntu4_ppc64el.deb ... 867s Unpacking libc6-dev:ppc64el (2.42-2ubuntu4) ... 867s Selecting previously unselected package libisl23:ppc64el. 867s Preparing to unpack .../05-libisl23_0.27-1build1_ppc64el.deb ... 867s Unpacking libisl23:ppc64el (0.27-1build1) ... 867s Selecting previously unselected package libmpc3:ppc64el. 867s Preparing to unpack .../06-libmpc3_1.3.1-2_ppc64el.deb ... 867s Unpacking libmpc3:ppc64el (1.3.1-2) ... 867s Selecting previously unselected package cpp-15-powerpc64le-linux-gnu. 867s Preparing to unpack .../07-cpp-15-powerpc64le-linux-gnu_15.2.0-12ubuntu1_ppc64el.deb ... 867s Unpacking cpp-15-powerpc64le-linux-gnu (15.2.0-12ubuntu1) ... 868s Selecting previously unselected package cpp-15. 868s Preparing to unpack .../08-cpp-15_15.2.0-12ubuntu1_ppc64el.deb ... 868s Unpacking cpp-15 (15.2.0-12ubuntu1) ... 868s Selecting previously unselected package cpp-powerpc64le-linux-gnu. 868s Preparing to unpack .../09-cpp-powerpc64le-linux-gnu_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 868s Unpacking cpp-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 868s Selecting previously unselected package cpp. 868s Preparing to unpack .../10-cpp_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 868s Unpacking cpp (4:15.2.0-4ubuntu1) ... 868s Selecting previously unselected package libcc1-0:ppc64el. 868s Preparing to unpack .../11-libcc1-0_15.2.0-12ubuntu1_ppc64el.deb ... 868s Unpacking libcc1-0:ppc64el (15.2.0-12ubuntu1) ... 868s Selecting previously unselected package libgomp1:ppc64el. 868s Preparing to unpack .../12-libgomp1_15.2.0-12ubuntu1_ppc64el.deb ... 868s Unpacking libgomp1:ppc64el (15.2.0-12ubuntu1) ... 868s Selecting previously unselected package libitm1:ppc64el. 868s Preparing to unpack .../13-libitm1_15.2.0-12ubuntu1_ppc64el.deb ... 868s Unpacking libitm1:ppc64el (15.2.0-12ubuntu1) ... 868s Selecting previously unselected package libasan8:ppc64el. 868s Preparing to unpack .../14-libasan8_15.2.0-12ubuntu1_ppc64el.deb ... 868s Unpacking libasan8:ppc64el (15.2.0-12ubuntu1) ... 868s Selecting previously unselected package liblsan0:ppc64el. 868s Preparing to unpack .../15-liblsan0_15.2.0-12ubuntu1_ppc64el.deb ... 868s Unpacking liblsan0:ppc64el (15.2.0-12ubuntu1) ... 868s Selecting previously unselected package libtsan2:ppc64el. 868s Preparing to unpack .../16-libtsan2_15.2.0-12ubuntu1_ppc64el.deb ... 868s Unpacking libtsan2:ppc64el (15.2.0-12ubuntu1) ... 868s Selecting previously unselected package libubsan1:ppc64el. 868s Preparing to unpack .../17-libubsan1_15.2.0-12ubuntu1_ppc64el.deb ... 868s Unpacking libubsan1:ppc64el (15.2.0-12ubuntu1) ... 868s Selecting previously unselected package libquadmath0:ppc64el. 868s Preparing to unpack .../18-libquadmath0_15.2.0-12ubuntu1_ppc64el.deb ... 868s Unpacking libquadmath0:ppc64el (15.2.0-12ubuntu1) ... 868s Selecting previously unselected package libgcc-15-dev:ppc64el. 868s Preparing to unpack .../19-libgcc-15-dev_15.2.0-12ubuntu1_ppc64el.deb ... 868s Unpacking libgcc-15-dev:ppc64el (15.2.0-12ubuntu1) ... 868s Selecting previously unselected package gcc-15-powerpc64le-linux-gnu. 868s Preparing to unpack .../20-gcc-15-powerpc64le-linux-gnu_15.2.0-12ubuntu1_ppc64el.deb ... 868s Unpacking gcc-15-powerpc64le-linux-gnu (15.2.0-12ubuntu1) ... 868s Selecting previously unselected package gcc-15. 868s Preparing to unpack .../21-gcc-15_15.2.0-12ubuntu1_ppc64el.deb ... 868s Unpacking gcc-15 (15.2.0-12ubuntu1) ... 868s Selecting previously unselected package gcc-powerpc64le-linux-gnu. 868s Preparing to unpack .../22-gcc-powerpc64le-linux-gnu_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 868s Unpacking gcc-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 868s Selecting previously unselected package gcc. 868s Preparing to unpack .../23-gcc_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 868s Unpacking gcc (4:15.2.0-4ubuntu1) ... 868s Selecting previously unselected package libstdc++-15-dev:ppc64el. 868s Preparing to unpack .../24-libstdc++-15-dev_15.2.0-12ubuntu1_ppc64el.deb ... 868s Unpacking libstdc++-15-dev:ppc64el (15.2.0-12ubuntu1) ... 868s Selecting previously unselected package g++-15-powerpc64le-linux-gnu. 868s Preparing to unpack .../25-g++-15-powerpc64le-linux-gnu_15.2.0-12ubuntu1_ppc64el.deb ... 868s Unpacking g++-15-powerpc64le-linux-gnu (15.2.0-12ubuntu1) ... 869s Selecting previously unselected package g++-15. 869s Preparing to unpack .../26-g++-15_15.2.0-12ubuntu1_ppc64el.deb ... 869s Unpacking g++-15 (15.2.0-12ubuntu1) ... 869s Selecting previously unselected package g++-powerpc64le-linux-gnu. 869s Preparing to unpack .../27-g++-powerpc64le-linux-gnu_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 869s Unpacking g++-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 869s Selecting previously unselected package g++. 869s Preparing to unpack .../28-g++_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 869s Unpacking g++ (4:15.2.0-4ubuntu1) ... 869s Selecting previously unselected package build-essential. 869s Preparing to unpack .../29-build-essential_12.12ubuntu2_ppc64el.deb ... 869s Unpacking build-essential (12.12ubuntu2) ... 869s Selecting previously unselected package gir1.2-glib-2.0-dev:ppc64el. 869s Preparing to unpack .../30-gir1.2-glib-2.0-dev_2.86.3-4_ppc64el.deb ... 869s Unpacking gir1.2-glib-2.0-dev:ppc64el (2.86.3-4) ... 869s Selecting previously unselected package native-architecture. 869s Preparing to unpack .../31-native-architecture_0.2.6build1_all.deb ... 869s Unpacking native-architecture (0.2.6build1) ... 869s Selecting previously unselected package girepository-tools:ppc64el. 869s Preparing to unpack .../32-girepository-tools_2.86.3-4_ppc64el.deb ... 869s Unpacking girepository-tools:ppc64el (2.86.3-4) ... 869s Selecting previously unselected package libffi-dev:ppc64el. 869s Preparing to unpack .../33-libffi-dev_3.5.2-3_ppc64el.deb ... 869s Unpacking libffi-dev:ppc64el (3.5.2-3) ... 869s Selecting previously unselected package uuid-dev:ppc64el. 869s Preparing to unpack .../34-uuid-dev_2.41.2-4ubuntu2_ppc64el.deb ... 869s Unpacking uuid-dev:ppc64el (2.41.2-4ubuntu2) ... 869s Selecting previously unselected package libblkid-dev:ppc64el. 869s Preparing to unpack .../35-libblkid-dev_2.41.2-4ubuntu2_ppc64el.deb ... 869s Unpacking libblkid-dev:ppc64el (2.41.2-4ubuntu2) ... 869s Selecting previously unselected package libsepol-dev:ppc64el. 869s Preparing to unpack .../36-libsepol-dev_3.9-2_ppc64el.deb ... 869s Unpacking libsepol-dev:ppc64el (3.9-2) ... 869s Selecting previously unselected package libpcre2-16-0:ppc64el. 869s Preparing to unpack .../37-libpcre2-16-0_10.46-1_ppc64el.deb ... 869s Unpacking libpcre2-16-0:ppc64el (10.46-1) ... 869s Selecting previously unselected package libpcre2-32-0:ppc64el. 869s Preparing to unpack .../38-libpcre2-32-0_10.46-1_ppc64el.deb ... 869s Unpacking libpcre2-32-0:ppc64el (10.46-1) ... 869s Selecting previously unselected package libpcre2-posix3:ppc64el. 869s Preparing to unpack .../39-libpcre2-posix3_10.46-1_ppc64el.deb ... 869s Unpacking libpcre2-posix3:ppc64el (10.46-1) ... 869s Selecting previously unselected package libpcre2-dev:ppc64el. 869s Preparing to unpack .../40-libpcre2-dev_10.46-1_ppc64el.deb ... 869s Unpacking libpcre2-dev:ppc64el (10.46-1) ... 869s Selecting previously unselected package libselinux-dev:ppc64el. 869s Preparing to unpack .../41-libselinux-dev_3.9-4_ppc64el.deb ... 869s Unpacking libselinux-dev:ppc64el (3.9-4) ... 869s Selecting previously unselected package libmount-dev:ppc64el. 869s Preparing to unpack .../42-libmount-dev_2.41.2-4ubuntu2_ppc64el.deb ... 869s Unpacking libmount-dev:ppc64el (2.41.2-4ubuntu2) ... 869s Selecting previously unselected package libsysprof-capture-4-dev:ppc64el. 869s Preparing to unpack .../43-libsysprof-capture-4-dev_49.0-5_ppc64el.deb ... 869s Unpacking libsysprof-capture-4-dev:ppc64el (49.0-5) ... 869s Selecting previously unselected package libpkgconf3:ppc64el. 869s Preparing to unpack .../44-libpkgconf3_1.8.1-4build1_ppc64el.deb ... 869s Unpacking libpkgconf3:ppc64el (1.8.1-4build1) ... 869s Selecting previously unselected package pkgconf-bin. 869s Preparing to unpack .../45-pkgconf-bin_1.8.1-4build1_ppc64el.deb ... 869s Unpacking pkgconf-bin (1.8.1-4build1) ... 869s Selecting previously unselected package pkgconf:ppc64el. 869s Preparing to unpack .../46-pkgconf_1.8.1-4build1_ppc64el.deb ... 869s Unpacking pkgconf:ppc64el (1.8.1-4build1) ... 869s Selecting previously unselected package zlib1g-dev:ppc64el. 869s Preparing to unpack .../47-zlib1g-dev_1%3a1.3.dfsg+really1.3.1-1ubuntu2_ppc64el.deb ... 869s Unpacking zlib1g-dev:ppc64el (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 869s Selecting previously unselected package libgio-2.0-dev:ppc64el. 869s Preparing to unpack .../48-libgio-2.0-dev_2.86.3-4_ppc64el.deb ... 869s Unpacking libgio-2.0-dev:ppc64el (2.86.3-4) ... 869s Selecting previously unselected package libgio-2.0-dev-bin. 869s Preparing to unpack .../49-libgio-2.0-dev-bin_2.86.3-4_ppc64el.deb ... 869s Unpacking libgio-2.0-dev-bin (2.86.3-4) ... 869s Selecting previously unselected package libglib2.0-bin. 869s Preparing to unpack .../50-libglib2.0-bin_2.86.3-4_ppc64el.deb ... 869s Unpacking libglib2.0-bin (2.86.3-4) ... 870s Selecting previously unselected package libglib2.0-dev-bin. 870s Preparing to unpack .../51-libglib2.0-dev-bin_2.86.3-4_ppc64el.deb ... 870s Unpacking libglib2.0-dev-bin (2.86.3-4) ... 870s Selecting previously unselected package libglib2.0-dev:ppc64el. 870s Preparing to unpack .../52-libglib2.0-dev_2.86.3-4_ppc64el.deb ... 870s Unpacking libglib2.0-dev:ppc64el (2.86.3-4) ... 870s Setting up libgio-2.0-dev-bin (2.86.3-4) ... 870s Setting up native-architecture (0.2.6build1) ... 870s Setting up linux-libc-dev:ppc64el (6.18.0-9.9) ... 870s Setting up libglib2.0-bin (2.86.3-4) ... 870s Setting up libgomp1:ppc64el (15.2.0-12ubuntu1) ... 870s Setting up libffi-dev:ppc64el (3.5.2-3) ... 870s Setting up libpcre2-16-0:ppc64el (10.46-1) ... 870s Setting up libsysprof-capture-4-dev:ppc64el (49.0-5) ... 870s Setting up libpcre2-32-0:ppc64el (10.46-1) ... 870s Setting up libpkgconf3:ppc64el (1.8.1-4build1) ... 870s Setting up rpcsvc-proto (1.4.3-1build1) ... 870s Setting up libquadmath0:ppc64el (15.2.0-12ubuntu1) ... 870s Setting up libmpc3:ppc64el (1.3.1-2) ... 870s Setting up libsepol-dev:ppc64el (3.9-2) ... 870s Setting up pkgconf-bin (1.8.1-4build1) ... 870s Setting up libubsan1:ppc64el (15.2.0-12ubuntu1) ... 870s Setting up libpcre2-posix3:ppc64el (10.46-1) ... 870s Setting up gir1.2-glib-2.0-dev:ppc64el (2.86.3-4) ... 870s Setting up libcrypt-dev:ppc64el (1:4.5.1-1) ... 870s Setting up libasan8:ppc64el (15.2.0-12ubuntu1) ... 870s Setting up libtsan2:ppc64el (15.2.0-12ubuntu1) ... 870s Setting up libisl23:ppc64el (0.27-1build1) ... 870s Setting up libc-dev-bin (2.42-2ubuntu4) ... 870s Setting up libcc1-0:ppc64el (15.2.0-12ubuntu1) ... 870s Setting up liblsan0:ppc64el (15.2.0-12ubuntu1) ... 870s Setting up libitm1:ppc64el (15.2.0-12ubuntu1) ... 870s Setting up girepository-tools:ppc64el (2.86.3-4) ... 870s Setting up libgcc-15-dev:ppc64el (15.2.0-12ubuntu1) ... 870s Setting up pkgconf:ppc64el (1.8.1-4build1) ... 870s Setting up cpp-15-powerpc64le-linux-gnu (15.2.0-12ubuntu1) ... 870s Setting up cpp-15 (15.2.0-12ubuntu1) ... 870s Setting up libc6-dev:ppc64el (2.42-2ubuntu4) ... 870s Setting up cpp-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 870s Setting up libglib2.0-dev-bin (2.86.3-4) ... 870s Setting up libpcre2-dev:ppc64el (10.46-1) ... 870s Setting up gcc-15-powerpc64le-linux-gnu (15.2.0-12ubuntu1) ... 870s Setting up gcc-15 (15.2.0-12ubuntu1) ... 870s Setting up libstdc++-15-dev:ppc64el (15.2.0-12ubuntu1) ... 870s Setting up gcc-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 870s Setting up uuid-dev:ppc64el (2.41.2-4ubuntu2) ... 870s Setting up zlib1g-dev:ppc64el (1:1.3.dfsg+really1.3.1-1ubuntu2) ... 870s Setting up cpp (4:15.2.0-4ubuntu1) ... 870s Setting up libselinux-dev:ppc64el (3.9-4) ... 870s Setting up libblkid-dev:ppc64el (2.41.2-4ubuntu2) ... 870s Setting up g++-15-powerpc64le-linux-gnu (15.2.0-12ubuntu1) ... 870s Setting up gcc (4:15.2.0-4ubuntu1) ... 870s Setting up g++-15 (15.2.0-12ubuntu1) ... 870s Setting up libmount-dev:ppc64el (2.41.2-4ubuntu2) ... 870s Setting up g++-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 870s Setting up libgio-2.0-dev:ppc64el (2.86.3-4) ... 870s Setting up g++ (4:15.2.0-4ubuntu1) ... 870s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 870s Setting up build-essential (12.12ubuntu2) ... 870s Processing triggers for install-info (7.2-5) ... 870s Processing triggers for libc-bin (2.42-2ubuntu4) ... 870s Processing triggers for man-db (2.13.1-1) ... 871s Processing triggers for libglib2.0-0t64:ppc64el (2.86.3-4) ... 871s No schema files found: doing nothing. 871s Setting up libglib2.0-dev:ppc64el (2.86.3-4) ... 883s autopkgtest [01:22:49]: test libglib2.0-dev: [----------------------- 883s + debian/tests/build 883s + mode=dynamic 883s + getopt -o --long static -n debian/tests/build -- 883s + getopt_temp= -- 883s + eval set -- -- 883s + set -- -- 883s + true 883s + shift 883s + break 883s + mktemp -d 883s + WORKDIR=/tmp/tmp.GzCCJHrYfL 883s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 883s + cd /tmp/tmp.GzCCJHrYfL 883s + [ -n ] 883s + CROSS_COMPILE= 883s + cat 883s + cat 883s + cat 883s + cat 883s + cat 883s + cat 883s + cflags= 883s + pcflags= 883s + packages=glib-2.0 883s + pkg-config --cflags --libs glib-2.0 883s + gcc -o glib-dynamic glib.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lglib-2.0 883s build (glib, dynamic): OK 883s run (glib, dynamic): OK 883s + echo build (glib, dynamic): OK 883s + [ -x glib-dynamic ] 883s + foo=bar ./glib-dynamic 883s + echo run (glib, dynamic): OK 883s + cflags= 883s + pcflags= 883s + packages=gobject-2.0 883s + pkg-config --cflags --libs gobject-2.0 883s + gcc -o gobject-dynamic gobject.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgobject-2.0 -lglib-2.0 883s build (gobject, dynamic): OK 883s + echo build (gobject, dynamic): OK 883s + [ -x gobject-dynamic ] 883s + foo=bar ./gobject-dynamic 883s + echo run (gobject, dynamic): OK 883s + cflags= 883s + pcflags= 883s + packages=gio-2.0 883s + pkg-config --cflags --libs gio-2.0 883s run (gobject, dynamic): OK 883s + gcc -o gio-dynamic gio.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-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 883s build (gio, dynamic): OK 883s run (gio, dynamic): OK 883s + echo build (gio, dynamic): OK 883s + [ -x gio-dynamic ] 883s + foo=bar ./gio-dynamic 883s + echo run (gio, dynamic): OK 883s + cflags= 883s + pcflags= 883s + packages=gio-unix-2.0 883s + pkg-config --cflags --libs gio-unix-2.0 883s + gcc -o gio-unix-dynamic gio-unix.c -I/usr/include/gio-unix-2.0 -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-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 884s build (gio-unix, dynamic): OK 884s + echo build (gio-unix, dynamic): OK 884s + [ -x gio-unix-dynamic ] 884s + foo=bar ./gio-unix-dynamic 884s + echo run (gio-unix, dynamic): OK 884s + cflags= 884s + pcflags= 884s + packages=gmodule-2.0 884s run (gio-unix, dynamic): OK 884s + pkg-config --cflags --libs gmodule-2.0 884s + gcc -o gmodule-dynamic gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-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 884s + echo build (gmodule, dynamic): OK 884s + [ -x gmodule-dynamic ] 884s + foo=bar ./gmodule-dynamic 884s build (gmodule, dynamic): OK 884s run (gmodule, dynamic): OK 884s + echo run (gmodule, dynamic): OK 884s + cflags= 884s + pcflags= 884s + packages=gthread-2.0 884s + pkg-config --cflags --libs gthread-2.0 884s + gcc -o gthread-dynamic gthread.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-linux-gnu/glib-2.0/include -I/usr/include/sysprof-6 -pthread -lgthread-2.0 -pthread -lglib-2.0 884s build (gthread, dynamic): OK 884s + echo build (gthread, dynamic): OK 884s + [ -x gthread-dynamic ] 884s + foo=bar ./gthread-dynamic 884s + echo run (gthread, dynamic): OK 884s + rm -rf /tmp/tmp.GzCCJHrYfL 884s run (gthread, dynamic): OK 884s + debian/tests/build-static 884s + mode=dynamic 884s + getopt -o --long static -n debian/tests/build -- --static 884s + getopt_temp= --static -- 884s + eval set -- --static -- 884s + set -- --static -- 884s + true 884s + mode=static 884s + shift 884s + continue 884s + true 884s + shift 884s + break 884s + mktemp -d 884s + WORKDIR=/tmp/tmp.2tkLn8WU1m 884s + trap rm -rf "${WORKDIR}" 0 INT QUIT ABRT PIPE TERM 884s + cd /tmp/tmp.2tkLn8WU1m 884s + [ -n ] 884s + CROSS_COMPILE= 884s + cat 884s + cat 884s + cat 884s + cat 884s + cat 884s + cat 884s + cflags= 884s + pcflags= 884s + packages=glib-2.0 884s + cflags=-static 884s + pcflags=--static 884s + pkg-config --static --cflags --libs glib-2.0 884s + gcc -static -o glib-static glib.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-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 884s /usr/bin/powerpc64le-linux-gnu-ld.bfd: /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 884s (.text+0x154): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 884s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x438): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 884s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x1a4): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 884s build (glib, static): OK 884s + echo build (glib, static): OK 884s + [ -x glib-static ] 884s + foo=bar ./glib-static 884s + echo run (glib, static): OK 884s + cflags= 884s + pcflags= 884s + packages=gobject-2.0 884s + cflags=-static 884s + pcflags=--static 884s + pkg-config --static --cflags --libs gobject-2.0 884s run (glib, static): OK 884s + gcc -static -o gobject-static gobject.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-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 884s /usr/bin/powerpc64le-linux-gnu-ld.bfd: /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 884s (.text+0x154): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 884s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x438): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 884s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x1a4): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 884s build (gobject, static): OK 884s run (gobject, static): OK 884s + echo build (gobject, static): OK 884s + [ -x gobject-static ] 884s + foo=bar ./gobject-static 884s + echo run (gobject, static): OK 884s + cflags= 884s + pcflags= 884s + packages=gio-2.0 884s + cflags=-static 884s + pcflags=--static 884s + continue 884s + cflags= 884s + pcflags= 884s + packages=gio-unix-2.0 884s + cflags=-static 884s + pcflags=--static 884s + continue 884s + cflags= 884s + pcflags= 884s + packages=gmodule-2.0 884s + cflags=-static 884s + pcflags=--static 884s + pkg-config --static --cflags --libs gmodule-2.0 884s + gcc -static -o gmodule-static gmodule.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-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 884s /usr/bin/powerpc64le-linux-gnu-ld.bfd: /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../powerpc64le-linux-gnu/libgmodule-2.0.a(gmodule.c.o): in function `g_module_open_full': 884s (.text+0x944): warning: Using 'dlopen' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 884s /usr/bin/powerpc64le-linux-gnu-ld.bfd: /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 884s (.text+0x154): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 884s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x438): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 884s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x1a4): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 884s + echo build (gmodule, static): OK 884s + [ -x gmodule-static ] 884s + foo=bar ./gmodule-static 884s build (gmodule, static): OK 884s run (gmodule, static): OK 884s + echo run (gmodule, static): OK 884s + cflags= 884s + pcflags= 884s + packages=gthread-2.0 884s + cflags=-static 884s + pcflags=--static 884s + pkg-config --static --cflags --libs gthread-2.0 884s + gcc -static -o gthread-static gthread.c -I/usr/include/glib-2.0 -I/usr/lib/powerpc64le-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 884s /usr/bin/powerpc64le-linux-gnu-ld.bfd: /usr/lib/gcc/powerpc64le-linux-gnu/15/../../../powerpc64le-linux-gnu/libglib-2.0.a(gutils.c.o): in function `g_get_user_database_entry': 884s (.text+0x154): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 884s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x438): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 884s /usr/bin/powerpc64le-linux-gnu-ld.bfd: (.text+0x1a4): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking 884s build (gthread, static): OK 884s run (gthread, static): OK 884s + echo build (gthread, static): OK 884s + [ -x gthread-static ] 884s + foo=bar ./gthread-static 884s + echo run (gthread, static): OK 884s + rm -rf /tmp/tmp.2tkLn8WU1m 884s + debian/tests/girepository-tools 884s + cd /tmp/autopkgtest.5Le3RJ/autopkgtest_tmp 884s + dpkg-architecture -qDEB_HOST_GNU_TYPE 885s + DEB_HOST_GNU_TYPE=powerpc64le-linux-gnu 885s + dpkg-architecture -qDEB_HOST_MULTIARCH 885s + DEB_HOST_MULTIARCH=powerpc64le-linux-gnu 885s + powerpc64le-linux-gnu-gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 885s typelib: GLib-2.0 885s + powerpc64le-linux-gnu-gi-compile-repository -o GLib.typelib /usr/lib/powerpc64le-linux-gnu/gir-1.0/GLib-2.0.gir 885s + powerpc64le-linux-gnu-gi-decompile-typelib -o GLib.gir GLib.typelib 885s + debian/tests/libgio-2.0-dev-bin 885s + gdbus-codegen --help 885s usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 885s [--c-namespace NAMESPACE] [--c-generate-object-manager] 885s [--c-generate-autocleanup {none,objects,all}] 885s [--generate-docbook OUTFILES] [--generate-md OUTFILES] 885s [--generate-rst OUTFILES] [--pragma-once] 885s [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 885s [--glib-min-required VERSION] 885s [--glib-max-allowed VERSION] 885s [--symbol-decorator SYMBOL_DECORATOR] 885s [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 885s [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 885s [--generate-c-code OUTFILES | --header | --body | 885s --interface-info-header | --interface-info-body] 885s [--output FILE | --output-directory OUTDIR] 885s FILE [FILE ...] 885s 885s D-Bus code and documentation generator 885s 885s positional arguments: 885s FILE D-Bus introspection XML file 885s 885s options: 885s -h, --help show this help message and exit 885s --interface-prefix PREFIX 885s String to strip from D-Bus interface names for code 885s and docs 885s --c-namespace NAMESPACE 885s The namespace to use for generated C code 885s --c-generate-object-manager 885s Generate a GDBusObjectManagerClient subclass when 885s generating C code 885s --c-generate-autocleanup {none,objects,all} 885s Generate autocleanup support 885s --generate-docbook OUTFILES 885s Generate Docbook in OUTFILES-org.Project.IFace.xml 885s --generate-md OUTFILES 885s Generate Markdown in OUTFILES-org.Project.IFace.md 885s --generate-rst OUTFILES 885s Generate reStructuredText in OUTFILES- 885s org.Project.IFace.rst 885s --pragma-once Use "pragma once" as the inclusion guard 885s --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 885s Add annotation (may be used several times) 885s --glib-min-required VERSION 885s Minimum version of GLib to be supported by the 885s outputted code (default: 2.30) 885s --glib-max-allowed VERSION 885s Maximum version of GLib to be used by the outputted 885s code (default: current GLib version) 885s --symbol-decorator SYMBOL_DECORATOR 885s Macro used to decorate a symbol in the outputted 885s header, possibly to export symbols 885s --symbol-decorator-header SYMBOL_DECORATOR_HEADER 885s Additional header required for decorator specified by 885s --symbol-decorator 885s --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 885s Additional define required for decorator specified by 885s --symbol-decorator 885s --generate-c-code OUTFILES 885s Generate C code in OUTFILES.[ch] 885s --header Generate C headers 885s --body Generate C code 885s --interface-info-header 885s Generate GDBusInterfaceInfo C header 885s --interface-info-body 885s Generate GDBusInterfaceInfo C code 885s --output FILE Write output into the specified file 885s --output-directory OUTDIR 885s Location to output generated files 885s + glib-compile-resources --version 885s 2.86.3 885s + glib-genmarshal --version 885s glib-genmarshal version 2.86.3 885s glib-genmarshal comes with ABSOLUTELY NO WARRANTY. 885s You may redistribute copies of glib-genmarshal under the terms of 885s the GNU General Public License which can be found in the 885s GLib source package. Sources, examples and contact 885s information are available at http://www.gtk.org 885s + glib-gettextize --version 885s /usr/bin/glib-gettextize (GNU glib) 2.86.3 885s Copyright (C) 1995-1998, 2000, 2001 Free Software Foundation, Inc. 885s This is free software; see the source for copying conditions. There is NO 885s warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 885s Written by Ulrich Drepper 885s + glib-mkenums --version 885s glib-mkenums version 2.86.3 885s glib-mkenums comes with ABSOLUTELY NO WARRANTY. 885s You may redistribute copies of glib-mkenums under the terms of 885s the GNU General Public License which can be found in the 885s GLib source package. Sources, examples and contact 885s information are available at http://www.gtk.org 885s + gobject-query tree 885s GObject 885s + gtester --version 885s gtester version 2.86.3 885s + gtester-report --version 885s gtester-report (GLib utils) version 2.86.3. 885s + cd /tmp/autopkgtest.5Le3RJ/autopkgtest_tmp 885s + dpkg-architecture -qDEB_HOST_MULTIARCH 885s + DEB_HOST_MULTIARCH=powerpc64le-linux-gnu 885s + gi-inspect-typelib --print-typelibs --typelib-version=2.0 GObject 885s typelib: GLib-2.0 885s + gi-compile-repository -o GLib.typelib /usr/lib/powerpc64le-linux-gnu/gir-1.0/GLib-2.0.gir 885s + gi-decompile-typelib -o GLib.gir GLib.typelib 886s autopkgtest [01:22:52]: test libglib2.0-dev: -----------------------] 886s libglib2.0-dev PASS (superficial) 886s autopkgtest [01:22:52]: test libglib2.0-dev: - - - - - - - - - - results - - - - - - - - - - 886s autopkgtest [01:22:52]: test installed-tests: preparing testbed 894s Creating nova instance adt-resolute-ppc64el-glib2.0-20260206-002641-juju-7f2275-prod-proposed-migration-environment-20-dce05e57-bf64-42a2-997c-5f6963aa1fa8 from image adt/ubuntu-resolute-ppc64el-server-20260205.img (UUID f866c950-0b62-4023-bac6-0f13279e15ed)... 948s autopkgtest [01:23:54]: testbed dpkg architecture: ppc64el 948s autopkgtest [01:23:54]: testbed apt version: 3.1.14 948s autopkgtest [01:23:54]: @@@@@@@@@@@@@@@@@@@@ test bed setup 949s autopkgtest [01:23:55]: testbed release detected to be: resolute 949s autopkgtest [01:23:55]: updating testbed package index (apt update) 949s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 950s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 950s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 950s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 950s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [31.4 kB] 950s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5260 B] 950s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1631 kB] 950s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [221 kB] 950s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el Packages [262 kB] 950s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el Packages [1416 kB] 950s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse ppc64el Packages [19.7 kB] 950s Fetched 3711 kB in 1s (3949 kB/s) 951s Reading package lists... 952s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 952s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 952s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 952s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 953s Reading package lists... 953s Reading package lists... 953s Building dependency tree... 953s Reading state information... 953s Calculating upgrade... 953s The following packages will be upgraded: 953s libdrm-amdgpu1 libdrm-common libdrm2 mawk pollinate python3-referencing 953s python3.14-gdbm sed 953s 8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 953s Need to get 518 kB of archives. 953s After this operation, 0 B of additional disk space will be used. 953s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el sed ppc64el 4.9-2build3 [211 kB] 953s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el mawk ppc64el 1.3.4.20260129-1 [147 kB] 953s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm-common all 2.4.131-1 [9774 B] 953s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm2 ppc64el 2.4.131-1 [51.4 kB] 953s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3.14-gdbm ppc64el 3.14.3-1 [34.4 kB] 953s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm-amdgpu1 ppc64el 2.4.131-1 [27.5 kB] 953s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el pollinate all 4.33-4ubuntu5 [14.0 kB] 953s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-referencing all 0.36.2-1ubuntu2 [22.2 kB] 953s dpkg-preconfigure: unable to re-open stdin: No such file or directory 954s Fetched 518 kB in 0s (25.7 MB/s) 954s (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 ... 82008 files and directories currently installed.) 954s Preparing to unpack .../sed_4.9-2build3_ppc64el.deb ... 954s Unpacking sed (4.9-2build3) over (4.9-2build2) ... 954s Setting up sed (4.9-2build3) ... 954s (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 ... 82008 files and directories currently installed.) 954s Preparing to unpack .../0-mawk_1.3.4.20260129-1_ppc64el.deb ... 954s Unpacking mawk (1.3.4.20260129-1) over (1.3.4.20250131-2) ... 954s Preparing to unpack .../1-libdrm-common_2.4.131-1_all.deb ... 954s Unpacking libdrm-common (2.4.131-1) over (2.4.129-1) ... 954s Preparing to unpack .../2-libdrm2_2.4.131-1_ppc64el.deb ... 954s Unpacking libdrm2:ppc64el (2.4.131-1) over (2.4.129-1) ... 954s Preparing to unpack .../3-python3.14-gdbm_3.14.3-1_ppc64el.deb ... 955s Unpacking python3.14-gdbm (3.14.3-1) over (3.14.2-1) ... 955s Preparing to unpack .../4-libdrm-amdgpu1_2.4.131-1_ppc64el.deb ... 955s Unpacking libdrm-amdgpu1:ppc64el (2.4.131-1) over (2.4.129-1) ... 955s Preparing to unpack .../5-pollinate_4.33-4ubuntu5_all.deb ... 955s Unpacking pollinate (4.33-4ubuntu5) over (4.33-4ubuntu4) ... 955s Preparing to unpack .../6-python3-referencing_0.36.2-1ubuntu2_all.deb ... 955s Unpacking python3-referencing (0.36.2-1ubuntu2) over (0.36.2-1ubuntu1) ... 955s Setting up pollinate (4.33-4ubuntu5) ... 965s Setting up python3.14-gdbm (3.14.3-1) ... 966s Setting up mawk (1.3.4.20260129-1) ... 966s Setting up libdrm-common (2.4.131-1) ... 966s Setting up python3-referencing (0.36.2-1ubuntu2) ... 966s Setting up libdrm2:ppc64el (2.4.131-1) ... 966s Setting up libdrm-amdgpu1:ppc64el (2.4.131-1) ... 966s Processing triggers for man-db (2.13.1-1) ... 966s Processing triggers for install-info (7.2-5) ... 966s Processing triggers for libc-bin (2.42-2ubuntu4) ... 967s autopkgtest [01:24:13]: upgrading testbed (apt dist-upgrade and autopurge) 967s Reading package lists... 967s Building dependency tree... 967s Reading state information... 967s Calculating upgrade... 967s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 967s Reading package lists... 967s Building dependency tree... 967s Reading state information... 967s Solving dependencies... 968s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 968s autopkgtest [01:24:14]: rebooting testbed after setup commands that affected boot 1010s Reading package lists... 1010s Building dependency tree... 1010s Reading state information... 1010s Solving dependencies... 1010s The following NEW packages will be installed: 1010s dbus-x11 desktop-file-utils gir1.2-glib-2.0-dev girepository-tools 1010s gnome-desktop-testing libfontenc1 libgbm1 libgio-2.0-dev-bin libgl1 1010s libgl1-mesa-dri libglib2.0-bin libglib2.0-dev-bin libglib2.0-tests libglvnd0 1010s libglx-mesa0 libglx0 libice6 libpixman-1-0 libsm6 libunwind8 libvulkan1 1010s libx11-xcb1 libxaw7 libxcb-dri3-0 libxcb-glx0 libxcb-present0 libxcb-randr0 1010s libxcb-shm0 libxcb-sync1 libxcb-xfixes0 libxfont2 libxkbfile1 libxmu6 1010s libxpm4 libxrandr2 libxrender1 libxshmfence1 libxt6t64 libxxf86vm1 1010s mesa-libgallium native-architecture python3-dbusmock tzdata-legacy 1010s x11-common x11-xkb-utils xserver-common xvfb 1010s 0 upgraded, 47 newly installed, 0 to remove and 0 not upgraded. 1010s Need to get 19.9 MB of archives. 1010s After this operation, 114 MB of additional disk space will be used. 1010s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el dbus-x11 ppc64el 1.16.2-2ubuntu2 [24.4 kB] 1010s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el desktop-file-utils ppc64el 0.28-1build1 [62.3 kB] 1010s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el gir1.2-glib-2.0-dev ppc64el 2.86.3-4 [865 kB] 1010s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el native-architecture all 0.2.6build1 [2256 B] 1010s Get:5 http://ftpmaster.internal/ubuntu resolute/main ppc64el girepository-tools ppc64el 2.86.3-4 [135 kB] 1010s Get:6 http://ftpmaster.internal/ubuntu resolute/universe ppc64el gnome-desktop-testing ppc64el 2021.1-5 [17.8 kB] 1010s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el libfontenc1 ppc64el 1:1.1.8-1build2 [16.1 kB] 1010s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el libx11-xcb1 ppc64el 2:1.8.12-1build1 [8022 B] 1010s Get:9 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxcb-dri3-0 ppc64el 1.17.0-2ubuntu1 [7964 B] 1010s Get:10 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxcb-present0 ppc64el 1.17.0-2ubuntu1 [6340 B] 1010s Get:11 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxcb-randr0 ppc64el 1.17.0-2ubuntu1 [19.1 kB] 1010s Get:12 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxcb-sync1 ppc64el 1.17.0-2ubuntu1 [9864 B] 1010s Get:13 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxcb-xfixes0 ppc64el 1.17.0-2ubuntu1 [10.8 kB] 1010s Get:14 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxshmfence1 ppc64el 1.3.3-1build1 [5420 B] 1010s Get:15 http://ftpmaster.internal/ubuntu resolute/main ppc64el mesa-libgallium ppc64el 25.3.3-1ubuntu1 [12.5 MB] 1011s Get:16 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgbm1 ppc64el 25.3.3-1ubuntu1 [41.7 kB] 1011s Get:17 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgio-2.0-dev-bin ppc64el 2.86.3-4 [131 kB] 1011s Get:18 http://ftpmaster.internal/ubuntu resolute/main ppc64el libvulkan1 ppc64el 1.4.335.0-1 [175 kB] 1011s Get:19 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgl1-mesa-dri ppc64el 25.3.3-1ubuntu1 [36.4 kB] 1011s Get:20 http://ftpmaster.internal/ubuntu resolute/main ppc64el libglib2.0-bin ppc64el 2.86.3-4 [111 kB] 1011s Get:21 http://ftpmaster.internal/ubuntu resolute/main ppc64el libglib2.0-dev-bin ppc64el 2.86.3-4 [18.2 kB] 1011s Get:22 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-dbusmock all 0.38.1-1 [92.0 kB] 1011s Get:23 http://ftpmaster.internal/ubuntu resolute/main ppc64el tzdata-legacy all 2025c-3ubuntu3 [99.3 kB] 1011s Get:24 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libglib2.0-tests ppc64el 2.86.3-4 [2434 kB] 1011s Get:25 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxcb-glx0 ppc64el 1.17.0-2ubuntu1 [26.4 kB] 1011s Get:26 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxcb-shm0 ppc64el 1.17.0-2ubuntu1 [6072 B] 1011s Get:27 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxxf86vm1 ppc64el 1:1.1.4-2 [12.0 kB] 1011s Get:28 http://ftpmaster.internal/ubuntu resolute/main ppc64el libglx-mesa0 ppc64el 25.3.3-1ubuntu1 [132 kB] 1011s Get:29 http://ftpmaster.internal/ubuntu resolute/main ppc64el x11-common all 1:7.7+24ubuntu1 [22.4 kB] 1011s Get:30 http://ftpmaster.internal/ubuntu resolute/main ppc64el libice6 ppc64el 2:1.1.1-1build1 [51.9 kB] 1011s Get:31 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpixman-1-0 ppc64el 0.46.4-1 [347 kB] 1011s Get:32 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsm6 ppc64el 2:1.2.6-1 [18.6 kB] 1011s Get:33 http://ftpmaster.internal/ubuntu resolute/main ppc64el libunwind8 ppc64el 1.8.3-0ubuntu1 [68.2 kB] 1011s Get:34 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxt6t64 ppc64el 1:1.2.1-1.3 [203 kB] 1011s Get:35 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxmu6 ppc64el 2:1.1.3-4 [56.9 kB] 1011s Get:36 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxpm4 ppc64el 1:3.5.17-1build3 [50.5 kB] 1011s Get:37 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxaw7 ppc64el 2:1.0.16-1build1 [234 kB] 1011s Get:38 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxfont2 ppc64el 1:2.0.6-2 [119 kB] 1011s Get:39 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxkbfile1 ppc64el 1:1.1.0-1build5 [90.2 kB] 1011s Get:40 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxrender1 ppc64el 1:0.9.12-1 [23.0 kB] 1011s Get:41 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxrandr2 ppc64el 2:1.5.4-1build1 [21.7 kB] 1011s Get:42 http://ftpmaster.internal/ubuntu resolute/main ppc64el x11-xkb-utils ppc64el 7.7+9build1 [202 kB] 1011s Get:43 http://ftpmaster.internal/ubuntu resolute/main ppc64el xserver-common all 2:21.1.21-1ubuntu1 [34.8 kB] 1011s Get:44 http://ftpmaster.internal/ubuntu resolute/main ppc64el libglvnd0 ppc64el 1.7.0-3 [67.2 kB] 1011s Get:45 http://ftpmaster.internal/ubuntu resolute/main ppc64el libglx0 ppc64el 1.7.0-3 [42.3 kB] 1011s Get:46 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgl1 ppc64el 1.7.0-3 [103 kB] 1011s Get:47 http://ftpmaster.internal/ubuntu resolute/universe ppc64el xvfb ppc64el 2:21.1.21-1ubuntu1 [1135 kB] 1011s Fetched 19.9 MB in 1s (23.4 MB/s) 1011s Selecting previously unselected package dbus-x11. 1011s (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 ... 82008 files and directories currently installed.) 1011s Preparing to unpack .../00-dbus-x11_1.16.2-2ubuntu2_ppc64el.deb ... 1011s Unpacking dbus-x11 (1.16.2-2ubuntu2) ... 1011s Selecting previously unselected package desktop-file-utils. 1011s Preparing to unpack .../01-desktop-file-utils_0.28-1build1_ppc64el.deb ... 1011s Unpacking desktop-file-utils (0.28-1build1) ... 1011s Selecting previously unselected package gir1.2-glib-2.0-dev:ppc64el. 1011s Preparing to unpack .../02-gir1.2-glib-2.0-dev_2.86.3-4_ppc64el.deb ... 1011s Unpacking gir1.2-glib-2.0-dev:ppc64el (2.86.3-4) ... 1011s Selecting previously unselected package native-architecture. 1011s Preparing to unpack .../03-native-architecture_0.2.6build1_all.deb ... 1011s Unpacking native-architecture (0.2.6build1) ... 1011s Selecting previously unselected package girepository-tools:ppc64el. 1012s Preparing to unpack .../04-girepository-tools_2.86.3-4_ppc64el.deb ... 1012s Unpacking girepository-tools:ppc64el (2.86.3-4) ... 1012s Selecting previously unselected package gnome-desktop-testing. 1012s Preparing to unpack .../05-gnome-desktop-testing_2021.1-5_ppc64el.deb ... 1012s Unpacking gnome-desktop-testing (2021.1-5) ... 1012s Selecting previously unselected package libfontenc1:ppc64el. 1012s Preparing to unpack .../06-libfontenc1_1%3a1.1.8-1build2_ppc64el.deb ... 1012s Unpacking libfontenc1:ppc64el (1:1.1.8-1build2) ... 1012s Selecting previously unselected package libx11-xcb1:ppc64el. 1012s Preparing to unpack .../07-libx11-xcb1_2%3a1.8.12-1build1_ppc64el.deb ... 1012s Unpacking libx11-xcb1:ppc64el (2:1.8.12-1build1) ... 1012s Selecting previously unselected package libxcb-dri3-0:ppc64el. 1012s Preparing to unpack .../08-libxcb-dri3-0_1.17.0-2ubuntu1_ppc64el.deb ... 1012s Unpacking libxcb-dri3-0:ppc64el (1.17.0-2ubuntu1) ... 1012s Selecting previously unselected package libxcb-present0:ppc64el. 1012s Preparing to unpack .../09-libxcb-present0_1.17.0-2ubuntu1_ppc64el.deb ... 1012s Unpacking libxcb-present0:ppc64el (1.17.0-2ubuntu1) ... 1012s Selecting previously unselected package libxcb-randr0:ppc64el. 1012s Preparing to unpack .../10-libxcb-randr0_1.17.0-2ubuntu1_ppc64el.deb ... 1012s Unpacking libxcb-randr0:ppc64el (1.17.0-2ubuntu1) ... 1012s Selecting previously unselected package libxcb-sync1:ppc64el. 1012s Preparing to unpack .../11-libxcb-sync1_1.17.0-2ubuntu1_ppc64el.deb ... 1012s Unpacking libxcb-sync1:ppc64el (1.17.0-2ubuntu1) ... 1012s Selecting previously unselected package libxcb-xfixes0:ppc64el. 1012s Preparing to unpack .../12-libxcb-xfixes0_1.17.0-2ubuntu1_ppc64el.deb ... 1012s Unpacking libxcb-xfixes0:ppc64el (1.17.0-2ubuntu1) ... 1012s Selecting previously unselected package libxshmfence1:ppc64el. 1012s Preparing to unpack .../13-libxshmfence1_1.3.3-1build1_ppc64el.deb ... 1012s Unpacking libxshmfence1:ppc64el (1.3.3-1build1) ... 1012s Selecting previously unselected package mesa-libgallium:ppc64el. 1012s Preparing to unpack .../14-mesa-libgallium_25.3.3-1ubuntu1_ppc64el.deb ... 1012s Unpacking mesa-libgallium:ppc64el (25.3.3-1ubuntu1) ... 1012s Selecting previously unselected package libgbm1:ppc64el. 1012s Preparing to unpack .../15-libgbm1_25.3.3-1ubuntu1_ppc64el.deb ... 1012s Unpacking libgbm1:ppc64el (25.3.3-1ubuntu1) ... 1012s Selecting previously unselected package libgio-2.0-dev-bin. 1012s Preparing to unpack .../16-libgio-2.0-dev-bin_2.86.3-4_ppc64el.deb ... 1012s Unpacking libgio-2.0-dev-bin (2.86.3-4) ... 1012s Selecting previously unselected package libvulkan1:ppc64el. 1012s Preparing to unpack .../17-libvulkan1_1.4.335.0-1_ppc64el.deb ... 1012s Unpacking libvulkan1:ppc64el (1.4.335.0-1) ... 1012s Selecting previously unselected package libgl1-mesa-dri:ppc64el. 1012s Preparing to unpack .../18-libgl1-mesa-dri_25.3.3-1ubuntu1_ppc64el.deb ... 1012s Unpacking libgl1-mesa-dri:ppc64el (25.3.3-1ubuntu1) ... 1012s Selecting previously unselected package libglib2.0-bin. 1012s Preparing to unpack .../19-libglib2.0-bin_2.86.3-4_ppc64el.deb ... 1012s Unpacking libglib2.0-bin (2.86.3-4) ... 1012s Selecting previously unselected package libglib2.0-dev-bin. 1012s Preparing to unpack .../20-libglib2.0-dev-bin_2.86.3-4_ppc64el.deb ... 1012s Unpacking libglib2.0-dev-bin (2.86.3-4) ... 1012s Selecting previously unselected package python3-dbusmock. 1012s Preparing to unpack .../21-python3-dbusmock_0.38.1-1_all.deb ... 1012s Unpacking python3-dbusmock (0.38.1-1) ... 1012s Selecting previously unselected package tzdata-legacy. 1012s Preparing to unpack .../22-tzdata-legacy_2025c-3ubuntu3_all.deb ... 1012s Unpacking tzdata-legacy (2025c-3ubuntu3) ... 1012s Selecting previously unselected package libglib2.0-tests. 1012s Preparing to unpack .../23-libglib2.0-tests_2.86.3-4_ppc64el.deb ... 1012s Unpacking libglib2.0-tests (2.86.3-4) ... 1012s Selecting previously unselected package libxcb-glx0:ppc64el. 1012s Preparing to unpack .../24-libxcb-glx0_1.17.0-2ubuntu1_ppc64el.deb ... 1012s Unpacking libxcb-glx0:ppc64el (1.17.0-2ubuntu1) ... 1012s Selecting previously unselected package libxcb-shm0:ppc64el. 1012s Preparing to unpack .../25-libxcb-shm0_1.17.0-2ubuntu1_ppc64el.deb ... 1012s Unpacking libxcb-shm0:ppc64el (1.17.0-2ubuntu1) ... 1012s Selecting previously unselected package libxxf86vm1:ppc64el. 1012s Preparing to unpack .../26-libxxf86vm1_1%3a1.1.4-2_ppc64el.deb ... 1012s Unpacking libxxf86vm1:ppc64el (1:1.1.4-2) ... 1012s Selecting previously unselected package libglx-mesa0:ppc64el. 1012s Preparing to unpack .../27-libglx-mesa0_25.3.3-1ubuntu1_ppc64el.deb ... 1012s Unpacking libglx-mesa0:ppc64el (25.3.3-1ubuntu1) ... 1012s Selecting previously unselected package x11-common. 1012s Preparing to unpack .../28-x11-common_1%3a7.7+24ubuntu1_all.deb ... 1012s Unpacking x11-common (1:7.7+24ubuntu1) ... 1012s Selecting previously unselected package libice6:ppc64el. 1012s Preparing to unpack .../29-libice6_2%3a1.1.1-1build1_ppc64el.deb ... 1012s Unpacking libice6:ppc64el (2:1.1.1-1build1) ... 1012s Selecting previously unselected package libpixman-1-0:ppc64el. 1012s Preparing to unpack .../30-libpixman-1-0_0.46.4-1_ppc64el.deb ... 1012s Unpacking libpixman-1-0:ppc64el (0.46.4-1) ... 1012s Selecting previously unselected package libsm6:ppc64el. 1012s Preparing to unpack .../31-libsm6_2%3a1.2.6-1_ppc64el.deb ... 1012s Unpacking libsm6:ppc64el (2:1.2.6-1) ... 1012s Selecting previously unselected package libunwind8:ppc64el. 1012s Preparing to unpack .../32-libunwind8_1.8.3-0ubuntu1_ppc64el.deb ... 1012s Unpacking libunwind8:ppc64el (1.8.3-0ubuntu1) ... 1012s Selecting previously unselected package libxt6t64:ppc64el. 1012s Preparing to unpack .../33-libxt6t64_1%3a1.2.1-1.3_ppc64el.deb ... 1012s Unpacking libxt6t64:ppc64el (1:1.2.1-1.3) ... 1012s Selecting previously unselected package libxmu6:ppc64el. 1012s Preparing to unpack .../34-libxmu6_2%3a1.1.3-4_ppc64el.deb ... 1012s Unpacking libxmu6:ppc64el (2:1.1.3-4) ... 1012s Selecting previously unselected package libxpm4:ppc64el. 1012s Preparing to unpack .../35-libxpm4_1%3a3.5.17-1build3_ppc64el.deb ... 1012s Unpacking libxpm4:ppc64el (1:3.5.17-1build3) ... 1012s Selecting previously unselected package libxaw7:ppc64el. 1012s Preparing to unpack .../36-libxaw7_2%3a1.0.16-1build1_ppc64el.deb ... 1012s Unpacking libxaw7:ppc64el (2:1.0.16-1build1) ... 1012s Selecting previously unselected package libxfont2:ppc64el. 1012s Preparing to unpack .../37-libxfont2_1%3a2.0.6-2_ppc64el.deb ... 1012s Unpacking libxfont2:ppc64el (1:2.0.6-2) ... 1012s Selecting previously unselected package libxkbfile1:ppc64el. 1012s Preparing to unpack .../38-libxkbfile1_1%3a1.1.0-1build5_ppc64el.deb ... 1012s Unpacking libxkbfile1:ppc64el (1:1.1.0-1build5) ... 1012s Selecting previously unselected package libxrender1:ppc64el. 1012s Preparing to unpack .../39-libxrender1_1%3a0.9.12-1_ppc64el.deb ... 1012s Unpacking libxrender1:ppc64el (1:0.9.12-1) ... 1012s Selecting previously unselected package libxrandr2:ppc64el. 1012s Preparing to unpack .../40-libxrandr2_2%3a1.5.4-1build1_ppc64el.deb ... 1012s Unpacking libxrandr2:ppc64el (2:1.5.4-1build1) ... 1012s Selecting previously unselected package x11-xkb-utils. 1012s Preparing to unpack .../41-x11-xkb-utils_7.7+9build1_ppc64el.deb ... 1012s Unpacking x11-xkb-utils (7.7+9build1) ... 1013s Selecting previously unselected package xserver-common. 1013s Preparing to unpack .../42-xserver-common_2%3a21.1.21-1ubuntu1_all.deb ... 1013s Unpacking xserver-common (2:21.1.21-1ubuntu1) ... 1013s Selecting previously unselected package libglvnd0:ppc64el. 1013s Preparing to unpack .../43-libglvnd0_1.7.0-3_ppc64el.deb ... 1013s Unpacking libglvnd0:ppc64el (1.7.0-3) ... 1013s Selecting previously unselected package libglx0:ppc64el. 1013s Preparing to unpack .../44-libglx0_1.7.0-3_ppc64el.deb ... 1013s Unpacking libglx0:ppc64el (1.7.0-3) ... 1013s Selecting previously unselected package libgl1:ppc64el. 1013s Preparing to unpack .../45-libgl1_1.7.0-3_ppc64el.deb ... 1013s Unpacking libgl1:ppc64el (1.7.0-3) ... 1013s Selecting previously unselected package xvfb. 1013s Preparing to unpack .../46-xvfb_2%3a21.1.21-1ubuntu1_ppc64el.deb ... 1013s Unpacking xvfb (2:21.1.21-1ubuntu1) ... 1013s Setting up gnome-desktop-testing (2021.1-5) ... 1013s Setting up libxcb-dri3-0:ppc64el (1.17.0-2ubuntu1) ... 1013s Setting up libpixman-1-0:ppc64el (0.46.4-1) ... 1013s Setting up libx11-xcb1:ppc64el (2:1.8.12-1build1) ... 1013s Setting up libgio-2.0-dev-bin (2.86.3-4) ... 1013s Setting up native-architecture (0.2.6build1) ... 1013s Setting up libxcb-xfixes0:ppc64el (1.17.0-2ubuntu1) ... 1013s Setting up desktop-file-utils (0.28-1build1) ... 1013s Setting up libxpm4:ppc64el (1:3.5.17-1build3) ... 1013s Setting up libxrender1:ppc64el (1:0.9.12-1) ... 1013s Setting up libglvnd0:ppc64el (1.7.0-3) ... 1013s Setting up libxcb-glx0:ppc64el (1.17.0-2ubuntu1) ... 1013s Setting up x11-common (1:7.7+24ubuntu1) ... 1013s Setting up libglib2.0-bin (2.86.3-4) ... 1013s Setting up libxcb-shm0:ppc64el (1.17.0-2ubuntu1) ... 1013s Setting up python3-dbusmock (0.38.1-1) ... 1013s Setting up libunwind8:ppc64el (1.8.3-0ubuntu1) ... 1013s Setting up tzdata-legacy (2025c-3ubuntu3) ... 1013s Setting up libxxf86vm1:ppc64el (1:1.1.4-2) ... 1013s Setting up libxcb-present0:ppc64el (1.17.0-2ubuntu1) ... 1013s Setting up libfontenc1:ppc64el (1:1.1.8-1build2) ... 1013s Setting up libxcb-sync1:ppc64el (1.17.0-2ubuntu1) ... 1013s Setting up libxrandr2:ppc64el (2:1.5.4-1build1) ... 1013s Setting up libvulkan1:ppc64el (1.4.335.0-1) ... 1013s Setting up gir1.2-glib-2.0-dev:ppc64el (2.86.3-4) ... 1013s Setting up libxshmfence1:ppc64el (1.3.3-1build1) ... 1013s Setting up dbus-x11 (1.16.2-2ubuntu2) ... 1013s Setting up libxcb-randr0:ppc64el (1.17.0-2ubuntu1) ... 1013s Setting up libxkbfile1:ppc64el (1:1.1.0-1build5) ... 1013s Setting up libxfont2:ppc64el (1:2.0.6-2) ... 1013s Setting up libice6:ppc64el (2:1.1.1-1build1) ... 1013s Setting up mesa-libgallium:ppc64el (25.3.3-1ubuntu1) ... 1013s Setting up girepository-tools:ppc64el (2.86.3-4) ... 1013s Setting up libgbm1:ppc64el (25.3.3-1ubuntu1) ... 1013s Setting up libgl1-mesa-dri:ppc64el (25.3.3-1ubuntu1) ... 1013s Setting up libsm6:ppc64el (2:1.2.6-1) ... 1013s Setting up libglib2.0-dev-bin (2.86.3-4) ... 1013s Setting up libglx-mesa0:ppc64el (25.3.3-1ubuntu1) ... 1013s Setting up libglx0:ppc64el (1.7.0-3) ... 1013s Setting up libgl1:ppc64el (1.7.0-3) ... 1013s Setting up libxt6t64:ppc64el (1:1.2.1-1.3) ... 1013s Setting up libglib2.0-tests (2.86.3-4) ... 1014s Setting up libxmu6:ppc64el (2:1.1.3-4) ... 1014s Setting up libxaw7:ppc64el (2:1.0.16-1build1) ... 1014s Setting up x11-xkb-utils (7.7+9build1) ... 1014s Setting up xserver-common (2:21.1.21-1ubuntu1) ... 1014s Setting up xvfb (2:21.1.21-1ubuntu1) ... 1014s Processing triggers for man-db (2.13.1-1) ... 1014s Processing triggers for libc-bin (2.42-2ubuntu4) ... 1023s autopkgtest [01:25:09]: test installed-tests: [----------------------- 1023s Running as: uid=1000(ubuntu) gid=1000(ubuntu) groups=1000(ubuntu),4(adm),24(cdrom),27(sudo),30(dip),103(lxd) 1023s passwd entry: ubuntu:x:1000:1000:Ubuntu:/home/ubuntu:/bin/bash 1023s group entry: ubuntu:x:1000: 1023s Environment: 1023s ADTTMP=/tmp/autopkgtest.5Le3RJ/autopkgtest_tmp 1023s ADT_ARTIFACTS=/tmp/autopkgtest.5Le3RJ/installed-tests-artifacts 1023s ADT_TEST_TRIGGERS=python3.14/3.14.3-1 1023s AUTOPKGTEST_ARTIFACTS=/tmp/autopkgtest.5Le3RJ/installed-tests-artifacts 1023s AUTOPKGTEST_TESTBED_ARCH=ppc64el 1023s AUTOPKGTEST_TEST_ARCH=ppc64el 1023s AUTOPKGTEST_TMP=/tmp/autopkgtest.5Le3RJ/autopkgtest_tmp 1023s DEBIAN_FRONTEND=noninteractive 1023s DEBUGINFOD_URLS=https://debuginfod.ubuntu.com 1023s DEB_BUILD_OPTIONS=parallel=2 1023s GIO_USE_VFS=local 1023s GIO_USE_VOLUME_MONITOR=unix 1023s HOME=/home/ubuntu 1023s LANG=C.UTF-8 1023s LOGNAME=ubuntu 1023s MAIL=/var/mail/ubuntu 1023s OLDPWD=/home/ubuntu 1023s PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 1023s PWD=/tmp/autopkgtest.5Le3RJ/build.kkL/src 1023s SHELL=/bin/bash 1023s SHLVL=1 1023s SUDO_COMMAND=/tmp/autopkgtest-run-wrapper su -s /bin/bash ubuntu -c set -e; exec /tmp/autopkgtest.5Le3RJ/wrapper.sh --artifacts=/tmp/autopkgtest.5Le3RJ/installed-tests-artifacts --chdir=/tmp/autopkgtest.5Le3RJ/build.kkL/src --env=AUTOPKGTEST_TESTBED_ARCH=ppc64el --env=AUTOPKGTEST_TEST_ARCH=ppc64el --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.5Le3RJ/installed-tests-stderr --stdout=/tmp/autopkgtest.5Le3RJ/installed-tests-stdout --tmp=/tmp/autopkgtest.5Le3RJ/autopkgtest_tmp --env=ADT_TEST_TRIGGERS=python3.14/3.14.3-1 --make-executable=/tmp/autopkgtest.5Le3RJ/build.kkL/src/debian/tests/installed-tests -- /tmp/autopkgtest.5Le3RJ/build.kkL/src/debian/tests/installed-tests 1023s SUDO_GID=1000 1023s SUDO_HOME=/home/ubuntu 1023s SUDO_UID=1000 1023s SUDO_USER=ubuntu 1023s TERM=linux 1023s USER=ubuntu 1023s XDG_RUNTIME_DIR=/tmp/autopkgtest.5Le3RJ/autopkgtest_tmp 1023s http_proxy=http://egress.ps7.internal:3128/ 1023s https_proxy=http://egress.ps7.internal:3128/ 1023s no_proxy=127.0.0.1,127.0.1.1,localhost,localdomain 1023s run-with-locales: de_DE=ISO-8859-1... 1023s Character set: ISO-8859-1 1023s Source file: de_DE 1023s Output: /tmp/tmp.GmS6TMAJhi/de_DE 1023s run-with-locales: de_DE.utf8... 1023s Character set: UTF-8 1023s Source file: de_DE 1023s Output: /tmp/tmp.GmS6TMAJhi/de_DE.utf8 1025s run-with-locales: de_DE@euro.utf8... 1025s Character set: UTF-8 1025s Source file: de_DE@euro 1025s Output: /tmp/tmp.GmS6TMAJhi/de_DE@euro.utf8 1026s run-with-locales: el_GR.utf8... 1026s Character set: UTF-8 1026s Source file: el_GR 1026s Output: /tmp/tmp.GmS6TMAJhi/el_GR.utf8 1027s run-with-locales: en_GB=ISO-8859-1... 1027s Character set: ISO-8859-1 1027s Source file: en_GB 1027s Output: /tmp/tmp.GmS6TMAJhi/en_GB 1028s run-with-locales: en_GB.utf8... 1028s Character set: UTF-8 1028s Source file: en_GB 1028s Output: /tmp/tmp.GmS6TMAJhi/en_GB.utf8 1029s run-with-locales: en_US=ISO-8859-1... 1029s Character set: ISO-8859-1 1029s Source file: en_US 1029s Output: /tmp/tmp.GmS6TMAJhi/en_US 1029s run-with-locales: en_US.utf8... 1029s Character set: UTF-8 1029s Source file: en_US 1029s Output: /tmp/tmp.GmS6TMAJhi/en_US.utf8 1030s run-with-locales: es_ES.utf8... 1030s Character set: UTF-8 1030s Source file: es_ES 1030s Output: /tmp/tmp.GmS6TMAJhi/es_ES.utf8 1032s run-with-locales: fa_IR=UTF-8... 1032s Character set: UTF-8 1032s Source file: fa_IR 1032s Output: /tmp/tmp.GmS6TMAJhi/fa_IR 1033s run-with-locales: fa_IR.utf8... 1033s Character set: UTF-8 1033s Source file: fa_IR 1033s Output: /tmp/tmp.GmS6TMAJhi/fa_IR.utf8 1034s run-with-locales: fr_FR.utf8... 1034s Character set: UTF-8 1034s Source file: fr_FR 1034s Output: /tmp/tmp.GmS6TMAJhi/fr_FR.utf8 1036s run-with-locales: hr_HR.utf8... 1036s Character set: UTF-8 1036s Source file: hr_HR 1036s Output: /tmp/tmp.GmS6TMAJhi/hr_HR.utf8 1037s run-with-locales: ja_JP.utf8... 1037s Character set: UTF-8 1037s Source file: ja_JP 1037s Output: /tmp/tmp.GmS6TMAJhi/ja_JP.utf8 1038s run-with-locales: ja_JP.EUC-JP... 1038s Character set: EUC-JP 1038s Source file: ja_JP 1038s Output: /tmp/tmp.GmS6TMAJhi/ja_JP.eucjp 1038s run-with-locales: lt_LT.utf8... 1038s Character set: UTF-8 1038s Source file: lt_LT 1038s Output: /tmp/tmp.GmS6TMAJhi/lt_LT.utf8 1039s run-with-locales: pl_PL=ISO-8859-2... 1039s Character set: ISO-8859-2 1039s Source file: pl_PL 1039s Output: /tmp/tmp.GmS6TMAJhi/pl_PL 1040s run-with-locales: pl_PL.ISO-8859-2... 1040s Character set: ISO-8859-2 1040s Source file: pl_PL 1040s Output: /tmp/tmp.GmS6TMAJhi/pl_PL.iso88592 1040s run-with-locales: pl_PL.utf8... 1040s Character set: UTF-8 1040s Source file: pl_PL 1040s Output: /tmp/tmp.GmS6TMAJhi/pl_PL.utf8 1041s run-with-locales: ru_RU=ISO-8859-5... 1041s Character set: ISO-8859-5 1041s Source file: ru_RU 1041s Output: /tmp/tmp.GmS6TMAJhi/ru_RU 1042s run-with-locales: ru_RU.utf8... 1042s Character set: UTF-8 1042s Source file: ru_RU 1042s Output: /tmp/tmp.GmS6TMAJhi/ru_RU.utf8 1043s run-with-locales: sr_RS=UTF-8... 1043s Character set: UTF-8 1043s Source file: sr_RS 1043s Output: /tmp/tmp.GmS6TMAJhi/sr_RS 1044s run-with-locales: sr_RS@latin=UTF-8... 1044s Character set: UTF-8 1044s Source file: sr_RS@latin 1044s Output: /tmp/tmp.GmS6TMAJhi/sr_RS@latin 1046s run-with-locales: sv_SE=ISO-8859-1... 1046s Character set: ISO-8859-1 1046s Source file: sv_SE 1046s Output: /tmp/tmp.GmS6TMAJhi/sv_SE 1046s run-with-locales: sv_SE.utf8... 1046s Character set: UTF-8 1046s Source file: sv_SE 1046s Output: /tmp/tmp.GmS6TMAJhi/sv_SE.utf8 1047s run-with-locales: tr_TR=ISO-8859-9... 1047s Character set: ISO-8859-9 1047s Source file: tr_TR 1047s Output: /tmp/tmp.GmS6TMAJhi/tr_TR 1048s run-with-locales: tr_TR.utf8... 1048s Character set: UTF-8 1048s Source file: tr_TR 1048s Output: /tmp/tmp.GmS6TMAJhi/tr_TR.utf8 1049s run-with-locales: tt_RU=UTF-8... 1049s Character set: UTF-8 1049s Source file: tt_RU 1049s Output: /tmp/tmp.GmS6TMAJhi/tt_RU 1050s run-with-locales: tt_RU.utf8... 1050s Character set: UTF-8 1050s Source file: tt_RU 1050s Output: /tmp/tmp.GmS6TMAJhi/tt_RU.utf8 1051s run-with-locales: tt_RU@iqtelif=UTF-8... 1051s Character set: UTF-8 1051s Source file: tt_RU@iqtelif 1051s Output: /tmp/tmp.GmS6TMAJhi/tt_RU@iqtelif 1053s /tmp/tmp.GmS6TMAJhi 1053s /tmp/tmp.GmS6TMAJhi/sv_SE 1053s /tmp/tmp.GmS6TMAJhi/sv_SE/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/sv_SE/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/sv_SE/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/sv_SE/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/sv_SE/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/sv_SE/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/sv_SE/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/sv_SE/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/sv_SE/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/sv_SE/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/sv_SE/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/sv_SE/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/sv_SE/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/fr_FR.utf8 1053s /tmp/tmp.GmS6TMAJhi/fr_FR.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/fr_FR.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/fr_FR.utf8/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/fr_FR.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/fr_FR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/fr_FR.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/fr_FR.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/fr_FR.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/fr_FR.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/fr_FR.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/fr_FR.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/fr_FR.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/fr_FR.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/de_DE.utf8 1053s /tmp/tmp.GmS6TMAJhi/de_DE.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/de_DE.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/de_DE.utf8/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/de_DE.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/de_DE.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/de_DE.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/de_DE.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/de_DE.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/de_DE.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/de_DE.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/de_DE.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/de_DE.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/tt_RU.utf8 1053s /tmp/tmp.GmS6TMAJhi/tt_RU.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/tt_RU.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/tt_RU.utf8/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/tt_RU.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/tt_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/tt_RU.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/tt_RU.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/tt_RU.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/tt_RU.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/tt_RU.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/tt_RU.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/tt_RU.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/tt_RU.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/sr_RS 1053s /tmp/tmp.GmS6TMAJhi/sr_RS/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/sr_RS/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/sr_RS/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/sr_RS/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/sr_RS/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/sr_RS/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/sr_RS/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/sr_RS/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/sr_RS/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/sr_RS/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/sr_RS/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/sr_RS/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/sr_RS/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/en_GB 1053s /tmp/tmp.GmS6TMAJhi/en_GB/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/en_GB/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/en_GB/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/en_GB/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/en_GB/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/en_GB/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/en_GB/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/en_GB/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/en_GB/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/en_GB/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/en_GB/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/en_GB/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/en_GB/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/pl_PL 1053s /tmp/tmp.GmS6TMAJhi/pl_PL/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/pl_PL/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/pl_PL/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/pl_PL/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/pl_PL/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/pl_PL/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/pl_PL/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/pl_PL/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/pl_PL/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/pl_PL/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/pl_PL/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/pl_PL/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/pl_PL/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/fa_IR.utf8 1053s /tmp/tmp.GmS6TMAJhi/fa_IR.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/fa_IR.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/fa_IR.utf8/LC_MEASUREMENT 1053s /tmp/tm1..332 1053s # Running test: glib/gi-inspect-typelib.py.test 1053s p.GmS6TMAJhi/fa_IR.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/fa_IR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/fa_IR.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/fa_IR.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/fa_IR.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/fa_IR.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/fa_IR.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/fa_IR.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/fa_IR.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/fa_IR.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/es_ES.utf8 1053s /tmp/tmp.GmS6TMAJhi/es_ES.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/es_ES.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/es_ES.utf8/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/es_ES.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/es_ES.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/es_ES.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/es_ES.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/es_ES.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/es_ES.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/es_ES.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/es_ES.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/es_ES.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/es_ES.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/de_DE@euro.utf8 1053s /tmp/tmp.GmS6TMAJhi/de_DE@euro.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/de_DE@euro.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/de_DE@euro.utf8/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/de_DE@euro.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/de_DE@euro.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/de_DE@euro.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/de_DE@euro.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/de_DE@euro.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/de_DE@euro.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/de_DE@euro.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/de_DE@euro.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/de_DE@euro.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/de_DE@euro.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/tt_RU@iqtelif 1053s /tmp/tmp.GmS6TMAJhi/tt_RU@iqtelif/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/tt_RU@iqtelif/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/tt_RU@iqtelif/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/tt_RU@iqtelif/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/tt_RU@iqtelif/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/tt_RU@iqtelif/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/tt_RU@iqtelif/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/tt_RU@iqtelif/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/tt_RU@iqtelif/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/tt_RU@iqtelif/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/tt_RU@iqtelif/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/tt_RU@iqtelif/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/tt_RU@iqtelif/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/sv_SE.utf8 1053s /tmp/tmp.GmS6TMAJhi/sv_SE.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/sv_SE.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/sv_SE.utf8/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/sv_SE.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/sv_SE.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/sv_SE.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/sv_SE.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/sv_SE.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/sv_SE.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/sv_SE.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/sv_SE.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/sv_SE.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/sv_SE.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.eucjp 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.eucjp/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.eucjp/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.eucjp/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.eucjp/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.eucjp/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.eucjp/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.eucjp/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.eucjp/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.eucjp/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.eucjp/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.eucjp/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.eucjp/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.eucjp/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/tt_RU 1053s /tmp/tmp.GmS6TMAJhi/tt_RU/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/tt_RU/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/tt_RU/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/tt_RU/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/tt_RU/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/tt_RU/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/tt_RU/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/tt_RU/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/tt_RU/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/tt_RU/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/tt_RU/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/tt_RU/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/tt_RU/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/en_US.utf8 1053s /tmp/tmp.GmS6TMAJhi/en_US.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/en_US.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/en_US.utf8/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/en_US.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/en_US.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/en_US.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/en_US.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/en_US.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/en_US.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/en_US.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/en_US.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/en_US.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.utf8 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.utf8/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/el_GR.utf8 1053s /tmp/tmp.GmS6TMAJhi/el_GR.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/el_GR.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/el_GR.utf8/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/el_GR.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/el_GR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/el_GR.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/el_GR.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/el_GR.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/el_GR.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/el_GR.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/el_GR.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/el_GR.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/el_GR.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/sr_RS@latin 1053s /tmp/tmp.GmS6TMAJhi/sr_RS@latin/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/sr_RS@latin/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/sr_RS@latin/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/sr_RS@latin/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/sr_RS@latin/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/sr_RS@latin/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/sr_RS@latin/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/sr_RS@latin/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/sr_RS@latin/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/sr_RS@latin/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/sr_RS@latin/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/sr_RS@latin/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/sr_RS@latin/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.iso88592 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.iso88592/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.iso88592/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.iso88592/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.iso88592/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.iso88592/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.iso88592/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.iso88592/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.iso88592/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.iso88592/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.iso88592/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.iso88592/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.iso88592/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/pl_PL.iso88592/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/hr_HR.utf8 1053s /tmp/tmp.GmS6TMAJhi/hr_HR.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/hr_HR.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/hr_HR.utf8/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/hr_HR.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/hr_HR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/hr_HR.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/hr_HR.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/hr_HR.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/hr_HR.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/hr_HR.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/hr_HR.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/hr_HR.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/hr_HR.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/en_US 1053s /tmp/tmp.GmS6TMAJhi/en_US/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/en_US/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/en_US/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/en_US/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/en_US/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/en_US/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/en_US/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/en_US/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/en_US/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/en_US/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/en_US/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/en_US/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/en_US/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/fa_IR 1053s /tmp/tmp.GmS6TMAJhi/fa_IR/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/fa_IR/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/fa_IR/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/fa_IR/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/fa_IR/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/fa_IR/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/fa_IR/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/fa_IR/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/fa_IR/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/fa_IR/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/fa_IR/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/fa_IR/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/fa_IR/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/tr_TR.utf8 1053s /tmp/tmp.GmS6TMAJhi/tr_TR.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/tr_TR.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/tr_TR.utf8/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/tr_TR.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/tr_TR.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/tr_TR.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/tr_TR.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/tr_TR.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/tr_TR.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/tr_TR.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/tr_TR.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/tr_TR.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/tr_TR.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/tr_TR 1053s /tmp/tmp.GmS6TMAJhi/tr_TR/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/tr_TR/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/tr_TR/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/tr_TR/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/tr_TR/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/tr_TR/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/tr_TR/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/tr_TR/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/tr_TR/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/tr_TR/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/tr_TR/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/tr_TR/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/tr_TR/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/ru_RU.utf8 1053s /tmp/tmp.GmS6TMAJhi/ru_RU.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/ru_RU.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/ru_RU.utf8/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/ru_RU.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/ru_RU.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/ru_RU.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/ru_RU.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/ru_RU.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/ru_RU.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/ru_RU.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/ru_RU.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/ru_RU.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/ru_RU.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/lt_LT.utf8 1053s /tmp/tmp.GmS6TMAJhi/lt_LT.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/lt_LT.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/lt_LT.utf8/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/lt_LT.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/lt_LT.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/lt_LT.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/lt_LT.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/lt_LT.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/lt_LT.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/lt_LT.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/lt_LT.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/lt_LT.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/lt_LT.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.utf8 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.utf8/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/ja_JP.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/de_DE 1053s /tmp/tmp.GmS6TMAJhi/de_DE/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/de_DE/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/de_DE/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/de_DE/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/de_DE/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/de_DE/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/de_DE/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/de_DE/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/de_DE/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/de_DE/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/de_DE/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/de_DE/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/de_DE/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/en_GB.utf8 1053s /tmp/tmp.GmS6TMAJhi/en_GB.utf8/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/en_GB.utf8/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/en_GB.utf8/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/en_GB.utf8/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/en_GB.utf8/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/en_GB.utf8/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/en_GB.utf8/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/en_GB.utf8/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/en_GB.utf8/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/en_GB.utf8/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/en_GB.utf8/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/en_GB.utf8/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/en_GB.utf8/LC_TELEPHONE 1053s /tmp/tmp.GmS6TMAJhi/ru_RU 1053s /tmp/tmp.GmS6TMAJhi/ru_RU/LC_TIME 1053s /tmp/tmp.GmS6TMAJhi/ru_RU/LC_PAPER 1053s /tmp/tmp.GmS6TMAJhi/ru_RU/LC_MEASUREMENT 1053s /tmp/tmp.GmS6TMAJhi/ru_RU/LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/ru_RU/LC_MESSAGES/SYS_LC_MESSAGES 1053s /tmp/tmp.GmS6TMAJhi/ru_RU/LC_COLLATE 1053s /tmp/tmp.GmS6TMAJhi/ru_RU/LC_NAME 1053s /tmp/tmp.GmS6TMAJhi/ru_RU/LC_MONETARY 1053s /tmp/tmp.GmS6TMAJhi/ru_RU/LC_CTYPE 1053s /tmp/tmp.GmS6TMAJhi/ru_RU/LC_ADDRESS 1053s /tmp/tmp.GmS6TMAJhi/ru_RU/LC_NUMERIC 1053s /tmp/tmp.GmS6TMAJhi/ru_RU/LC_IDENTIFICATION 1053s /tmp/tmp.GmS6TMAJhi/ru_RU/LC_TELEPHONE 1053s TAP version 13 1053s ok 1 __main__.TestGIInspectTypelibCommandLine.test_help 1053s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1053s # tmpdir: /tmp/tmpaj1okscs 1053s # Running: ['/usr/bin/gi-inspect-typelib', '--help'] 1053s # Return code: 0 1053s # Output: 1053s # Usage: 1053s # gi-inspect-typelib [OPTION…] NAMESPACE - Inspect GI typelib 1053s # 1053s # Help Options: 1053s # -h, --help Show help options 1053s # 1053s # Application Options: 1053s # --typelib-version=VERSION Typelib version to inspect 1053s # --print-shlibs List the shared libraries the typelib requires 1053s # --print-typelibs List other typelibs the inspected typelib requires 1053s # Error: 1053s ok 2 __main__.TestGIInspectTypelibCommandLine.test_invalid_typelib 1053s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1053s # tmpdir: /tmp/tmpgxsky8ob 1053s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'AnInvalidNameSpace'] 1053s # Return code: 1 1053s # Output: 1053s # 1053s # Error: 1053s # Failed to load typelib: Typelib file for namespace 'AnInvalidNameSpace' (any version) not found 1053s ok 3 __main__.TestGIInspectTypelibCommandLine.test_no_args 1053s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1053s # tmpdir: /tmp/tmpu8whzm_l 1053s # Running: ['/usr/bin/gi-inspect-typelib'] 1053s # Return code: 1 1053s # Output: 1053s # 1053s # Error: 1053s # Please specify exactly one namespace 1053s ok 4 __main__.TestGIInspectTypelibForGLibTypelib.test_print_shlibs 1053s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1053s # tmpdir: /tmp/tmpkuamuwrx 1053s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1053s # Return code: 0 1053s # Output: 1053s # shlib: libgobject-2.0.so.0 1053s # shlib: libglib-2.0.so.0 1053s # Error: 1053s ok 5 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs 1053s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1053s # tmpdir: /tmp/tmpbd_cgog2 1053s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GLib', '--typelib-version=2.0'] 1053s # Return code: 0 1053s # Output: 1053s # 1053s # Error: 1053s ok 6 __main__.TestGIInspectTypelibForGLibTypelib.test_print_typelibs_and_shlibs 1053s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1053s # tmpdir: /tmp/tmp3g21yrxe 1053s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GLib', '--typelib-version=2.0'] 1053s # Return code: 0 1053s # Output: 1053s # shlib: libgobject-2.0.so.0 1053s # shlib: libglib-2.0.so.0 1053s # Error: 1053s ok 7 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_shlibs 1053s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1053s # tmpdir: /tmp/tmp9ysku7ld 1053s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1053s # Return code: 0 1053s # Output: 1053s # shlib: libgobject-2.0.so.0 1053s # Error: 1053s ok 8 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs 1053s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1053s # tmpdir: /tmp/tmpgtkirm3e 1053s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'GObject', '--typelib-version=2.0'] 1053s # Return code: 0 1053s # Output: 1053s # typelib: GLib-2.0 1053s # Error: 1053s ok 9 __main__.TestGIInspectTypelibForGObjectTypelib.test_print_typelibs_and_shlibs 1053s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1053s # tmpdir: /tmp/tmpbh65botu 1053s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'GObject', '--typelib-version=2.0'] 1053s # Return code: 0 1053s # Output: 1053s # shlib: libgobject-2.0.so.0 1053s # typelib: GLib-2.0 1053s # Error: 1053s ok 10 __main__.TestGIInspectTypelibForGioTypelib.test_print_shlibs 1053s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1053s # tmpdir: /tmp/tmp83fovxvt 1053s # Running: ['/usr/bin/gi-inspect-typelib', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1053s # Return code: 0 1053s # Output: 1053s # shlib: libgio-2.0.so.0 1053s # Error: 1053s ok 11 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs 1053s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1053s # tmpdir: /tmp/tmp9lkpwxll 1053s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', 'Gio', '--typelib-version=2.0'] 1053s # Return code: 0 1053s # Output: 1053s # typelib: GObject-2.0 1053s # typelib: GLib-2.0 1053s # typelib: GModule-2.0 1053s # Error: 1053s ok 12 __main__.TestGIInspectTypelibForGioTypelib.test_print_typelibs_and_shlibs 1053s # gi-inspect-typelib: /usr/bin/gi-inspect-typelib 1053s # tmpdir: /tmp/tmpplh7qm76 1053s # Running: ['/usr/bin/gi-inspect-typelib', '--print-typelibs', '--print-shlibs', 'Gio', '--typelib-version=2.0'] 1053s # Return code: 0 1053s # Output: 1053s # shlib: libgio-2.0.so.0 1053s # typelib: GObject-2.0 1053s # typelib: GLib-2.0 1053s # typelib: GModule-2.0 1053s # Error: 1053s 1..12 1053s ok - glib/gi-inspect-typelib.py.test 1053s # Running test: glib/function-info.test 1053s TAP version 14 1053s # random seed: R02Sbe4b9eefe463034ff3298e98949580f8 1053s 1..1 1053s # Start of function-info tests 1053s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_function-info_G9PDK3/function-info/invoker/.dirs/home 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_function-info_G9PDK3/function-info/invoker/.dirs/cache 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_function-info_G9PDK3/function-info/invoker/.dirs/system-config1:/tmp/test_function-info_G9PDK3/function-info/invoker/.dirs/system-config2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_function-info_G9PDK3/function-info/invoker/.dirs/config 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_function-info_G9PDK3/function-info/invoker/.dirs/system-data1:/tmp/test_function-info_G9PDK3/function-info/invoker/.dirs/system-data2 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_function-info_G9PDK3/function-info/invoker/.dirs/data 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_function-info_G9PDK3/function-info/invoker/.dirs/state 1053s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_function-info_G9PDK3/function-info/invoker/.dirs/runtime 1053s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1053s # /function-info/invoker summary: Test preparing a function invoker 1053s ok 1 /function-info/invoker 1053s # End of function-info tests 1053s ok - glib/function-info.test 1053s # Running test: glib/refcount.test 1053s TAP version 14 1053s # random seed: R02Sc4574c319dc287a0a12ae2786adee876 1053s 1..4 1053s # Start of refcount tests 1053s ok 1 /refcount/grefcount 1053s ok 2 /refcount/gatomicrefcount 1053s # Start of grefcount tests 1053s ok 3 /refcount/grefcount/saturation 1053s # End of grefcount tests 1053s # Start of gatomicrefcount tests 1053s ok 4 /refcount/gatomicrefcount/saturation 1053s # End of gatomicrefcount tests 1053s # End of refcount tests 1053s ok - glib/refcount.test 1053s # Running test: glib/network-monitor.test 1053s TAP version 14 1053s # random seed: R02Sebf09540576af34effd0d8cd71fd14d3 1053s 1..4 1053s # Start of network-monitor tests 1053s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 1053s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 1053s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ‘gio-network-monitor’ 1053s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1053s ok 1 /network-monitor/default 1053s ok 2 /network-monitor/remove_default 1053s ok 3 /network-monitor/add_networks 1053s ok - glib/network-monitor.test 1053s ok 4 /network-monitor/remove_networks 1053s # End of network-monitor tests 1053s # Running test: glib/utf8-validate.test 1053s TAP version 14 1053s # random seed: R02Sca8ddb55d83c85a7521ce18587053180 1053s 1..238 1053s # Start of utf8 tests 1053s # Vector 0 1053s # Vector 1 1053s # Vector 2 1053s # Vector 3 1053s # Vector 4 1053s # Vector 5 1053s # Vector 6 1053s # Vector 7 1053s # Vector 8 1053s # Vector 9 1053s # Vector 10 1053s # Vector 11 1053s # Vector 12 1053s # Vector 13 1053s # Vector 14 1053s # Vector 15 1053s # Vector 16 1053s # Vector 17 1053s # Vector 18 1053s # Vector 19 1053s # Vector 20 1053s # Vector 21 1053s # Vector 22 1053s # Vector 23 1053s # Vector 24 1053s # Vector 25 1053s # Vector 26 1053s # Vector 27 1053s ok 1 /utf8/get-char-validated 1053s # Start of validate tests 1053s ok 2 /utf8/validate/0 1053s ok 3 /utf8/validate/1 1053s ok 4 /utf8/validate/2 1053s ok 5 /utf8/validate/3 1053s ok 6 /utf8/validate/4 1053s ok 7 /utf8/validate/5 1053s ok 8 /utf8/validate/6 1053s ok 9 /utf8/validate/7 1053s ok 10 /utf8/validate/8 1053s ok 11 /utf8/validate/9 1053s ok 12 /utf8/validate/10 1053s ok 13 /utf8/validate/11 1053s ok 14 /utf8/validate/12 1053s ok 15 /utf8/validate/13 1053s ok 16 /utf8/validate/14 1053s ok 17 /utf8/validate/15 1053s ok 18 /utf8/validate/16 1053s ok 19 /utf8/validate/17 1053s ok 20 /utf8/validate/18 1053s ok 21 /utf8/validate/19 1053s ok 22 /utf8/validate/20 1053s ok 23 /utf8/validate/21 1053s ok 24 /utf8/validate/22 1053s ok 25 /utf8/validate/23 1053s ok 26 /utf8/validate/24 1053s ok 27 /utf8/validate/25 1053s ok 28 /utf8/validate/26 1053s ok 29 /utf8/validate/27 1053s ok 30 /utf8/validate/28 1053s ok 31 /utf8/validate/29 1053s ok 32 /utf8/validate/30 1053s ok 33 /utf8/validate/31 1053s ok 34 /utf8/validate/32 1053s ok 35 /utf8/validate/33 1053s ok 36 /utf8/validate/34 1053s ok 37 /utf8/validate/35 1053s ok 38 /utf8/validate/36 1053s ok 39 /utf8/validate/37 1053s ok 40 /utf8/validate/38 1053s ok 41 /utf8/validate/39 1053s ok 42 /utf8/validate/40 1053s ok 43 /utf8/validate/41 1053s ok 44 /utf8/validate/42 1053s ok 45 /utf8/validate/43 1053s ok 46 /utf8/validate/44 1053s ok 47 /utf8/validate/45 1053s ok 48 /utf8/validate/46 1053s ok 49 /utf8/validate/47 1053s ok 50 /utf8/validate/48 1053s ok 51 /utf8/validate/49 1053s ok 52 /utf8/validate/50 1053s ok 53 /utf8/validate/51 1053s ok 54 /utf8/validate/52 1053s ok 55 /utf8/validate/53 1053s ok 56 /utf8/validate/54 1053s ok 57 /utf8/validate/55 1053s ok 58 /utf8/validate/56 1053s ok 59 /utf8/validate/57 1053s ok 60 /utf8/validate/58 1053s ok 61 /utf8/validate/59 1053s ok 62 /utf8/validate/60 1053s ok 63 /utf8/validate/61 1053s ok 64 /utf8/validate/62 1053s ok 65 /utf8/validate/63 1053s ok 66 /utf8/validate/64 1053s ok 67 /utf8/validate/65 1053s ok 68 /utf8/validate/66 1053s ok 69 /utf8/validate/67 1053s ok 70 /utf8/validate/68 1053s ok 71 /utf8/validate/69 1053s ok 72 /utf8/validate/70 1053s ok 73 /utf8/validate/71 1053s ok 74 /utf8/validate/72 1053s ok 75 /utf8/validate/73 1053s ok 76 /utf8/validate/74 1053s ok 77 /utf8/validate/75 1053s ok 78 /utf8/validate/76 1053s ok 79 /utf8/validate/77 1053s ok 80 /utf8/validate/78 1053s ok 81 /utf8/validate/79 1053s ok 82 /utf8/validate/80 1053s ok 83 /utf8/validate/81 1053s ok 84 /utf8/validate/82 1053s ok 85 /utf8/validate/83 1053s ok 86 /utf8/validate/84 1053s ok 87 /utf8/validate/85 1053s ok 88 /utf8/validate/86 1053s ok 89 /utf8/validate/87 1053s ok 90 /utf8/validate/88 1053s ok 91 /utf8/validate/89 1053s ok 92 /utf8/validate/90 1053s ok 93 /utf8/validate/91 1053s ok 94 /utf8/validate/92 1053s ok 95 /utf8/validate/93 1053s ok 96 /utf8/validate/94 1053s ok 97 /utf8/validate/95 1053s ok 98 /utf8/validate/96 1053s ok 99 /utf8/validate/97 1053s ok 100 /utf8/validate/98 1053s ok 101 /utf8/validate/99 1053s ok 102 /utf8/validate/100 1053s ok 103 /utf8/validate/101 1053s ok 104 /utf8/validate/102 1053s ok 105 /utf8/validate/103 1053s ok 106 /utf8/validate/104 1053s ok 107 /utf8/validate/105 1053s ok 108 /utf8/validate/106 1053s ok 109 /utf8/validate/107 1053s ok 110 /utf8/validate/108 1053s ok 111 /utf8/validate/109 1053s ok 112 /utf8/validate/110 1053s ok 113 /utf8/validate/111 1053s ok 114 /utf8/validate/112 1053s ok 115 /utf8/validate/113 1053s ok 116 /utf8/validate/114 1053s ok 117 /utf8/validate/115 1053s ok 118 /utf8/validate/116 1053s ok 119 /utf8/validate/117 1053s ok 120 /utf8/validate/118 1053s ok 121 /utf8/validate/119 1053s ok 122 /utf8/validate/120 1053s ok 123 /utf8/validate/121 1053s ok 124 /utf8/validate/122 1053s ok 125 /utf8/validate/123 1053s ok 126 /utf8/validate/124 1053s ok 127 /utf8/validate/125 1053s ok 128 /utf8/validate/126 1053s ok 129 /utf8/validate/127 1053s ok 130 /utf8/validate/128 1053s ok 131 /utf8/validate/129 1053s ok 132 /utf8/validate/130 1053s ok 133 /utf8/validate/131 1053s ok 134 /utf8/validate/132 1053s ok 135 /utf8/validate/133 1053s ok 136 /utf8/validate/134 1053s ok 137 /utf8/validate/135 1053s ok 138 /utf8/validate/136 1053s ok 139 /utf8/validate/137 1053s ok 140 /utf8/validate/138 1053s ok 141 /utf8/validate/139 1053s ok 142 /utf8/validate/140 1053s ok 143 /utf8/validate/141 1053s ok 144 /utf8/validate/142 1053s ok 145 /utf8/validate/143 1053s ok 146 /utf8/validate/144 1053s ok 147 /utf8/validate/145 1053s ok 148 /utf8/validate/146 1053s ok 149 /utf8/validate/147 1053s ok 150 /utf8/validate/148 1053s ok 151 /utf8/validate/149 1053s ok 152 /utf8/validate/150 1053s ok 153 /utf8/validate/151 1053s ok 154 /utf8/validate/152 1053s ok 155 /utf8/validate/153 1053s ok 156 /utf8/validate/154 1053s ok 157 /utf8/validate/155 1053s ok 158 /utf8/validate/156 1053s ok 159 /utf8/validate/157 1053s ok 160 /utf8/validate/158 1053s ok 161 /utf8/validate/159 1053s ok 162 /utf8/validate/160 1053s ok 163 /utf8/validate/161 1053s ok 164 /utf8/validate/162 1053s ok 165 /utf8/validate/163 1053s ok 166 /utf8/validate/164 1053s ok 167 /utf8/validate/165 1053s ok 168 /utf8/validate/166 1053s ok 169 /utf8/validate/167 1053s ok 170 /utf8/validate/168 1053s ok 171 /utf8/validate/169 1053s ok 172 /utf8/validate/170 1053s ok 173 /utf8/validate/171 1053s ok 174 /utf8/validate/172 1053s ok 175 /utf8/validate/173 1053s ok 176 /utf8/validate/174 1053s ok 177 /utf8/validate/175 1053s ok 178 /utf8/validate/176 1053s ok 179 /utf8/validate/177 1053s ok 180 /utf8/validate/178 1053s ok 181 /utf8/validate/179 1053s ok 182 /utf8/validate/180 1053s ok 183 /utf8/validate/181 1053s ok 184 /utf8/validate/182 1053s ok 185 /utf8/validate/183 1053s ok 186 /utf8/validate/184 1053s ok 187 /utf8/validate/185 1053s ok 188 /utf8/validate/186 1053s ok 189 /utf8/validate/187 1053s ok 190 /utf8/validate/188 1053s ok 191 /utf8/validate/189 1053s ok 192 /utf8/validate/190 1053s ok 193 /utf8/validate/191 1053s ok 194 /utf8/validate/192 1053s ok 195 /utf8/validate/193 1053s ok 196 /utf8/validate/194 1053s ok 197 /utf8/validate/195 1053s ok 198 /utf8/validate/196 1053s ok 199 /utf8/validate/197 1053s ok 200 /utf8/validate/198 1053s ok 201 /utf8/validate/199 1053s ok 202 /utf8/validate/200 1053s ok 203 /utf8/validate/201 1053s ok 204 /utf8/validate/202 1053s ok 205 /utf8/validate/203 1053s ok 206 /utf8/validate/204 1053s ok 207 /utf8/validate/205 1053s ok 208 /utf8/validate/206 1053s ok 209 /utf8/validate/207 1053s ok 210 /utf8/validate/208 1053s ok 211 /utf8/validate/209 1053s ok 212 /utf8/validate/210 1053s ok 213 /utf8/validate/211 1053s ok 214 /utf8/validate/212 1053s ok 215 /utf8/validate/213 1053s ok 216 /utf8/validate/214 1053s ok 217 /utf8/validate/215 1053s ok 218 /utf8/validate/216 1053s ok 219 /utf8/validate/217 1053s ok 220 /utf8/validate/218 1053s ok 221 /utf8/validate/219 1053s ok 222 /utf8/validate/220 1053s ok 223 /utf8/validate/221 1053s ok 224 /utf8/validate/222 1053s ok 225 /utf8/validate/223 1053s ok 226 /utf8/validate/224 1053s ok 227 /utf8/validate/225 1053s ok 228 /utf8/validate/226 1053s ok 229 /utf8/validate/227 1053s ok 230 /utf8/validate/228 1053s ok 231 /utf8/validate/229 1053s ok 232 /utf8/validate/230 1053s ok - glib/utf8-validate.test 1053s # Running test: glib/markup-parse.test 1053s ok 233 /utf8/validate/231 1053s ok 234 /utf8/validate/232 1053s ok 235 /utf8/validate/233 1053s ok 236 /utf8/validate/234 1053s ok 237 /utf8/validate/235 1053s ok 238 /utf8/validate/236 1053s # End of validate tests 1053s # End of utf8 tests 1053s TAP version 14 1053s # random seed: R02Sf42caccb2fd6ce391cc1ee68229e8108 1053s 1..71 1053s # Start of markup tests 1053s # Start of parse tests 1053s ok 1 /markup/parse/fail-19.gmarkup 1053s ok 2 /markup/parse/fail-47.gmarkup 1053s ok 3 /markup/parse/fail-32.gmarkup 1053s ok 4 /markup/parse/fail-1.gmarkup 1053s ok 5 /markup/parse/fail-42.gmarkup 1053s ok 6 /markup/parse/fail-33.gmarkup 1053s ok 7 /markup/parse/valid-11.gmarkup 1053s ok 8 /markup/parse/fail-54.gmarkup 1053s ok 9 /markup/parse/fail-38.gmarkup 1053s ok 10 /markup/parse/fail-13.gmarkup 1053s ok 11 /markup/parse/fail-11.gmarkup 1053s ok 12 /markup/parse/valid-17.gmarkup 1053s ok 13 /markup/parse/fail-53.gmarkup 1053s ok 14 /markup/parse/fail-44.gmarkup 1053s ok 15 /markup/parse/fail-40.gmarkup 1053s ok 16 /markup/parse/fail-43.gmarkup 1053s ok 17 /markup/parse/fail-23.gmarkup 1053s ok 18 /markup/parse/valid-9.gmarkup 1053s ok 19 /markup/parse/valid-14.gmarkup 1053s ok 20 /markup/parse/fail-50.gmarkup 1053s ok 21 /markup/parse/fail-30.gmarkup 1053s ok 22 /markup/parse/fail-20.gmarkup 1053s ok 23 /markup/parse/valid-15.gmarkup 1053s ok 24 /markup/parse/fail-29.gmarkup 1053s ok 25 /markup/parse/valid-7.gmarkup 1053s ok 26 /markup/parse/fail-2.gmarkup 1053s ok 27 /markup/parse/valid-13.gmarkup 1053s ok 28 /markup/parse/fail-26.gmarkup 1053s ok 29 /markup/parse/fail-35.gmarkup 1053s ok 30 /markup/parse/fail-10.gmarkup 1053s ok 31 /markup/parse/valid-3.gmarkup 1053s ok 32 /markup/parse/fail-46.gmarkup 1053s ok 33 /markup/parse/valid-4.gmarkup 1053s ok 34 /markup/parse/fail-24.gmarkup 1053s ok 35 /markup/parse/fail-3.gmarkup 1053s ok 36 /markup/parse/valid-5.gmarkup 1053s ok 37 /markup/parse/fail-7.gmarkup 1053s ok 38 /markup/parse/fail-51.gmarkup 1053s ok 39 /markup/parse/valid-10.gmarkup 1053s ok 40 /markup/parse/fail-31.gmarkup 1053s ok 41 /markup/parse/fail-21.gmarkup 1053s ok 42 /markup/parse/fail-9.gmarkup 1053s ok 43 /markup/parse/valid-16.gmarkup 1053s ok 44 /markup/parse/fail-15.gmarkup 1053s ok 45 /markup/parse/fail-36.gmarkup 1053s ok 46 /markup/parse/fail-5.gmarkup 1053s ok 47 /markup/parse/fail-18.gmarkup 1053s ok 48 /markup/parse/fail-14.gmarkup 1053s ok 49 /markup/parse/valid-12.gmarkup 1053s ok 50 /markup/parse/fail-52.gmarkup 1053s ok 51 /markup/parse/fail-17.gmarkup 1053s ok 52 /markup/parse/fail-48.gmarkup 1053s ok 53 /markup/parse/valid-8.gmarkup 1053s ok 54 /markup/parse/fail-6.gmarkup 1053s ok 55 /markup/parse/fail-41.gmarkup 1053s ok 56 /markup/parse/fail-25.gmarkup 1053s ok 57 /markup/parse/fail-49.gmarkup 1053s ok 58 /markup/parse/fail-12.gmarkup 1053s ok 59 /markup/parse/fail-4.gmarkup 1053s ok 60 /markup/parse/fail-22.gmarkup 1053s ok 61 /markup/parse/valid-6.gmarkup 1053s ok 62 /markup/parse/fail-37.gmarkup 1053s ok 63 /markup/parse/fail-8.gmarkup 1053s ok 64 /markup/parse/valid-1.gmarkup 1053s ok 65 /markup/parse/fail-16.gmarkup 1053s ok - glib/markup-parse.test 1053s # Running test: glib/signals-refcount4.test 1053s ok 66 /markup/parse/fail-45.gmarkup 1053s ok 67 /markup/parse/fail-39.gmarkup 1053s ok 68 /markup/parse/fail-28.gmarkup 1053s ok 69 /markup/parse/valid-2.gmarkup 1053s ok 70 /markup/parse/fail-34.gmarkup 1053s ok 71 /markup/parse/fail-27.gmarkup 1053s # End of parse tests 1053s # End of markup tests 1053s TAP version 14 1053s # random seed: R02S9ba543e4ecf9582be1977f5b049291b3 1053s 1..1 1053s # Start of gobject tests 1053s # Start of refcount tests 1053s # init 0x17ddcf1d4a0 1053s # 1053s # init 0x17ddcf15580 1053s # 1058s # Executing: glib/signals-refcount4.test 1058s ok - glib/signals-refcount4.test 1058s # Running test: glib/g-file.test 1058s ok - glib/g-file.test 1058s # Running test: glib/dynamictype.test 1058s # dispose 0x17ddcf1d4a0! 1058s # 1058s # dispose 0x17ddcf15580! 1058s # 1058s ok 1 /gobject/refcount/signals 1058s # slow test /gobject/refcount/signals executed in 5.00 secs 1058s # End of refcount tests 1058s # End of gobject tests 1058s TAP version 14 1058s # random seed: R02S4905082f5657a4d781f940a2ecc4c998 1058s 1..8 1058s # Start of g-file tests 1058s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1058s ok 1 /g-file/test_g_file_new_null 1058s ok 2 /g-file/test_g_file_new_for_path 1058s ok 3 /g-file/test_g_file_new_for_uri 1058s ok 4 /g-file/test_g_file_dup 1058s ok 5 /g-file/test_g_file_get_parse_name_utf8 1058s file:///tmp/test-tmp-glib_g-file.test-SS9BK3 1058s file:///tmp 1058s file:///tmp 1058s file:////UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1058s file:///UTF-8%20p%C5%99%C3%ADli%C5%A1%20%C5%BElu%C5%A5ou%C4%8Dk%C3%BD%20k%C5%AF%C5%88 1058s ok 6 /g-file/test_g_file_new_for_commandline_arg 1058s /dir1 /dir1/dir2/dir3/ 1058s /dir1/ /dir1/dir2/dir3/ 1058s /dir1 /dir1/dir2/dir3 1058s /dir1/ /dir1/dir2/dir3 1058s /tmp/ /something/ 1058s /dir1/dir2 /dir1/ 1058s //dir1/new //dir1/new/dir2/dir3 1058s /dir/UTF-8 příliš žluťoučký kůň /dir/UTF-8 příliš žluťoučký kůň/dir2 1058s file:///dir1 file:///dir1/dir2/dir3/ 1058s file:///dir1/ file:///dir1/dir2/dir3/ 1058s file:///dir1 file:///dir1/dir2/dir3 1058s file:///dir1/ file:///dir1/dir2/dir3 1058s file:///tmp/ file:///something/ 1058s file:///dir1/dir2 file:///dir1/ 1058s file:////dir1/new file:////dir1/new/dir2/dir3 1058s 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 1058s ok 7 /g-file/test_g_file_has_prefix 1058s ok 8 /g-file/test_g_file_get_parent_child 1058s # End of g-file tests 1058s TAP version 14 1058s ok - glib/dynamictype.test 1058s # Running test: glib/threadtests.test 1058s # random seed: R02S522fc3a15c0e9c5670d4b3022f542e55 1058s 1..2 1058s # Start of gobject tests 1058s ok 1 /gobject/dynamic-type 1058s # Start of dynamic-type tests 1058s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/623 1058s ok 2 /gobject/dynamic-type/query 1058s # End of dynamic-type tests 1058s # End of gobject tests 1058s TAP version 14 1058s # random seed: R02S47667bd037d0a33fad766b9516884aed 1058s 1..5 1058s # Start of GObject tests 1058s ok 1 /GObject/threaded-object-init 1059s ok 2 /GObject/threaded-weak-ref 1059s # slow test /GObject/threaded-weak-ref executed in 1.18 secs 1059s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 1059s # /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 1059s ok 3 /GObject/threaded-toggle-notify 1059s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1059s # Start of threaded-weak-ref tests 1059s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1059s # /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. 1059s ok 5 /GObject/threaded-weak-ref/on-finalization 1059s # End of threaded-weak-ref tests 1059s # End of GObject tests 1059s ok - glib/threadtests.test 1059s # Running test: glib/array-test.test 1059s TAP version 14 1059s # random seed: R02Sff3a00e5d9d0cd863ce6770b0e6ea896 1059s 1..120 1059s # Start of array tests 1059s ok 1 /array/ref-count 1059s ok 2 /array/steal 1059s ok 3 /array/clear-func 1059s ok 4 /array/binary-search 1060s ok 5 /array/overflow-append-vals 1060s ok 6 /array/overflow-set-size 1060s # Start of new tests 1060s ok 7 /array/new/zero-terminated 1060s ok 8 /array/new/take 1060s ok 9 /array/new/take-zero-terminated 1060s # Start of take tests 1060s ok 10 /array/new/take/empty 1060s ok 11 /array/new/take/overflow 1060s ok 12 /array/new/take/zero-size 1060s # End of take tests 1060s # Start of take-zero-terminated tests 1060s ok 13 /array/new/take-zero-terminated/zero-size 1060s ok 14 /array/new/take-zero-terminated/null 1060s # End of take-zero-terminated tests 1060s # End of new tests 1060s # Start of copy tests 1060s # /array/copy/sized summary: Test that copying a newly-allocated sized array works. 1060s ok 15 /array/copy/sized 1060s ok 16 /array/copy/zero-terminated 1060s ok 17 /array/copy/non-zero-terminated-no-clear 1060s ok 18 /array/copy/non-zero-terminated-clear 1060s ok 19 /array/copy/zero-terminated-no-clear 1060s ok 20 /array/copy/zero-terminated-clear 1060s # End of copy tests 1060s # Start of remove-range tests 1060s ok 21 /array/remove-range/zero-terminated-null 1060s ok 22 /array/remove-range/non-zero-terminated-no-clear 1060s ok 23 /array/remove-range/non-zero-terminated-clear 1060s ok 24 /array/remove-range/zero-terminated-no-clear 1060s ok 25 /array/remove-range/zero-terminated-clear 1060s # End of remove-range tests 1060s # Start of set-size tests 1060s ok 26 /array/set-size/zero-terminated-null 1060s ok 27 /array/set-size/non-zero-terminated-no-clear 1060s ok 28 /array/set-size/non-zero-terminated-clear 1060s ok 29 /array/set-size/zero-terminated-no-clear 1060s ok 30 /array/set-size/zero-terminated-clear 1060s # Start of sized tests 1060s ok 31 /array/set-size/sized/non-zero-terminated-no-clear 1060s ok 32 /array/set-size/sized/non-zero-terminated-clear 1060s ok 33 /array/set-size/sized/zero-terminated-no-clear 1060s ok 34 /array/set-size/sized/zero-terminated-clear 1060s # End of sized tests 1060s # End of set-size tests 1060s # Start of append-val tests 1060s ok 35 /array/append-val/non-zero-terminated-no-clear 1060s ok 36 /array/append-val/non-zero-terminated-clear 1060s ok 37 /array/append-val/zero-terminated-no-clear 1060s ok 38 /array/append-val/zero-terminated-clear 1060s # End of append-val tests 1060s # Start of prepend-val tests 1060s ok 39 /array/prepend-val/non-zero-terminated-no-clear 1060s ok 40 /array/prepend-val/non-zero-terminated-clear 1060s ok 41 /array/prepend-val/zero-terminated-no-clear 1060s ok 42 /array/prepend-val/zero-terminated-clear 1060s # End of prepend-val tests 1060s # Start of prepend-vals tests 1060s ok 43 /array/prepend-vals/non-zero-terminated-no-clear 1060s ok 44 /array/prepend-vals/non-zero-terminated-clear 1060s ok 45 /array/prepend-vals/zero-terminated-no-clear 1060s ok 46 /array/prepend-vals/zero-terminated-clear 1060s # End of prepend-vals tests 1060s # Start of insert-vals tests 1060s ok 47 /array/insert-vals/non-zero-terminated-no-clear 1060s ok 48 /array/insert-vals/non-zero-terminated-clear 1060s ok 49 /array/insert-vals/zero-terminated-no-clear 1060s ok 50 /array/insert-vals/zero-terminated-clear 1060s # End of insert-vals tests 1060s # Start of remove-index tests 1060s ok 51 /array/remove-index/non-zero-terminated-no-clear 1060s ok 52 /array/remove-index/non-zero-terminated-clear 1060s ok 53 /array/remove-index/zero-terminated-no-clear 1060s ok 54 /array/remove-index/zero-terminated-clear 1060s # End of remove-index tests 1060s # Start of remove-index-fast tests 1060s ok 55 /array/remove-index-fast/non-zero-terminated-no-clear 1060s ok 56 /array/remove-index-fast/non-zero-terminated-clear 1060s ok 57 /array/remove-index-fast/zero-terminated-no-clear 1060s ok 58 /array/remove-index-fast/zero-terminated-clear 1060s # End of remove-index-fast tests 1060s # Start of sort tests 1060s ok 59 /array/sort/non-zero-terminated-no-clear 1060s ok 60 /array/sort/non-zero-terminated-clear 1060s ok 61 /array/sort/zero-terminated-no-clear 1060s ok 62 /array/sort/zero-terminated-clear 1060s # End of sort tests 1060s # Start of sort-with-data tests 1060s ok 63 /array/sort-with-data/non-zero-terminated-no-clear 1060s ok 64 /array/sort-with-data/non-zero-terminated-clear 1060s ok 65 /array/sort-with-data/zero-terminated-no-clear 1060s ok 66 /array/sort-with-data/zero-terminated-clear 1060s # End of sort-with-data tests 1060s # End of array tests 1060s # Start of pointerarray tests 1060s ok 67 /pointerarray/add 1060s ok 68 /pointerarray/insert 1060s ok 69 /pointerarray/new-take 1060s ok 70 /pointerarray/new-take-null-terminated 1060s ok 71 /pointerarray/new-from-array 1060s ok 72 /pointerarray/new-from-null-terminated-array 1060s ok 73 /pointerarray/free-func 1060s ok 74 /pointerarray/array_extend_and_steal 1060s ok 75 /pointerarray/sort 1060s ok 76 /pointerarray/sort-with-data 1060s ok 77 /pointerarray/sort-values 1060s ok 78 /pointerarray/sort-values-with-data 1060s ok 79 /pointerarray/remove-range 1060s ok 80 /pointerarray/steal 1060s # Start of free tests 1060s # /pointerarray/free/null-terminated summary: Check that g_ptr_array_free() on an empty array returns a NULL-terminated empty array 1060s ok 81 /pointerarray/free/null-terminated 1060s # End of free tests 1060s # Start of new-take tests 1060s ok 82 /pointerarray/new-take/empty 1060s ok 83 /pointerarray/new-take/overflow 1060s ok 84 /pointerarray/new-take/with-free-func 1060s # End of new-take tests 1060s # Start of new-take-null-terminated tests 1060s ok 85 /pointerarray/new-take-null-terminated/empty 1060s ok 86 /pointerarray/new-take-null-terminated/with-free-func 1060s ok 87 /pointerarray/new-take-null-terminated/from-gstrv 1060s # End of new-take-null-terminated tests 1060s # Start of new-from-array tests 1060s ok 88 /pointerarray/new-from-array/empty 1060s ok 89 /pointerarray/new-from-array/overflow 1060s ok 90 /pointerarray/new-from-array/with-copy-and-free-func 1060s # End of new-from-array tests 1060s # Start of new-from-null-terminated-array tests 1060s ok 91 /pointerarray/new-from-null-terminated-array/empty 1060s ok 92 /pointerarray/new-from-null-terminated-array/with-copy-and-free-func 1060s ok 93 /pointerarray/new-from-null-terminated-array/from-gstrv 1060s # End of new-from-null-terminated-array tests 1060s # Start of ref-count tests 1060s ok 94 /pointerarray/ref-count/not-null-terminated 1060s ok 95 /pointerarray/ref-count/null-terminated 1060s # End of ref-count tests 1060s # Start of array_copy tests 1060s # /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 1060s ok 96 /pointerarray/array_copy/not-null-terminated 1060s # /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 1060s ok 97 /pointerarray/array_copy/null-terminated 1060s # End of array_copy tests 1060s # Start of array_extend tests 1060s ok 98 /pointerarray/array_extend/not-null-terminated 1060s ok 99 /pointerarray/array_extend/null-terminated 1060s # End of array_extend tests 1060s # Start of sort tests 1060s # /pointerarray/sort/example summary: Check that the doc-comment for g_ptr_array_sort() is correct 1060s ok 100 /pointerarray/sort/example 1060s # End of sort tests 1060s # Start of sort-with-data tests 1060s # /pointerarray/sort-with-data/example summary: Check that the doc-comment for g_ptr_array_sort_with_data() is correct 1060s ok 101 /pointerarray/sort-with-data/example 1060s # End of sort-with-data tests 1060s # Start of sort-values tests 1060s ok 102 /pointerarray/sort-values/example 1060s # End of sort-values tests 1060s # Start of sort-values-with-data tests 1060s ok 103 /pointerarray/sort-values-with-data/example 1060s # End of sort-values-with-data tests 1060s # Start of find tests 1060s ok 104 /pointerarray/find/empty 1060s ok 105 /pointerarray/find/non-empty 1060s # End of find tests 1060s # Start of steal_index tests 1060s ok 106 /pointerarray/steal_index/not-null-terminated 1060s ok 107 /pointerarray/steal_index/null-terminated 1060s # End of steal_index tests 1060s # End of pointerarray tests 1060s # Start of bytearray tests 1060s ok 108 /bytearray/steal 1060s ok 109 /bytearray/append 1060s ok 110 /bytearray/prepend 1060s ok 111 /bytearray/remove 1060s ok 112 /bytearray/remove-fast 1060s ok 113 /bytearray/remove-range 1060s ok 114 /bytearray/ref-count 1060s ok 115 /bytearray/set-size 1060s ok 116 /bytearray/sort 1060s ok 117 /bytearray/sort-with-data 1060s ok 118 /bytearray/new-take 1060s ok 119 /bytearray/new-take-overflow 1060s ok 120 /bytearray/free-to-bytes 1060s # End of bytearray tests 1060s ok - glib/array-test.test 1060s TAP version 14 1060s # random seed: R02S8c46d4a048c1a38731fb88031fde439d 1060s 1..4 1060s # Start of struct-info tests 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_9Y5IK3/struct-info/field-iterators/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/field-iterators/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_9Y5IK3/struct-info/field-iterators/.dirs/system-config1:/tmp/test_struct-info_9Y5IK3/struct-info/field-iterators/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/field-iterators/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_9Y5IK3/struct-info/field-iterators/.dirs/system-data1:/tmp/test_struct-info_9Y5IK3/struct-info/field-iterators/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/field-iterators/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/field-iterators/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_9Y5IK3/struct-info/field-iterators/.dirs/runtime 1060s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1060s # /struct-info/field-iterators summary: Test iterating through a struct's fields with gi_struct_info_get_field() 1060s ok 1 /struct-info/field-iterators 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_9Y5IK3/struct-info/sizeof-gvalue/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/sizeof-gvalue/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_9Y5IK3/struct-info/sizeof-gvalue/.dirs/system-config1:/tmp/test_struct-info_9Y5IK3/struct-info/sizeof-gvalue/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/sizeof-gvalue/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_9Y5IK3/struct-info/sizeof-gvalue/.dirs/system-data1:/tmp/test_struct-info_9Y5IK3/struct-info/sizeof-gvalue/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/sizeof-gvalue/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/sizeof-gvalue/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_9Y5IK3/struct-info/sizeof-gvalue/.dirs/runtime 1060s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1060s # /struct-info/sizeof-gvalue summary: Test that gi_struct_info_get_size() reports the correct sizeof GValue 1060s ok 2 /struct-info/sizeof-gvalue 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_9Y5IK3/struct-info/is-pointer-for-struct-method-arg/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/is-pointer-for-struct-method-arg/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_9Y5IK3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config1:/tmp/test_struct-info_9Y5IK3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/is-pointer-for-struct-method-arg/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_9Y5IK3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data1:/tmp/test_struct-info_9Y5IK3/struct-info/is-pointer-for-struct-method-arg/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/is-pointer-for-struct-method-arg/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/is-pointer-for-struct-method-arg/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_9Y5IK3/struct-info/is-pointer-for-struct-method-arg/.dirs/runtime 1060s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1060s # /struct-info/is-pointer-for-struct-method-arg summary: Test that a struct method reports the correct type with gi_type_info_is_pointer() 1060s ok 3 /struct-info/is-pointer-for-struct-method-arg 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_struct-info_9Y5IK3/struct-info/boxed/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/boxed/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_struct-info_9Y5IK3/struct-info/boxed/.dirs/system-config1:/tmp/test_struct-info_9Y5IK3/struct-info/boxed/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/boxed/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_struct-info_9Y5IK3/struct-info/boxed/.dirs/system-data1:/tmp/test_struct-info_9Y5IK3/struct-info/boxed/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/boxed/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_struct-info_9Y5IK3/struct-info/boxed/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_struct-info_9Y5IK3/struct-info/boxed/.dirs/runtime 1060s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1060s # /struct-info/boxed summary: Test that a boxed struct is recognised as such 1060s ok 4 /struct-info/boxed 1060s # End of struct-info tests 1060s TAP version 14 1060s # random seed: R02Safd6dad63745557e9204176124fce149 1060s 1..6 1060s # Start of glib tests 1060s # Start of checked-math tests 1060s ok 1 /glib/checked-math/guint-add 1060s ok 2 /glib/checked-math/guint-mul 1060s ok 3 /glib/checked-math/guint64-add 1060s ok 4 /glib/checked-math/guint64-mul 1060s ok 5 /glib/checked-math/gsize-add 1060s ok 6 /glib/checked-math/gsize-mul 1060s # End of checked-math tests 1060s # End of glib tests 1060s # Running test: glib/struct-info.test 1060s ok - glib/struct-info.test 1060s # Running test: glib/overflow.test 1060s TAP version 14 1060s # random seed: R02S525b61750453281c49007810484bdc5c 1060s 1..27 1060s # Start of fileutils tests 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/paths/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/paths/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/paths/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/paths/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/paths/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/paths/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/paths/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/paths/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/paths/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/paths/.dirs/runtime 1060s ok - glib/overflow.test 1060s # Running test: glib/fileutils.test 1060s ok 1 /fileutils/paths 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-path/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-path/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/build-path/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/build-path/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-path/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/build-path/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/build-path/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-path/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-path/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/build-path/.dirs/runtime 1060s ok 2 /fileutils/build-path 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-pathv/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-pathv/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/build-pathv/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/build-pathv/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-pathv/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/build-pathv/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/build-pathv/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-pathv/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-pathv/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/build-pathv/.dirs/runtime 1060s ok 3 /fileutils/build-pathv 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-filename/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-filename/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/build-filename/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/build-filename/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-filename/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/build-filename/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/build-filename/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-filename/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-filename/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/build-filename/.dirs/runtime 1060s ok 4 /fileutils/build-filename 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-filenamev/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-filenamev/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/build-filenamev/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/build-filenamev/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-filenamev/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/build-filenamev/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/build-filenamev/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-filenamev/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/build-filenamev/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/build-filenamev/.dirs/runtime 1060s ok 5 /fileutils/build-filenamev 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents/.dirs/runtime 1060s # We do not have CAP_DAC_OVERRIDE or equivalent 1060s # Checking g_mkdir_with_parents() in subdir ./hum/ 1060s # Checking g_mkdir_with_parents() in subdir ./hii///haa/hee/ 1060s ok 6 /fileutils/mkdir-with-parents 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents-permission/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents-permission/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents-permission/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents-permission/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents-permission/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents-permission/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents-permission/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents-permission/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents-permission/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/mkdir-with-parents-permission/.dirs/runtime 1060s # We do not have CAP_DAC_OVERRIDE or equivalent 1060s ok 7 /fileutils/mkdir-with-parents-permission 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/format-size-for-display/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/format-size-for-display/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/format-size-for-display/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/format-size-for-display/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/format-size-for-display/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/format-size-for-display/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/format-size-for-display/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/format-size-for-display/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/format-size-for-display/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/format-size-for-display/.dirs/runtime 1060s ok 8 /fileutils/format-size-for-display 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/errors/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/errors/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/errors/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/errors/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/errors/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/errors/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/errors/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/errors/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/errors/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/errors/.dirs/runtime 1060s ok 9 /fileutils/errors 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/basename/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/basename/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/basename/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/basename/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/basename/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/basename/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/basename/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/basename/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/basename/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/basename/.dirs/runtime 1060s ok 10 /fileutils/basename 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/get-basename/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/get-basename/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/get-basename/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/get-basename/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/get-basename/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/get-basename/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/get-basename/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/get-basename/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/get-basename/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/get-basename/.dirs/runtime 1060s ok 11 /fileutils/get-basename 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/dirname/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/dirname/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/dirname/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/dirname/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/dirname/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/dirname/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/dirname/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/dirname/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/dirname/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/dirname/.dirs/runtime 1060s ok 12 /fileutils/dirname 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/dir-make-tmp/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/dir-make-tmp/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/dir-make-tmp/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/dir-make-tmp/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/dir-make-tmp/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/dir-make-tmp/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/dir-make-tmp/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/dir-make-tmp/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/dir-make-tmp/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/dir-make-tmp/.dirs/runtime 1060s ok 13 /fileutils/dir-make-tmp 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/file-open-tmp/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/file-open-tmp/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/file-open-tmp/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/file-open-tmp/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/file-open-tmp/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/file-open-tmp/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/file-open-tmp/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/file-open-tmp/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/file-open-tmp/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/file-open-tmp/.dirs/runtime 1060s ok 14 /fileutils/file-open-tmp 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/file-test/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/file-test/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/file-test/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/file-test/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/file-test/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/file-test/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/file-test/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/file-test/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/file-test/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/file-test/.dirs/runtime 1060s ok 15 /fileutils/file-test 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkstemp/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkstemp/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/mkstemp/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/mkstemp/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkstemp/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/mkstemp/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/mkstemp/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkstemp/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkstemp/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/mkstemp/.dirs/runtime 1060s ok 16 /fileutils/mkstemp 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkdtemp/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkdtemp/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/mkdtemp/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/mkdtemp/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkdtemp/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/mkdtemp/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/mkdtemp/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkdtemp/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/mkdtemp/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/mkdtemp/.dirs/runtime 1060s ok 17 /fileutils/mkdtemp 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/get-contents/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/get-contents/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/get-contents/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/get-contents/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/get-contents/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/get-contents/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/get-contents/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/get-contents/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/get-contents/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/get-contents/.dirs/runtime 1060s ok 18 /fileutils/get-contents 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/get-contents-large-file/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/get-contents-large-file/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/get-contents-large-file/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/get-contents-large-file/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/get-contents-large-file/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/get-contents-large-file/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/get-contents-large-file/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/get-contents-large-file/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/get-contents-large-file/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/get-contents-large-file/.dirs/runtime 1060s ok 19 /fileutils/get-contents-large-file # SKIP Skipping slow largefile test 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/set-contents/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/set-contents/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/set-contents/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/set-contents/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/set-contents/.dirs/runtime 1060s ok 20 /fileutils/set-contents 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/.dirs/runtime 1060s # /fileutils/set-contents-full summary: Test g_file_set_contents_full() with various flags 1060s # Flags 0 and test 0 1060s # Flags 0 and test 1 1060s # Flags 0 and test 2 1060s # Flags 0 and test 3 1060s # Flags 0 and test 4 1060s # Flags 0 and test 5 1060s # Flags 0 and test 6 1060s # Flags 1 and test 0 1060s # Flags 1 and test 1 1060s # Flags 1 and test 2 1060s # Flags 1 and test 3 1060s # Flags 1 and test 4 1060s # Flags 1 and test 5 1060s # Flags 1 and test 6 1060s # Flags 2 and test 0 1060s # Flags 2 and test 1 1060s # Flags 2 and test 2 1060s # Flags 2 and test 3 1060s # Flags 2 and test 4 1060s # Flags 2 and test 5 1060s # Flags 2 and test 6 1060s # Flags 3 and test 0 1060s # Flags 3 and test 1 1060s # Flags 3 and test 2 1060s # Flags 3 and test 3 1060s # Flags 3 and test 4 1060s # Flags 3 and test 5 1060s # Flags 3 and test 6 1060s # Flags 4 and test 0 1060s # Flags 4 and test 1 1060s # Flags 4 and test 2 1060s # Flags 4 and test 3 1060s # Flags 4 and test 4 1060s # Flags 4 and test 5 1060s # Flags 4 and test 6 1060s # Flags 5 and test 0 1060s # Flags 5 and test 1 1060s # Flags 5 and test 2 1060s # Flags 5 and test 3 1060s # Flags 5 and test 4 1060s # Flags 5 and test 5 1060s # Flags 5 and test 6 1060s # Flags 6 and test 0 1060s # Flags 6 and test 1 1060s # Flags 6 and test 2 1060s # Flags 6 and test 3 1060s # Flags 6 and test 4 1060s # Flags 6 and test 5 1060s # Flags 6 and test 6 1060s ok 21 /fileutils/set-contents-full 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/read-link/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/read-link/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/read-link/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/read-link/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/read-link/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/read-link/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/read-link/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/read-link/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/read-link/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/read-link/.dirs/runtime 1060s ok 22 /fileutils/read-link 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/stdio-wrappers/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/stdio-wrappers/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/stdio-wrappers/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/stdio-wrappers/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/stdio-wrappers/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/stdio-wrappers/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/stdio-wrappers/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/stdio-wrappers/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/stdio-wrappers/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/stdio-wrappers/.dirs/runtime 1060s # We do not have CAP_DAC_OVERRIDE or equivalent 1060s ok 23 /fileutils/stdio-wrappers 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/fopen-modes/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/fopen-modes/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/fopen-modes/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/fopen-modes/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/fopen-modes/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/fopen-modes/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/fopen-modes/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/fopen-modes/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/fopen-modes/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/fopen-modes/.dirs/runtime 1060s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/119 1060s # Testing fopen() mode 'w' 1060s # Testing fopen() mode 'r' 1060s # Testing fopen() mode 'a' 1060s # Testing fopen() mode 'w+' 1060s # Testing fopen() mode 'r+' 1060s # Testing fopen() mode 'a+' 1060s # Testing fopen() mode 'wb' 1060s # Testing fopen() mode 'rb' 1060s # Testing fopen() mode 'ab' 1060s # Testing fopen() mode 'w+b' 1060s # Testing fopen() mode 'r+b' 1060s # Testing fopen() mode 'a+b' 1060s # Testing fopen() mode 'wb+' 1060s # Testing fopen() mode 'rb+' 1060s # Testing fopen() mode 'ab+' 1060s # Testing fopen() mode 'we' 1060s # Testing fopen() mode 're' 1060s # Testing fopen() mode 'ae' 1060s # Testing fopen() mode 'w+e' 1060s # Testing fopen() mode 'r+e' 1060s # Testing fopen() mode 'a+e' 1060s # Testing fopen() mode 'wbe' 1060s # Testing fopen() mode 'rbe' 1060s # Testing fopen() mode 'abe' 1060s # Testing fopen() mode 'w+be' 1060s # Testing fopen() mode 'r+be' 1060s # Testing fopen() mode 'a+be' 1060s # Testing fopen() mode 'wb+e' 1060s # Testing fopen() mode 'rb+e' 1060s # Testing fopen() mode 'ab+e' 1060s # Testing fopen() mode 'web' 1060s # Testing fopen() mode 'reb' 1060s # Testing fopen() mode 'aeb' 1060s # Testing fopen() mode 'w+eb' 1060s # Testing fopen() mode 'r+eb' 1060s # Testing fopen() mode 'a+eb' 1060s # Testing fopen() mode 'web+' 1060s # Testing fopen() mode 'reb+' 1060s # Testing fopen() mode 'aeb+' 1060s ok 24 /fileutils/fopen-modes 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/clear-fd/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/clear-fd/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/clear-fd/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/clear-fd/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/clear-fd/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/clear-fd/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/clear-fd/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/clear-fd/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/clear-fd/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/clear-fd/.dirs/runtime 1060s # /fileutils/clear-fd summary: Test g_clear_fd() and g_autofd 1060s # Will be closed by autocleanup: 3, -42 1060s # Testing error handling 1060s ok 25 /fileutils/clear-fd 1060s # Start of set-contents-full tests 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-file/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-file/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-file/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-file/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-file/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-file/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-file/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-file/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-file/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-file/.dirs/runtime 1060s # We do not have CAP_DAC_OVERRIDE or equivalent 1060s # /fileutils/set-contents-full/read-only-file summary: Test g_file_set_contents_full() on a read-only file 1060s ok 26 /fileutils/set-contents-full/read-only-file 1060s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-directory/.dirs/home 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-directory/.dirs/cache 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-directory/.dirs/system-config1:/tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-directory/.dirs/system-config2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-directory/.dirs/config 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-directory/.dirs/system-data1:/tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-directory/.dirs/system-data2 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-directory/.dirs/data 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-directory/.dirs/state 1060s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_fileutils_PS0JK3/fileutils/set-contents-full/read-only-directory/.dirs/runtime 1060s # /fileutils/set-contents-full/read-only-directory summary: Test g_file_set_contents_full() on a file in a read-only directory 1060s # Flags 0 1060s # We do not have CAP_DAC_OVERRIDE or equivalent 1060s # Flags 1 1060s # We do not have CAP_DAC_OVERRIDE or equivalent 1060s # Flags 2 1060s # We do not have CAP_DAC_OVERRIDE or equivalent 1060s # Flags 3 1060s # We do not have CAP_DAC_OVERRIDE or equivalent 1060s # Flags 4 1060s # We do not have CAP_DAC_OVERRIDE or equivalent 1060s # Flags 5 1060s # We do not have CAP_DAC_OVERRIDE or equivalent 1060s # Flags 6 1060s # We do not have CAP_DAC_OVERRIDE or equivalent 1060s ok 27 /fileutils/set-contents-full/read-only-directory 1060s # End of set-contents-full tests 1060s # Start of clear-fd tests 1060s # Start of subprocess tests 1060s # End of subprocess tests 1060s # End of clear-fd tests 1060s # End of fileutils tests 1060s Unable to clean up temporary directory /tmp/test_fileutils_PS0JK3/glib-file-set-contents-full-rodir-MH1CK3: Directory not empty 1060s Unable to clean up temporary directory /tmp/test_fileutils_PS0JK3/glib-file-set-contents-full-rodir-FLLCK3: Directory not empty 1060s Unable to clean up temporary directory /tmp/test_fileutils_PS0JK3/glib-file-set-contents-full-rodir-RANCK3: Directory not empty 1060s Unable to clean up temporary directory /tmp/test_fileutils_PS0JK3/glib-file-set-contents-full-rodir-EI8CK3: Directory not empty 1060s Unable to clean up temporary directory /tmp/test_fileutils_PS0JK3/glib-file-set-contents-full-rodir-1A5CK3: Directory not empty 1060s Unable to clean up temporary directory /tmp/test_fileutils_PS0JK3/glib-file-set-contents-full-rodir-KWPCK3: Directory not empty 1060s Unable to clean up temporary directory /tmp/test_fileutils_PS0JK3/glib-file-set-contents-full-rodir-05LCK3: Directory not empty 1060s Unable to clean up temporary directory /tmp/test_fileutils_PS0JK3: Directory not empty 1060s ok - glib/fileutils.test 1060s # Running test: glib/date.test 1060s TAP version 14 1060s # random seed: R02Secd365ceec46a5f8cb9042fdade716dc 1060s 1..122 1060s # Start of date tests 1060s ok 1 /date/basic 1060s ok 2 /date/empty 1060s ok 3 /date/dmy 1060s ok 4 /date/julian 1060s ok 5 /date/compare 1060s ok 6 /date/dates 1060s ok 7 /date/strftime 1060s ok 8 /date/two-digit-years 1060s ok 9 /date/parse 1060s ok 10 /date/parse_locale_change # SKIP locale th_TH not available 1060s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793550 1060s ok 11 /date/month_substring 1060s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=749206 1060s ok 12 /date/month_names # SKIP libc doesn’t support all alternative month names 1060s ok 13 /date/clamp 1060s ok 14 /date/order 1060s ok 15 /date/copy 1060s # Vector 0: 0000-00-00, invalid 1060s # Vector 1: 0001-01-01, valid 1060s # Vector 2: 0000-01-01, invalid 1060s # Vector 3: 2000-02-30, invalid 1060s # Vector 4: 2000-02-29, valid 1060s # Vector 5: 2001-02-29, invalid 1060s # Vector 6: 65535-01-01, valid 1060s ok 16 /date/valid-dmy 1060s # Considering 2000-01-01 1060s # Considering 2000-01-07 1060s # Considering 2000-01-08 1060s # Considering 2001-01-01 1060s # Considering 2001-01-07 1060s # Considering 2001-01-08 1060s # Considering 2002-01-01 1060s # Considering 2002-01-07 1060s # Considering 2002-01-08 1060s # Considering 2003-01-01 1060s # Considering 2003-01-07 1060s # Considering 2003-01-08 1060s # Considering 2004-01-01 1060s # Considering 2004-01-07 1060s # Considering 2004-01-08 1060s # Considering 2006-01-01 1060s # Considering 2006-01-07 1060s # Considering 2006-01-08 1060s # Considering 2010-01-01 1060s # Considering 2010-01-07 1060s # Considering 2010-01-08 1060s ok 17 /date/week-of-year 1060s # Start of parse tests 1060s # Test 0 1060s # Test 1 1060s ok 18 /date/parse/invalid 1060s # End of parse tests 1060s # Start of year tests 1060s ok 19 /date/year/1 1060s ok 20 /date/year/2 1060s ok 21 /date/year/3 1060s ok 22 /date/year/4 1060s ok 23 /date/year/5 1060s ok 24 /date/year/6 1060s ok 25 /date/year/7 1060s ok 26 /date/year/8 1060s ok 27 /date/year/9 1060s ok 28 /date/year/10 1060s ok 29 /date/year/11 1060s ok 30 /date/year/12 1060s ok 31 /date/year/13 1060s ok 32 /date/year/14 1060s ok 33 /date/year/98 1060s ok 34 /date/year/99 1060s ok 35 /date/year/100 1060s ok 36 /date/year/101 1060s ok 37 /date/year/102 1060s ok 38 /date/year/103 1060s ok 39 /date/year/397 1060s ok 40 /date/year/398 1060s ok 41 /date/year/399 1060s ok 42 /date/year/400 1060s ok 43 /date/year/401 1060s ok 44 /date/year/402 1060s ok 45 /date/year/403 1060s ok 46 /date/year/404 1060s ok 47 /date/year/405 1060s ok 48 /date/year/406 1060s ok 49 /date/year/1598 1060s ok 50 /date/year/1599 1060s ok 51 /date/year/1600 1060s ok 52 /date/year/1601 1060s ok 53 /date/year/1602 1060s ok 54 /date/year/1650 1060s ok 55 /date/year/1651 1060s ok 56 /date/year/1897 1060s ok 57 /date/year/1898 1060s ok 58 /date/year/1899 1060s ok 59 /date/year/1900 1060s ok 60 /date/year/1901 1060s ok 61 /date/year/1902 1060s ok 62 /date/year/1903 1060s ok 63 /date/year/1961 1060s ok 64 /date/year/1962 1060s ok 65 /date/year/1963 1060s ok 66 /date/year/1964 1060s ok 67 /date/year/1965 1060s ok 68 /date/year/1967 1060s ok 69 /date/year/1968 1060s ok 70 /date/year/1969 1060s ok 71 /date/year/1970 1060s ok 72 /date/year/1971 1060s ok 73 /date/year/1972 1060s ok 74 /date/year/1973 1060s ok 75 /date/year/1974 1060s ok 76 /date/year/1975 1060s ok 77 /date/year/1976 1060s ok 78 /date/year/1977 1060s ok 79 /date/year/1978 1060s ok 80 /date/year/1979 1060s ok 81 /date/year/1980 1060s ok 82 /date/year/1981 1060s ok 83 /date/year/1982 1060s ok 84 /date/year/1983 1060s ok 85 /date/year/1984 1060s ok 86 /date/year/1985 1060s ok 87 /date/year/1986 1060s ok 88 /date/year/1987 1060s ok 89 /date/year/1988 1060s ok 90 /date/year/1989 1060s ok 91 /date/year/1990 1060s ok 92 /date/year/1991 1060s ok 93 /date/year/1992 1060s ok 94 /date/year/1993 1060s ok 95 /date/year/1994 1060s ok 96 /date/year/1995 1060s ok 97 /date/year/1996 1060s ok 98 /date/year/1997 1060s ok 99 /date/year/1998 1060s ok 100 /date/year/1999 1060s ok 101 /date/year/2000 1060s ok 102 /date/year/2001 1060s ok 103 /date/year/2002 1060s ok 104 /date/year/2003 1060s ok 105 /date/year/2004 1060s ok 106 /date/year/2005 1060s ok 107 /date/year/2006 1060s ok 108 /date/year/2007 1060s ok 109 /date/year/2008 1060s ok 110 /date/year/2009 1060s ok 111 /date/year/2010 1060s ok 112 /date/year/2011 1060s ok 113 /date/year/2012 1060s ok 114 /date/year/3000 1060s ok 115 /date/year/3001 1060s ok 116 /date/year/3002 1060s ok 117 /date/year/3998 1060s ok 118 /date/year/3999 1060s ok 119 /date/year/4000 1060s ok 120 /date/year/4001 1060s ok 121 /date/year/4002 1060s ok - glib/date.test 1060s # Running test: glib/unix-streams.test 1060s ok 122 /date/year/4003 1060s # End of year tests 1060s # End of date tests 1060s TAP version 14 1060s # random seed: R02Sa64de45ad4467718e854ff4316e5c1d9 1060s 1..9 1060s # Start of unix-streams tests 1060s ok 1 /unix-streams/basic 1061s ok 2 /unix-streams/pipe-io-test 1061s # slow test /unix-streams/pipe-io-test executed in 0.50 secs 1061s ok 3 /unix-streams/nonblocking-io-test 1061s # slow test /unix-streams/nonblocking-io-test executed in 0.50 secs 1061s ok 4 /unix-streams/read_write 1061s ok 5 /unix-streams/read_writev 1061s ok 6 /unix-streams/write-wouldblock 1061s ok 7 /unix-streams/writev-wouldblock 1061s ok 8 /unix-streams/write-async-wouldblock 1061s ok 9 /unix-streams/writev-async-wouldblock 1061s ok - glib/unix-streams.test 1061s # End of unix-streams tests 1061s # Running test: glib/messages-low-memory.py.test 1061s TAP version 13 1061s ok 1 __main__.TestMessagesLowMemory.test_message_memory_allocation_failure 1061s # messages-low-memory: /usr/libexec/installed-tests/glib/messages-low-memory 1061s # tmpdir: /tmp/tmp1qrwnli3 1061s # Running: ['/usr/libexec/installed-tests/glib/messages-low-memory'] 1061s # Return code: -6 1061s # Output: 1061s # 1061s # Error: 1061s # GLib-Message: 01:25:47.666: Simulates a situation in which we were crashing because of low-memory, leading malloc to fail instead of aborting 1061s # GLib-Message: 01:25:47.666: bug: https://gitlab.gnome.org/GNOME/glib/-/issues/2753 1061s # ../../../glib/gprintf.c:351: failed to allocate memory 1061s 1..1 1061s ok - glib/messages-low-memory.py.test 1061s # Running test: glib/spawn-test.test 1061s TAP version 14 1061s # random seed: R02S04492bcc381eb2c9f401db1b62e4b276 1061s 1..2 1061s # Start of spawn tests 1061s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_V6KOK3/spawn/basics/.dirs/home 1061s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_V6KOK3/spawn/basics/.dirs/cache 1061s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_V6KOK3/spawn/basics/.dirs/system-config1:/tmp/test_spawn-test_V6KOK3/spawn/basics/.dirs/system-config2 1061s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_V6KOK3/spawn/basics/.dirs/config 1061s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_V6KOK3/spawn/basics/.dirs/system-data1:/tmp/test_spawn-test_V6KOK3/spawn/basics/.dirs/system-data2 1061s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_V6KOK3/spawn/basics/.dirs/data 1061s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_V6KOK3/spawn/basics/.dirs/state 1061s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_V6KOK3/spawn/basics/.dirs/runtime 1061s ok 1 /spawn/basics 1061s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_spawn-test_V6KOK3/spawn/stdio-overwrite/.dirs/home 1061s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_spawn-test_V6KOK3/spawn/stdio-overwrite/.dirs/cache 1061s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_spawn-test_V6KOK3/spawn/stdio-overwrite/.dirs/system-config1:/tmp/test_spawn-test_V6KOK3/spawn/stdio-overwrite/.dirs/system-config2 1061s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_spawn-test_V6KOK3/spawn/stdio-overwrite/.dirs/config 1061s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_spawn-test_V6KOK3/spawn/stdio-overwrite/.dirs/system-data1:/tmp/test_spawn-test_V6KOK3/spawn/stdio-overwrite/.dirs/system-data2 1061s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_spawn-test_V6KOK3/spawn/stdio-overwrite/.dirs/data 1061s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_spawn-test_V6KOK3/spawn/stdio-overwrite/.dirs/state 1061s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_spawn-test_V6KOK3/spawn/stdio-overwrite/.dirs/runtime 1061s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/16 1061s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr open 1061s # Fetching GSpawn result output and error output with stdin open, stdout open, stderr already closed 1061s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr open 1061s # Fetching GSpawn result output and error output with stdin open, stdout already closed, stderr already closed 1061s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr open 1061s # Fetching GSpawn result output and error output with stdin already closed, stdout open, stderr already closed 1061s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr open 1061s # Fetching GSpawn result output and error output with stdin already closed, stdout already closed, stderr already closed 1061s # Fetching GSpawn result output with stdin open, stdout open, stderr open 1061s # Fetching GSpawn result output with stdin open, stdout open, stderr already closed 1061s # Fetching GSpawn result output with stdin open, stdout already closed, stderr open 1061s # Fetching GSpawn result output with stdin open, stdout already closed, stderr already closed 1061s # Fetching GSpawn result output with stdin already closed, stdout open, stderr open 1061s # Fetching GSpawn result output with stdin already closed, stdout open, stderr already closed 1061s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr open 1061s # Fetching GSpawn result output with stdin already closed, stdout already closed, stderr already closed 1061s # Fetching GSpawn result error output with stdin open, stdout open, stderr open 1061s # Fetching GSpawn result error output with stdin open, stdout open, stderr already closed 1061s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr open 1061s # Fetching GSpawn result error output with stdin open, stdout already closed, stderr already closed 1061s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr open 1061s # Fetching GSpawn result error output with stdin already closed, stdout open, stderr already closed 1061s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr open 1061s # Fetching GSpawn result error output with stdin already closed, stdout already closed, stderr already closed 1061s # Fetching GSpawn result with stdin open, stdout open, stderr open 1061s # Fetching GSpawn result with stdin open, stdout open, stderr already closed 1061s # Fetching GSpawn result with stdin open, stdout already closed, stderr open 1061s # Fetching GSpawn result with stdin open, stdout already closed, stderr already closed 1061s # Fetching GSpawn result with stdin already closed, stdout open, stderr open 1061s # Fetching GSpawn result with stdin already closed, stdout open, stderr already closed 1061s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr open 1061s # Fetching GSpawn result with stdin already closed, stdout already closed, stderr already closed 1061s ok 2 /spawn/stdio-overwrite 1061s # End of spawn tests 1061s ok - glib/spawn-test.test 1061s # Running test: glib/unicode.test 1061s TAP version 14 1061s # random seed: R02S3b9e84634192bdd0001b0b2513ce8b9d 1061s 1..39 1061s # Start of unicode tests 1061s ok 1 /unicode/alnum 1061s ok 2 /unicode/alpha 1061s ok 3 /unicode/break-type 1061s ok 4 /unicode/canonical-decomposition 1061s ok 5 /unicode/casefold 1061s # Cannot set locale to lt_LT, skipping 1061s # Cannot set locale to lt_LT, skipping 1061s # Cannot set locale to lt_LT, skipping 1061s # Cannot set locale to lt_LT, skipping 1061s # Cannot set locale to lt_LT, skipping 1061s # Cannot set locale to lt_LT, skipping 1061s # Cannot set locale to lt_LT, skipping 1061s # Cannot set locale to lt_LT, skipping 1061s # Cannot set locale to lt_LT, skipping 1061s # Cannot set locale to lt_LT, skipping 1061s # Cannot set locale to lt_LT, skipping 1061s ok 6 /unicode/casemap_and_casefold 1061s ok 7 /unicode/cases 1061s ok 8 /unicode/character-type 1061s ok 9 /unicode/cntrl 1061s ok 10 /unicode/combining-class 1061s # Composing U+000041 and U+000042; expecting U+000000 1061s # Composing U+000041 and U+000000; expecting U+000000 1061s # Composing U+000066 and U+000069; expecting U+000000 1061s # Composing U+000308 and U+000301; expecting U+000000 1061s # Composing U+000f71 and U+000f72; expecting U+000000 1061s # Composing U+00212b and U+000000; expecting U+000000 1061s # Composing U+0000c5 and U+000000; expecting U+000000 1061s # Composing U+002126 and U+000000; expecting U+000000 1061s # Composing U+0003a9 and U+000000; expecting U+000000 1061s # Composing U+000041 and U+00030a; expecting U+0000c5 1061s # Composing U+00006f and U+000302; expecting U+0000f4 1061s # Composing U+001e63 and U+000307; expecting U+001e69 1061s # Composing U+000073 and U+000323; expecting U+001e63 1061s # Composing U+000064 and U+000307; expecting U+001e0b 1061s # Composing U+000064 and U+000323; expecting U+001e0d 1061s # Composing U+00d4cc and U+0011b6; expecting U+00d4db 1061s # Composing U+001111 and U+001171; expecting U+00d4cc 1061s # Composing U+00ce20 and U+0011b8; expecting U+00ce31 1061s # Composing U+00110e and U+001173; expecting U+00ce20 1061s # Composing U+001100 and U+001160; expecting U+000000 1061s # Composing U+001100 and U+001177; expecting U+000000 1061s # Composing U+00abff and U+0011b6; expecting U+000000 1061s # Composing U+00d7a5 and U+0011b6; expecting U+000000 1061s # Composing U+00ac01 and U+0011b6; expecting U+000000 1061s # Composing U+00d4cc and U+0011a6; expecting U+000000 1061s # Composing U+00d4cc and U+0011c4; expecting U+000000 1061s # Composing U+01611e and U+01611e; expecting U+016121 1061s # Composing U+01611e and U+01611f; expecting U+016123 1061s # Composing U+0000f6 and U+000304; expecting U+00022b 1061s # Composing U+000b47 and U+000b57; expecting U+000b4c 1061s # Composing U+0000a0 and U+000b57; expecting U+000000 1061s # Composing U+016e00 and U+00030a; expecting U+000000 1061s # Composing U+00212b and U+016e00; expecting U+000000 1061s # Composing U+001e63 and U+000306; expecting U+000000 1061s # Composing U+001e63 and U+000304; expecting U+000000 1061s # Composing U+001e63 and U+000b57; expecting U+000000 1061s # Composing U+001e63 and U+000000; expecting U+000000 1061s # Composing U+001e63 and U+0113c2; expecting U+000000 1061s # Composing U+001f01 and U+0113c2; expecting U+000000 1061s # Composing U+00006e and U+000302; expecting U+000000 1061s # Composing U+001e63 and U+01611f; expecting U+000000 1061s # Composing U+01138e and U+0113b8; expecting U+000000 1061s # Composing U+01611e and U+000000; expecting U+000000 1061s # Composing U+000000 and U+01611f; expecting U+000000 1061s # Composing U+011390 and U+0113c2; expecting U+000000 1061s ok 11 /unicode/compose 1061s ok 12 /unicode/decompose 1061s ok 13 /unicode/decompose-tail 1061s ok 14 /unicode/defined 1061s ok 15 /unicode/digit 1061s ok 16 /unicode/digit-value 1061s # Fully decomposing U+000041; expecting 1 codepoints 1061s # Fully decomposing U+00fb01; expecting 1 codepoints 1061s # Fully decomposing U+00212b; expecting 2 codepoints 1061s # Fully decomposing U+002126; expecting 1 codepoints 1061s # Fully decomposing U+000344; expecting 2 codepoints 1061s # Fully decomposing U+000f73; expecting 2 codepoints 1061s # Fully decomposing U+0000c5; expecting 2 codepoints 1061s # Fully decomposing U+0000f4; expecting 2 codepoints 1061s # Fully decomposing U+001e69; expecting 3 codepoints 1061s # Fully decomposing U+001e63; expecting 2 codepoints 1061s # Fully decomposing U+001e0b; expecting 2 codepoints 1061s # Fully decomposing U+001e0d; expecting 2 codepoints 1061s # Fully decomposing U+00d4db; expecting 3 codepoints 1061s # Fully decomposing U+00d4cc; expecting 2 codepoints 1061s # Fully decomposing U+00ce31; expecting 3 codepoints 1061s # Fully decomposing U+00ce20; expecting 2 codepoints 1061s ok 17 /unicode/fully-decompose-canonical 1061s ok 18 /unicode/fully-decompose-len 1061s ok 19 /unicode/normalization 1061s ok 20 /unicode/graph 1061s # Testing script Zyyy (code 1517910393) 1061s # Testing script Zinh (code 1516858984) 1061s # Testing script Zmth (code 1517122664) 1061s # Testing script Arab (code 1098015074) 1061s # Testing script Armn (code 1098018158) 1061s # Testing script Beng (code 1113943655) 1061s # Testing script Bopo (code 1114599535) 1061s # Testing script Cher (code 1130915186) 1061s # Testing script Copt (code 1131376756) 1061s # Testing script Cyrl (code 1132032620) 1061s # Testing script Dsrt (code 1148416628) 1061s # Testing script Deva (code 1147500129) 1061s # Testing script Ethi (code 1165256809) 1061s # Testing script Geor (code 1197830002) 1061s # Testing script Goth (code 1198486632) 1061s # Testing script Grek (code 1198679403) 1061s # Testing script Gujr (code 1198877298) 1061s # Testing script Guru (code 1198879349) 1061s # Testing script Hani (code 1214344809) 1061s # Testing script Hang (code 1214344807) 1061s # Testing script Hebr (code 1214603890) 1061s # Testing script Hira (code 1214870113) 1061s # Testing script Knda (code 1265525857) 1061s # Testing script Kana (code 1264676449) 1061s # Testing script Khmr (code 1265134962) 1061s # Testing script Laoo (code 1281453935) 1061s # Testing script Latn (code 1281455214) 1061s # Testing script Mlym (code 1298954605) 1061s # Testing script Mong (code 1299148391) 1061s # Testing script Mymr (code 1299803506) 1061s # Testing script Ogam (code 1332175213) 1061s # Testing script Ital (code 1232363884) 1061s # Testing script Orya (code 1332902241) 1061s # Testing script Runr (code 1383427698) 1061s # Testing script Sinh (code 1399418472) 1061s # Testing script Syrc (code 1400468067) 1061s # Testing script Taml (code 1415671148) 1061s # Testing script Telu (code 1415933045) 1061s # Testing script Thaa (code 1416126817) 1061s # Testing script Thai (code 1416126825) 1061s # Testing script Tibt (code 1416192628) 1061s # Testing script Cans (code 1130458739) 1061s # Testing script Yiii (code 1500080489) 1061s # Testing script Tglg (code 1416064103) 1061s # Testing script Hano (code 1214344815) 1061s # Testing script Buhd (code 1114990692) 1061s # Testing script Tagb (code 1415669602) 1061s # Testing script Brai (code 1114792297) 1061s # Testing script Cprt (code 1131442804) 1061s # Testing script Limb (code 1281977698) 1061s # Testing script Osma (code 1332964705) 1061s # Testing script Shaw (code 1399349623) 1061s # Testing script Linb (code 1281977954) 1061s # Testing script Tale (code 1415670885) 1061s # Testing script Ugar (code 1432838514) 1061s # Testing script Talu (code 1415670901) 1061s # Testing script Bugi (code 1114990441) 1061s # Testing script Glag (code 1198285159) 1061s # Testing script Tfng (code 1415999079) 1061s # Testing script Sylo (code 1400466543) 1061s # Testing script Xpeo (code 1483761007) 1061s # Testing script Khar (code 1265131890) 1061s # Testing script Zzzz (code 1517976186) 1061s # Testing script Bali (code 1113681001) 1061s # Testing script Xsux (code 1483961720) 1061s # Testing script Phnx (code 1349021304) 1061s # Testing script Phag (code 1349017959) 1061s # Testing script Nkoo (code 1315663727) 1061s # Testing script Kali (code 1264675945) 1061s # Testing script Lepc (code 1281716323) 1061s # Testing script Rjng (code 1382706791) 1061s # Testing script Sund (code 1400204900) 1061s # Testing script Saur (code 1398895986) 1061s # Testing script Cham (code 1130914157) 1061s # Testing script Olck (code 1332503403) 1061s # Testing script Vaii (code 1449224553) 1061s # Testing script Cari (code 1130459753) 1061s # Testing script Lyci (code 1283023721) 1061s # Testing script Lydi (code 1283023977) 1061s # Testing script Avst (code 1098281844) 1061s # Testing script Bamu (code 1113681269) 1061s # Testing script Egyp (code 1164409200) 1061s # Testing script Armi (code 1098018153) 1061s # Testing script Phli (code 1349020777) 1061s # Testing script Prti (code 1349678185) 1061s # Testing script Java (code 1247901281) 1061s # Testing script Kthi (code 1265920105) 1061s # Testing script Lisu (code 1281979253) 1061s # Testing script Mtei (code 1299473769) 1061s # Testing script Sarb (code 1398895202) 1061s # Testing script Orkh (code 1332898664) 1061s # Testing script Samr (code 1398893938) 1061s # Testing script Lana (code 1281453665) 1061s # Testing script Tavt (code 1415673460) 1061s # Testing script Batk (code 1113683051) 1061s # Testing script Brah (code 1114792296) 1061s # Testing script Mand (code 1298230884) 1061s # Testing script Cakm (code 1130457965) 1061s # Testing script Merc (code 1298494051) 1061s # Testing script Mero (code 1298494063) 1061s # Testing script Plrd (code 1349284452) 1061s # Testing script Shrd (code 1399353956) 1061s # Testing script Sora (code 1399812705) 1061s # Testing script Takr (code 1415670642) 1061s # Testing script Bass (code 1113682803) 1061s # Testing script Aghb (code 1097295970) 1061s # Testing script Dupl (code 1148547180) 1061s # Testing script Elba (code 1164730977) 1061s # Testing script Gran (code 1198678382) 1061s # Testing script Khoj (code 1265135466) 1061s # Testing script Sind (code 1399418468) 1061s # Testing script Lina (code 1281977953) 1061s # Testing script Mahj (code 1298229354) 1061s # Testing script Mani (code 1298230889) 1061s # Testing script Mend (code 1298493028) 1061s # Testing script Modi (code 1299145833) 1061s # Testing script Mroo (code 1299345263) 1061s # Testing script Nbat (code 1315070324) 1061s # Testing script Narb (code 1315009122) 1061s # Testing script Perm (code 1348825709) 1061s # Testing script Hmng (code 1215131239) 1061s # Testing script Palm (code 1348562029) 1061s # Testing script Pauc (code 1348564323) 1061s # Testing script Phlp (code 1349020784) 1061s # Testing script Sidd (code 1399415908) 1061s # Testing script Tirh (code 1416196712) 1061s # Testing script Wara (code 1466004065) 1061s # Testing script Ahom (code 1097363309) 1061s # Testing script Hluw (code 1215067511) 1061s # Testing script Hatr (code 1214346354) 1061s # Testing script Mult (code 1299541108) 1061s # Testing script Hung (code 1215655527) 1061s # Testing script Sgnw (code 1399287415) 1061s # Testing script Adlm (code 1097100397) 1061s # Testing script Bhks (code 1114139507) 1061s # Testing script Marc (code 1298231907) 1061s # Testing script Newa (code 1315272545) 1061s # Testing script Osge (code 1332963173) 1061s # Testing script Tang (code 1415671399) 1061s # Testing script Gonm (code 1198485101) 1061s # Testing script Nshu (code 1316186229) 1061s # Testing script Soyo (code 1399814511) 1061s # Testing script Zanb (code 1516334690) 1061s # Testing script Dogr (code 1148151666) 1061s # Testing script Gong (code 1198485095) 1061s # Testing script Rohg (code 1383032935) 1061s # Testing script Maka (code 1298230113) 1061s # Testing script Medf (code 1298490470) 1061s # Testing script Sogo (code 1399809903) 1061s # Testing script Sogd (code 1399809892) 1061s # Testing script Elym (code 1164736877) 1061s # Testing script Nand (code 1315008100) 1061s # Testing script Hmnp (code 1215131248) 1061s # Testing script Wcho (code 1466132591) 1061s # Testing script Chrs (code 1130918515) 1061s # Testing script Diak (code 1147756907) 1061s # Testing script Kits (code 1265202291) 1061s # Testing script Yezi (code 1499822697) 1061s # Testing script Cpmn (code 1131441518) 1061s # Testing script Ougr (code 1333094258) 1061s # Testing script Tnsa (code 1416524641) 1061s # Testing script Toto (code 1416590447) 1061s # Testing script Vith (code 1449751656) 1061s # Testing script Kawi (code 1264678761) 1061s # Testing script Nagm (code 1315006317) 1061s # Testing script Todr (code 1416586354) 1061s # Testing script Gara (code 1197568609) 1061s # Testing script Tutg (code 1416983655) 1061s # Testing script Sunu (code 1400204917) 1061s # Testing script Gukh (code 1198877544) 1061s # Testing script Krai (code 1265787241) 1061s # Testing script Onao (code 1332633967) 1061s ok 21 /unicode/iso15924 1061s ok 22 /unicode/lower 1061s ok 23 /unicode/mark 1061s ok 24 /unicode/mirror 1061s ok 25 /unicode/print 1061s ok 26 /unicode/punctuation 1061s ok 27 /unicode/script 1061s ok 28 /unicode/space 1061s ok 29 /unicode/strdown 1061s ok 30 /unicode/strup 1061s ok 31 /unicode/turkish-strupdown 1061s ok 32 /unicode/title 1061s ok 33 /unicode/upper 1061s ok 34 /unicode/validate 1061s ok 35 /unicode/wide 1061s ok 36 /unicode/xdigit 1061s ok 37 /unicode/xdigit-value 1061s ok 38 /unicode/zero-width 1061s ok 39 /unicode/normalize 1061s # End of unicode tests 1061s ok - glib/unicode.test 1061s # Running test: glib/gmenumodel.test 1061s TAP version 14 1061s # random seed: R02Sc901898c2efb18540a8f8e832dacd435 1061s 1..15 1061s # Start of gmenu tests 1063s # Executing: glib/gmenumodel.test 1063s ok 1 /gmenu/equality 1063s # slow test /gmenu/equality executed in 1.47 secs 1065s ok 2 /gmenu/random 1065s # slow test /gmenu/random executed in 1.78 secs 1065s ok 3 /gmenu/attributes 1065s ok 4 /gmenu/links 1065s ok 5 /gmenu/mutable 1065s ok 6 /gmenu/convenience 1065s ok 7 /gmenu/menuitem 1065s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1065s ok 8 /gmenu/input-validation 1065s # Start of dbus tests 1066s ok 9 /gmenu/dbus/roundtrip 1066s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1066s ok 10 /gmenu/dbus/subscriptions 1068s ok 11 /gmenu/dbus/threaded 1068s # slow test /gmenu/dbus/threaded executed in 1.38 secs 1068s # Start of peer tests 1068s # Executing: glib/gmenumodel.test 1069s ok 12 /gmenu/dbus/peer/roundtrip 1069s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 1069s ok 13 /gmenu/dbus/peer/subscriptions 1069s # End of peer tests 1069s # Start of export tests 1069s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1069s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1069s ok 14 /gmenu/dbus/export/error-handling 1069s # End of export tests 1069s # End of dbus tests 1069s # Start of attributes tests 1069s ok 15 /gmenu/attributes/iterate 1069s # End of attributes tests 1069s # End of gmenu tests 1069s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1069s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1069s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1069s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1069s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1069s ok - glib/gmenumodel.test 1069s # Running test: glib/tls-certificate.test 1069s TAP version 14 1069s # random seed: R02S262043644c3550edf3db75cca632793d 1069s 1..19 1069s # Start of tls-certificate tests 1069s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1069s ok 1 /tls-certificate/pem-parser 1069s ok 2 /tls-certificate/pem-parser-handles-chain 1069s ok 3 /tls-certificate/from_file 1069s ok 4 /tls-certificate/from_files 1069s ok 5 /tls-certificate/from_files_crlf 1069s ok 6 /tls-certificate/from_files_pkcs8 1069s ok 7 /tls-certificate/from_files_pkcs8enc 1069s ok 8 /tls-certificate/list_from_file 1069s ok 9 /tls-certificate/pkcs11-uri 1069s ok 10 /tls-certificate/pkcs11-uri-unsupported 1069s ok 11 /tls-certificate/from_pkcs12 1069s ok 12 /tls-certificate/from_pkcs12_file 1069s ok 13 /tls-certificate/not-valid-before 1069s ok 14 /tls-certificate/not-valid-after 1069s ok 15 /tls-certificate/subject-name 1069s ok 16 /tls-certificate/issuer-name 1069s ok 17 /tls-certificate/dns-names 1069s ok 18 /tls-certificate/ip-addresses 1069s ok 19 /tls-certificate/pem-parser-no-sentinel 1069s # End of tls-certificate tests 1069s TAP version 14 1069s # random seed: R02S849887a4f9a9e8beda00c8deeb1ba6f9 1069s 1..1 1069s # Start of gio tests 1069s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1069s # random seed: R02Sf3c9ae6503d9a6337f0e26cfae5f7226 1069s ok - glib/tls-certificate.test 1069s # Running test: glib/io-channel-basic.test 1069s # GLib-DEBUG: io-channel-basic: child writing 8+3303 bytes to 6 1069s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1069s # GLib-DEBUG: io-channel-basic: ...from 5: 3303 bytes 1069s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1069s # GLib-DEBUG: io-channel-basic: child writing 8+899 bytes to 6 1069s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1069s # GLib-DEBUG: io-channel-basic: ...from 5: 899 bytes 1069s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1070s # GLib-DEBUG: io-channel-basic: child writing 8+996 bytes to 6 1070s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1070s # GLib-DEBUG: io-channel-basic: ...from 5: 996 bytes 1070s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1070s # GLib-DEBUG: io-channel-basic: child writing 8+2865 bytes to 6 1070s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1070s # GLib-DEBUG: io-channel-basic: ...from 5: 2865 bytes 1070s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1070s # GLib-DEBUG: io-channel-basic: child writing 8+3511 bytes to 6 1070s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1070s # GLib-DEBUG: io-channel-basic: ...from 5: 3511 bytes 1070s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1071s # GLib-DEBUG: io-channel-basic: child writing 8+2959 bytes to 6 1071s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1071s # GLib-DEBUG: io-channel-basic: ...from 5: 2959 bytes 1071s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1071s # GLib-DEBUG: io-channel-basic: child writing 8+768 bytes to 6 1071s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1071s # GLib-DEBUG: io-channel-basic: ...from 5: 768 bytes 1071s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1071s # GLib-DEBUG: io-channel-basic: child writing 8+3597 bytes to 6 1071s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1071s # GLib-DEBUG: io-channel-basic: ...from 5: 3597 bytes 1071s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1071s # GLib-DEBUG: io-channel-basic: child writing 8+27 bytes to 6 1071s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1071s # GLib-DEBUG: io-channel-basic: ...from 5: 27 bytes 1071s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1072s # GLib-DEBUG: io-channel-basic: child writing 8+4262 bytes to 6 1072s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1072s # GLib-DEBUG: io-channel-basic: ...from 5: 4262 bytes 1072s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1072s # GLib-DEBUG: io-channel-basic: child writing 8+1422 bytes to 6 1072s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1072s # GLib-DEBUG: io-channel-basic: ...from 5: 1422 bytes 1072s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1072s # GLib-DEBUG: io-channel-basic: child writing 8+4115 bytes to 6 1072s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1072s # GLib-DEBUG: io-channel-basic: ...from 5: 4115 bytes 1072s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1072s # GLib-DEBUG: io-channel-basic: child writing 8+1612 bytes to 6 1072s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1072s # GLib-DEBUG: io-channel-basic: ...from 5: 1612 bytes 1072s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1073s # Executing: glib/io-channel-basic.test 1073s # GLib-DEBUG: io-channel-basic: child writing 8+1463 bytes to 6 1073s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1073s # GLib-DEBUG: io-channel-basic: ...from 5: 1463 bytes 1073s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1073s # GLib-DEBUG: io-channel-basic: child writing 8+231 bytes to 6 1073s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1073s # GLib-DEBUG: io-channel-basic: ...from 5: 231 bytes 1073s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1073s # GLib-DEBUG: io-channel-basic: child writing 8+2304 bytes to 6 1073s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1073s # GLib-DEBUG: io-channel-basic: ...from 5: 2304 bytes 1073s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1073s # GLib-DEBUG: io-channel-basic: child writing 8+3122 bytes to 6 1073s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1073s # GLib-DEBUG: io-channel-basic: ...from 5: 3122 bytes 1073s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1074s # GLib-DEBUG: io-channel-basic: child writing 8+3998 bytes to 6 1074s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1074s # GLib-DEBUG: io-channel-basic: ...from 5: 3998 bytes 1074s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1074s # GLib-DEBUG: io-channel-basic: child writing 8+4254 bytes to 6 1074s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1074s # GLib-DEBUG: io-channel-basic: ...from 5: 4254 bytes 1074s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1074s # GLib-DEBUG: io-channel-basic: child writing 8+4386 bytes to 6 1074s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1074s # GLib-DEBUG: io-channel-basic: ...from 5: 4386 bytes 1074s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1074s # GLib-DEBUG: io-channel-basic: child writing 8+2173 bytes to 6 1074s # GLib-DEBUG: io-channel-basic: ...from 5: IN 1074s # GLib-DEBUG: io-channel-basic: ...from 5: 2173 bytes 1074s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1075s # GLib-DEBUG: io-channel-basic: child writing 8+2569 bytes to 6 1075s # GLib-DEBUG: io-channel-basic: child exiting, closing 6 1075s # GLib-DEBUG: io-channel-basic: ...from 5: HUP IN 1075s # GLib-DEBUG: io-channel-basic: ...from 5: 2569 bytes 1075s # GLib-DEBUG: io-channel-basic: ...from 5: OK 1075s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1075s # random seed: R02Sebf6e482d4191f277cb09bba69a928ee 1075s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1075s # random seed: R02S6874b78c996678d6b37ee6b45689f678 1075s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1075s # random seed: R02S4a2814be746cb0c61dbdd63157e941d6 1075s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1075s # random seed: R02Sa3a90ce42c514d175f60ba739dc2f3f1 1075s # Subtest: /usr/libexec/installed-tests/glib/io-channel-basic 1075s # random seed: R02S6b58ac68ba24037c251a729ea35b785c 1075s # GLib-DEBUG: io-channel-basic: child writing 8+3537 bytes to 11 1075s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1075s # GLib-DEBUG: io-channel-basic: ...from 10: 3537 bytes 1075s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1075s # GLib-DEBUG: io-channel-basic: child writing 8+1369 bytes to 17 1075s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1075s # GLib-DEBUG: io-channel-basic: ...from 16: 1369 bytes 1075s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1075s # GLib-DEBUG: io-channel-basic: child writing 8+1929 bytes to 9 1075s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1075s # GLib-DEBUG: io-channel-basic: ...from 8: 1929 bytes 1075s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1075s # GLib-DEBUG: io-channel-basic: child writing 8+2533 bytes to 13 1075s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1075s # GLib-DEBUG: io-channel-basic: ...from 12: 2533 bytes 1075s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1075s # GLib-DEBUG: io-channel-basic: child writing 8+1080 bytes to 15 1075s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1075s # GLib-DEBUG: io-channel-basic: ...from 14: 1080 bytes 1075s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1075s # GLib-DEBUG: io-channel-basic: child writing 8+3151 bytes to 9 1075s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1075s # GLib-DEBUG: io-channel-basic: ...from 8: 3151 bytes 1075s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1075s # GLib-DEBUG: io-channel-basic: child writing 8+3939 bytes to 13 1075s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1075s # GLib-DEBUG: io-channel-basic: ...from 12: 3939 bytes 1075s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1075s # GLib-DEBUG: io-channel-basic: child writing 8+3751 bytes to 11 1075s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1075s # GLib-DEBUG: io-channel-basic: ...from 10: 3751 bytes 1075s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1075s # GLib-DEBUG: io-channel-basic: child writing 8+2311 bytes to 17 1075s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1075s # GLib-DEBUG: io-channel-basic: ...from 16: 2311 bytes 1075s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1075s # GLib-DEBUG: io-channel-basic: child writing 8+77 bytes to 15 1075s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1075s # GLib-DEBUG: io-channel-basic: ...from 14: 77 bytes 1075s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1075s # GLib-DEBUG: io-channel-basic: child writing 8+1388 bytes to 9 1075s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1075s # GLib-DEBUG: io-channel-basic: ...from 8: 1388 bytes 1075s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1075s # GLib-DEBUG: io-channel-basic: child writing 8+4441 bytes to 17 1075s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1075s # GLib-DEBUG: io-channel-basic: ...from 16: 4441 bytes 1075s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1075s # GLib-DEBUG: io-channel-basic: child writing 8+1038 bytes to 11 1075s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1075s # GLib-DEBUG: io-channel-basic: ...from 10: 1038 bytes 1075s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1075s # GLib-DEBUG: io-channel-basic: child writing 8+1100 bytes to 13 1075s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1075s # GLib-DEBUG: io-channel-basic: ...from 12: 1100 bytes 1075s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+2568 bytes to 15 1076s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 14: 2568 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+2705 bytes to 9 1076s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 8: 2705 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+452 bytes to 17 1076s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 16: 452 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+1705 bytes to 11 1076s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 10: 1705 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+111 bytes to 13 1076s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 12: 111 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+4855 bytes to 15 1076s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 14: 4855 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+4731 bytes to 9 1076s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 8: 4731 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+2244 bytes to 17 1076s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 16: 2244 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+2143 bytes to 13 1076s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 12: 2143 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+2913 bytes to 15 1076s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 14: 2913 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+3295 bytes to 11 1076s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 10: 3295 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+3407 bytes to 9 1076s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 8: 3407 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+37 bytes to 17 1076s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 16: 37 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+3104 bytes to 13 1076s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 12: 3104 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+4472 bytes to 15 1076s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 14: 4472 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1076s # GLib-DEBUG: io-channel-basic: child writing 8+2244 bytes to 11 1076s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1076s # GLib-DEBUG: io-channel-basic: ...from 10: 2244 bytes 1076s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+2331 bytes to 9 1077s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 8: 2331 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+159 bytes to 15 1077s # GLib-DEBUG: io-channel-basic: child writing 8+4368 bytes to 17 1077s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 14: 159 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1077s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 16: 4368 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+1339 bytes to 13 1077s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 12: 1339 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+3189 bytes to 11 1077s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 10: 3189 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+987 bytes to 9 1077s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 8: 987 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+3408 bytes to 13 1077s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 12: 3408 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+336 bytes to 11 1077s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 10: 336 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+1846 bytes to 15 1077s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 14: 1846 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+3855 bytes to 17 1077s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 16: 3855 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+3563 bytes to 9 1077s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 8: 3563 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+1404 bytes to 15 1077s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 14: 1404 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+4378 bytes to 13 1077s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 12: 4378 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+1025 bytes to 11 1077s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 10: 1025 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+1430 bytes to 17 1077s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 16: 1430 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+3013 bytes to 9 1077s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 8: 3013 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+4683 bytes to 11 1077s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 10: 4683 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+408 bytes to 15 1077s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 14: 408 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+497 bytes to 13 1077s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 12: 497 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1077s # GLib-DEBUG: io-channel-basic: child writing 8+2244 bytes to 17 1077s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1077s # GLib-DEBUG: io-channel-basic: ...from 16: 2244 bytes 1077s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+2377 bytes to 9 1078s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 8: 2377 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+3015 bytes to 11 1078s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 10: 3015 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+2705 bytes to 15 1078s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 14: 2705 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+4458 bytes to 17 1078s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 16: 4458 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+1341 bytes to 13 1078s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 12: 1341 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1078s # Executing: glib/io-channel-basic.test 1078s # GLib-DEBUG: io-channel-basic: child writing 8+4669 bytes to 9 1078s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 8: 4669 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+323 bytes to 13 1078s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 12: 323 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+1951 bytes to 11 1078s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 10: 1951 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+2504 bytes to 15 1078s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 14: 2504 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+922 bytes to 17 1078s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 16: 922 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+4072 bytes to 9 1078s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 8: 4072 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+3688 bytes to 11 1078s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 10: 3688 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+1452 bytes to 13 1078s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 12: 1452 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+1826 bytes to 15 1078s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 14: 1826 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+3926 bytes to 17 1078s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 16: 3926 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+1755 bytes to 9 1078s # GLib-DEBUG: io-channel-basic: child writing 8+4936 bytes to 15 1078s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 8: 1755 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1078s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 14: 4936 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+2211 bytes to 13 1078s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 12: 2211 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+135 bytes to 11 1078s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 10: 135 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1078s # GLib-DEBUG: io-channel-basic: child writing 8+3052 bytes to 17 1078s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1078s # GLib-DEBUG: io-channel-basic: ...from 16: 3052 bytes 1078s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+1178 bytes to 9 1079s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 8: 1178 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+4588 bytes to 15 1079s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 14: 4588 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+315 bytes to 13 1079s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 12: 315 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+1224 bytes to 11 1079s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 10: 1224 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+4801 bytes to 17 1079s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 16: 4801 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+4985 bytes to 9 1079s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 8: 4985 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+3092 bytes to 15 1079s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 14: 3092 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+3564 bytes to 13 1079s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 12: 3564 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+1799 bytes to 11 1079s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 10: 1799 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+938 bytes to 17 1079s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 16: 938 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+1136 bytes to 15 1079s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 14: 1136 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+2360 bytes to 9 1079s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 8: 2360 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+1675 bytes to 11 1079s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 10: 1675 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+4480 bytes to 13 1079s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 12: 4480 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+4923 bytes to 17 1079s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 16: 4923 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+648 bytes to 9 1079s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 8: 648 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+4313 bytes to 15 1079s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 14: 4313 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+668 bytes to 11 1079s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 10: 668 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+273 bytes to 13 1079s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 12: 273 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1079s # GLib-DEBUG: io-channel-basic: child writing 8+1492 bytes to 17 1079s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1079s # GLib-DEBUG: io-channel-basic: ...from 16: 1492 bytes 1079s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+4146 bytes to 15 1080s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 14: 4146 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+2616 bytes to 11 1080s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 10: 2616 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+4120 bytes to 9 1080s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 8: 4120 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+545 bytes to 13 1080s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 12: 545 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+2410 bytes to 17 1080s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 16: 2410 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+1805 bytes to 15 1080s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 14: 1805 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+609 bytes to 11 1080s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 10: 609 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+4400 bytes to 9 1080s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 8: 4400 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+858 bytes to 13 1080s # GLib-DEBUG: io-channel-basic: child exiting, closing 13 1080s # GLib-DEBUG: io-channel-basic: ...from 12: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 12: 858 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 12: OK 1080s # GLib-DEBUG: io-channel-basic: ...from 12: HUP 1080s # GLib-DEBUG: io-channel-basic: child writing 8+127 bytes to 17 1080s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 16: 127 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+1392 bytes to 15 1080s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 14: 1392 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+1207 bytes to 11 1080s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 10: 1207 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+2148 bytes to 9 1080s # GLib-DEBUG: io-channel-basic: ...from 8: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 8: 2148 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+420 bytes to 17 1080s # GLib-DEBUG: io-channel-basic: ...from 16: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 16: 420 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+1114 bytes to 15 1080s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 14: 1114 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+4713 bytes to 11 1080s # GLib-DEBUG: io-channel-basic: ...from 10: IN 1080s # GLib-DEBUG: io-channel-basic: ...from 10: 4713 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1080s # GLib-DEBUG: io-channel-basic: child writing 8+233 bytes to 9 1080s # GLib-DEBUG: io-channel-basic: child exiting, closing 9 1080s # GLib-DEBUG: io-channel-basic: ...from 8: HUP IN 1080s # GLib-DEBUG: io-channel-basic: ...from 8: 233 bytes 1080s # GLib-DEBUG: io-channel-basic: ...from 8: OK 1081s # GLib-DEBUG: io-channel-basic: child writing 8+3176 bytes to 17 1081s # GLib-DEBUG: io-channel-basic: child exiting, closing 17 1081s # GLib-DEBUG: io-channel-basic: ...from 16: HUP IN 1081s # GLib-DEBUG: io-channel-basic: ...from 16: 3176 bytes 1081s # GLib-DEBUG: io-channel-basic: ...from 16: OK 1081s # GLib-DEBUG: io-channel-basic: child writing 8+1341 bytes to 15 1081s # GLib-DEBUG: io-channel-basic: ...from 14: IN 1081s # GLib-DEBUG: io-channel-basic: ...from 14: 1341 bytes 1081s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1081s # GLib-DEBUG: io-channel-basic: child writing 8+4995 bytes to 11 1081s # GLib-DEBUG: io-channel-basic: child exiting, closing 11 1081s # GLib-DEBUG: io-channel-basic: ...from 10: HUP IN 1081s # GLib-DEBUG: io-channel-basic: ...from 10: 4995 bytes 1081s # GLib-DEBUG: io-channel-basic: ...from 10: OK 1081s # GLib-DEBUG: io-channel-basic: child writing 8+1022 bytes to 15 1081s # GLib-DEBUG: io-channel-basic: child exiting, closing 15 1081s # GLib-DEBUG: io-channel-basic: ...from 14: HUP IN 1081s # GLib-DEBUG: io-channel-basic: ...from 14: 1022 bytes 1081s # GLib-DEBUG: io-channel-basic: ...from 14: OK 1081s ok 1 /gio/io-basics 1081s # slow test /gio/io-basics executed in 11.98 secs 1081s # End of gio tests 1081s ok - glib/io-channel-basic.test 1081s # Running test: glib/properties-introspection.test 1081s ok - glib/properties-introspection.test 1081s # Running test: glib/callable-info.test 1081s TAP version 14 1081s # random seed: R02S17d715f460f3dbe2290830387267ee4f 1081s 1..2 1081s # Start of properties tests 1081s # /properties/introspection summary: Verify that introspecting properties on an interface initializes the GParamSpecPool. 1081s ok 1 /properties/introspection 1081s # /properties/collision summary: Verify that multiple threads create a single GParamSpecPool. 1081s ok 2 /properties/collision 1081s # End of properties tests 1081s TAP version 14 1081s # random seed: R02Sec1d363babc474e80254682af1737a46 1081s 1..6 1081s # Start of callable-info tests 1081s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_LYP3J3/callable-info/sync-function/.dirs/home 1081s ok - glib/callable-info.test 1081s # Running test: glib/gdbus-test-codegen-min-required-2-64.test 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_LYP3J3/callable-info/sync-function/.dirs/cache 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_LYP3J3/callable-info/sync-function/.dirs/system-config1:/tmp/test_callable-info_LYP3J3/callable-info/sync-function/.dirs/system-config2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_LYP3J3/callable-info/sync-function/.dirs/config 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_LYP3J3/callable-info/sync-function/.dirs/system-data1:/tmp/test_callable-info_LYP3J3/callable-info/sync-function/.dirs/system-data2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_LYP3J3/callable-info/sync-function/.dirs/data 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_LYP3J3/callable-info/sync-function/.dirs/state 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_LYP3J3/callable-info/sync-function/.dirs/runtime 1081s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1081s ok 1 /callable-info/sync-function 1081s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_LYP3J3/callable-info/async-function/.dirs/home 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_LYP3J3/callable-info/async-function/.dirs/cache 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_LYP3J3/callable-info/async-function/.dirs/system-config1:/tmp/test_callable-info_LYP3J3/callable-info/async-function/.dirs/system-config2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_LYP3J3/callable-info/async-function/.dirs/config 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_LYP3J3/callable-info/async-function/.dirs/system-data1:/tmp/test_callable-info_LYP3J3/callable-info/async-function/.dirs/system-data2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_LYP3J3/callable-info/async-function/.dirs/data 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_LYP3J3/callable-info/async-function/.dirs/state 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_LYP3J3/callable-info/async-function/.dirs/runtime 1081s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1081s ok 2 /callable-info/async-function 1081s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_LYP3J3/callable-info/is-method/.dirs/home 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_LYP3J3/callable-info/is-method/.dirs/cache 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_LYP3J3/callable-info/is-method/.dirs/system-config1:/tmp/test_callable-info_LYP3J3/callable-info/is-method/.dirs/system-config2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_LYP3J3/callable-info/is-method/.dirs/config 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_LYP3J3/callable-info/is-method/.dirs/system-data1:/tmp/test_callable-info_LYP3J3/callable-info/is-method/.dirs/system-data2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_LYP3J3/callable-info/is-method/.dirs/data 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_LYP3J3/callable-info/is-method/.dirs/state 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_LYP3J3/callable-info/is-method/.dirs/runtime 1081s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1081s ok 3 /callable-info/is-method 1081s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_LYP3J3/callable-info/static-method/.dirs/home 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_LYP3J3/callable-info/static-method/.dirs/cache 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_LYP3J3/callable-info/static-method/.dirs/system-config1:/tmp/test_callable-info_LYP3J3/callable-info/static-method/.dirs/system-config2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_LYP3J3/callable-info/static-method/.dirs/config 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_LYP3J3/callable-info/static-method/.dirs/system-data1:/tmp/test_callable-info_LYP3J3/callable-info/static-method/.dirs/system-data2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_LYP3J3/callable-info/static-method/.dirs/data 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_LYP3J3/callable-info/static-method/.dirs/state 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_LYP3J3/callable-info/static-method/.dirs/runtime 1081s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1081s ok 4 /callable-info/static-method 1081s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_LYP3J3/callable-info/static-vfunc/.dirs/home 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_LYP3J3/callable-info/static-vfunc/.dirs/cache 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_LYP3J3/callable-info/static-vfunc/.dirs/system-config1:/tmp/test_callable-info_LYP3J3/callable-info/static-vfunc/.dirs/system-config2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_LYP3J3/callable-info/static-vfunc/.dirs/config 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_LYP3J3/callable-info/static-vfunc/.dirs/system-data1:/tmp/test_callable-info_LYP3J3/callable-info/static-vfunc/.dirs/system-data2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_LYP3J3/callable-info/static-vfunc/.dirs/data 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_LYP3J3/callable-info/static-vfunc/.dirs/state 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_LYP3J3/callable-info/static-vfunc/.dirs/runtime 1081s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1081s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/-/merge_requests/361 1081s ok 5 /callable-info/static-vfunc # SKIP g-ir-scanner is not new enough 1081s # Start of platform tests 1081s # Start of unix tests 1081s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_callable-info_LYP3J3/callable-info/platform/unix/is-method/.dirs/home 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_callable-info_LYP3J3/callable-info/platform/unix/is-method/.dirs/cache 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_callable-info_LYP3J3/callable-info/platform/unix/is-method/.dirs/system-config1:/tmp/test_callable-info_LYP3J3/callable-info/platform/unix/is-method/.dirs/system-config2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_callable-info_LYP3J3/callable-info/platform/unix/is-method/.dirs/config 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_callable-info_LYP3J3/callable-info/platform/unix/is-method/.dirs/system-data1:/tmp/test_callable-info_LYP3J3/callable-info/platform/unix/is-method/.dirs/system-data2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_callable-info_LYP3J3/callable-info/platform/unix/is-method/.dirs/data 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_callable-info_LYP3J3/callable-info/platform/unix/is-method/.dirs/state 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_callable-info_LYP3J3/callable-info/platform/unix/is-method/.dirs/runtime 1081s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1081s # Checking DesktopAppInfo in Gio 1081s # Checking DesktopAppInfo in GioUnix 1081s ok 6 /callable-info/platform/unix/is-method 1081s # End of unix tests 1081s # End of platform tests 1081s # End of callable-info tests 1081s TAP version 14 1081s # random seed: R02Sd5af0cfdf1f50aa186759ef576a5761d 1081s 1..8 1081s # Start of gdbus tests 1081s # Start of codegen tests 1081s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/annotations/.dirs/home 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/annotations/.dirs/cache 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/annotations/.dirs/system-config2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/annotations/.dirs/config 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/annotations/.dirs/system-data2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/annotations/.dirs/data 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/annotations/.dirs/state 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/annotations/.dirs/runtime 1081s ok 1 /gdbus/codegen/annotations 1081s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/interface_stability/.dirs/home 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/interface_stability/.dirs/cache 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/interface_stability/.dirs/system-config2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/interface_stability/.dirs/config 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/interface_stability/.dirs/system-data2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/interface_stability/.dirs/data 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/interface_stability/.dirs/state 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/interface_stability/.dirs/runtime 1081s ok 2 /gdbus/codegen/interface_stability 1081s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/object-manager/.dirs/home 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/object-manager/.dirs/cache 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/object-manager/.dirs/system-config2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/object-manager/.dirs/config 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/object-manager/.dirs/system-data2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/object-manager/.dirs/data 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/object-manager/.dirs/state 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/object-manager/.dirs/runtime 1081s ok 3 /gdbus/codegen/object-manager 1081s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/property-naming/.dirs/home 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/property-naming/.dirs/cache 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/property-naming/.dirs/system-config2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/property-naming/.dirs/config 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/property-naming/.dirs/system-data2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/property-naming/.dirs/data 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/property-naming/.dirs/state 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/property-naming/.dirs/runtime 1081s ok 4 /gdbus/codegen/property-naming 1081s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/autocleanups/.dirs/home 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/autocleanups/.dirs/cache 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/autocleanups/.dirs/system-config2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/autocleanups/.dirs/config 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/autocleanups/.dirs/system-data2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/autocleanups/.dirs/data 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/autocleanups/.dirs/state 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/autocleanups/.dirs/runtime 1081s ok 5 /gdbus/codegen/autocleanups 1081s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/deprecations/.dirs/home 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/deprecations/.dirs/cache 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/deprecations/.dirs/system-config2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/deprecations/.dirs/config 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/deprecations/.dirs/system-data2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/deprecations/.dirs/data 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/deprecations/.dirs/state 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/deprecations/.dirs/runtime 1081s ok 6 /gdbus/codegen/deprecations 1081s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/standalone-interface-info/.dirs/home 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/standalone-interface-info/.dirs/cache 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/standalone-interface-info/.dirs/config 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1081s ok - glib/gdbus-test-codegen-min-required-2-64.test 1081s # Running test: glib/genmarshal.py.test 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/standalone-interface-info/.dirs/data 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/standalone-interface-info/.dirs/state 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1081s ok 7 /gdbus/codegen/standalone-interface-info 1081s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/unix-fd-list/.dirs/home 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/unix-fd-list/.dirs/cache 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/unix-fd-list/.dirs/config 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/unix-fd-list/.dirs/data 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/unix-fd-list/.dirs/state 1081s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-min-required-2-64_K0L4J3/gdbus/codegen/unix-fd-list/.dirs/runtime 1081s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1081s ok 8 /gdbus/codegen/unix-fd-list 1081s # End of codegen tests 1081s # End of gdbus tests 1081s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1081s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1081s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1081s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1081s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1081s TAP version 13 1081s ok 1 __main__.TestGenmarshal.test_empty_list 1081s # glib-genmarshal: /usr/bin/glib-genmarshal 1081s # tmpdir: /tmp/tmpkn2a3g7l 1081s # /tmp/tmpkn2a3g7l/tmpn42cfbrb.list: 1081s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpkn2a3g7l/tmpn42cfbrb.list', '--header', '--quiet'] 1081s # Return code: 0 1081s # Output: 1081s # /* 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. */ 1081s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1081s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1081s # 1081s # #include 1081s # 1081s # G_BEGIN_DECLS 1081s # 1081s # 1081s # G_END_DECLS 1081s # 1081s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1081s # Error: 1081s # 1081s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpkn2a3g7l/tmpn42cfbrb.list', '--body', '--quiet'] 1081s # Return code: 0 1081s # Output: 1081s # /* 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. */ 1081s # #include 1081s # 1081s # #ifdef G_ENABLE_DEBUG 1081s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1081s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1081s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1081s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1081s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1081s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1081s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1081s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1081s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1081s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1081s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1081s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1081s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1081s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1081s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1081s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1081s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1081s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1081s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1081s # #else /* !G_ENABLE_DEBUG */ 1081s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1081s # * Do not access GValues directly in your code. Instead, use the 1081s # * g_value_get_*() functions 1081s # */ 1081s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1081s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1081s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1081s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1081s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1081s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1081s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1081s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1081s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1081s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1081s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1081s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1081s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1081s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1081s # #endif /* !G_ENABLE_DEBUG */ 1081s # Error: 1081s ok 2 __main__.TestGenmarshal.test_help 1081s # glib-genmarshal: /usr/bin/glib-genmarshal 1081s # tmpdir: /tmp/tmpltxct37g 1081s # Running: ['/usr/bin/glib-genmarshal', '--help'] 1081s # Return code: 0 1081s # Output: 1081s # usage: glib-genmarshal [-h] [--prefix STRING] [--output FILE] [--skip-source] 1081s # [--internal] [--valist-marshallers] [-v] 1081s # [--g-fatal-warnings] [--include-header [HEADER]] 1081s # [--pragma-once] [-D CPP_DEFINES] [-U CPP_UNDEFINES] 1081s # [--prototypes] [--header] [--body] [--stdinc | 1081s # --nostdinc] [--quiet | --verbose] 1081s # [FILE ...] 1081s # 1081s # Generate signal marshallers for GObject 1081s # 1081s # positional arguments: 1081s # FILE Files with lists of marshallers to generate, or "-" 1081s # for standard input 1081s # 1081s # options: 1081s # -h, --help show this help message and exit 1081s # --prefix STRING Specify marshaller prefix 1081s # --output FILE Write output into the specified file 1081s # --skip-source Skip source location comments 1081s # --internal Mark generated functions as internal 1081s # --valist-marshallers Generate va_list marshallers 1081s # -v, --version Print version information, and exit 1081s # --g-fatal-warnings Make warnings fatal 1081s # --include-header [HEADER] 1081s # Include the specified header in the body 1081s # --pragma-once Use "pragma once" as the inclusion guard 1081s # -D CPP_DEFINES Pre-processor define 1081s # -U CPP_UNDEFINES Pre-processor undefine 1081s # --prototypes Generate the marshallers prototype in the C code 1081s # --header Generate C headers 1081s # --body Generate C code 1081s # --stdinc Include standard marshallers 1081s # --nostdinc Use standard marshallers 1081s # --quiet Only print warnings and errors 1081s # --verbose Be verbose, and include debugging information 1081s # Error: 1081s ok 3 __main__.TestGenmarshal.test_no_args 1081s # glib-genmarshal: /usr/bin/glib-genmarshal 1081s # tmpdir: /tmp/tmpe4lqp8tu 1081s # Running: ['/usr/bin/glib-genmarshal'] 1081s # Return code: 0 1081s # Output: 1081s # 1081s # Error: 1081s ok 4 __main__.TestGenmarshal.test_void_boolean 1081s # glib-genmarshal: /usr/bin/glib-genmarshal 1081s # tmpdir: /tmp/tmpqt8bpsf_ 1081s # /tmp/tmpqt8bpsf_/tmpxfdlgsk8.list: VOID:BOOLEAN 1081s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpqt8bpsf_/tmpxfdlgsk8.list', '--header', '--quiet'] 1081s # Return code: 0 1081s # Output: 1081s # /* 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. */ 1081s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1081s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1081s # 1081s # #include 1081s # 1081s # G_BEGIN_DECLS 1081s # 1081s # /* VOID:BOOLEAN (/tmp/tmpqt8bpsf_/tmpxfdlgsk8.list:1) */ 1081s # #define g_cclosure_user_marshal_VOID__BOOLEAN g_cclosure_marshal_VOID__BOOLEAN 1081s # 1081s # 1081s # G_END_DECLS 1081s # 1081s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1081s # Error: 1081s # 1081s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpqt8bpsf_/tmpxfdlgsk8.list', '--body', '--quiet'] 1081s # Return code: 0 1081s # Output: 1081s # /* 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. */ 1081s # #include 1081s # 1081s # #ifdef G_ENABLE_DEBUG 1081s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1081s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1081s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1081s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1081s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1081s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1081s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1081s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1081s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1081s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1081s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1081s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1081s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1081s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1081s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1081s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1081s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1081s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1081s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1081s # #else /* !G_ENABLE_DEBUG */ 1081s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1081s # * Do not access GValues directly in your code. Instead, use the 1081s # * g_value_get_*() functions 1081s # */ 1081s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1081s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1081s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1081s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1081s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1081s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1081s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1081s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1081s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1081s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1081s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1081s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1081s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1081s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1081s # #endif /* !G_ENABLE_DEBUG */ 1081s # Error: 1081s ok 5 __main__.TestGenmarshal.test_void_boolean_int64 1081s # glib-genmarshal: /usr/bin/glib-genmarshal 1081s # tmpdir: /tmp/tmpfklwkbm3 1081s # /tmp/tmpfklwkbm3/tmpfeaul_0y.list: VOID:BOOLEAN,INT64 1081s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpfklwkbm3/tmpfeaul_0y.list', '--header', '--quiet'] 1081s # Return code: 0 1081s # Output: 1081s # /* 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. */ 1081s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1081s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1081s # 1081s # #include 1081s # 1081s # G_BEGIN_DECLS 1081s # 1081s # /* VOID:BOOLEAN,INT64 (/tmp/tmpfklwkbm3/tmpfeaul_0y.list:1) */ 1081s # extern 1081s # void g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1081s # GValue *return_value, 1081s # guint n_param_values, 1081s # const GValue *param_values, 1081s # gpointer invocation_hint, 1081s # gpointer marshal_data); 1081s # 1081s # 1081s # G_END_DECLS 1081s # 1081s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1081s # Error: 1081s # 1081s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpfklwkbm3/tmpfeaul_0y.list', '--body', '--quiet'] 1081s # Return code: 0 1081s # Output: 1081s # /* 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. */ 1081s # #include 1081s # 1081s # #ifdef G_ENABLE_DEBUG 1081s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1081s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1081s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1081s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1081s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1081s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1081s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1081s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1081s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1081s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1081s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1081s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1081s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1081s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1081s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1081s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1081s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1081s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1081s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1081s # #else /* !G_ENABLE_DEBUG */ 1081s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1081s # * Do not access GValues directly in your code. Instead, use the 1081s # * g_value_get_*() functions 1081s # */ 1081s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1081s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1081s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1081s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1081s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1081s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1081s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1081s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1081s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1081s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1081s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1081s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1081s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1081s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1081s # #endif /* !G_ENABLE_DEBUG */ 1081s # 1081s # /* VOID:BOOLEAN,INT64 (/tmp/tmpfklwkbm3/tmpfeaul_0y.list:1) */ 1081s # void 1081s # g_cclosure_user_marshal_VOID__BOOLEAN_INT64 (GClosure *closure, 1081s # GValue *return_value G_GNUC_UNUSED, 1081s # guint n_param_values, 1081s # const GValue *param_values, 1081s # gpointer invocation_hint G_GNUC_UNUSED, 1081s # gpointer marshal_data) 1081s # { 1081s # typedef void (*GMarshalFunc_VOID__BOOLEAN_INT64) (gpointer data1, 1081s # gboolean arg1, 1081s # gint64 arg2, 1081s # gpointer data2); 1081s # GCClosure *cc = (GCClosure *) closure; 1081s # gpointer data1, data2; 1081s # GMarshalFunc_VOID__BOOLEAN_INT64 callback; 1081s # 1081s # g_return_if_fail (n_param_values == 3); 1081s # 1081s # if (G_CCLOSURE_SWAP_DATA (closure)) 1081s # { 1081s # data1 = closure->data; 1081s # data2 = g_value_peek_pointer (param_values + 0); 1081s # } 1081s # else 1081s # { 1081s # data1 = g_value_peek_pointer (param_values + 0); 1081s # data2 = closure->data; 1081s # } 1081s # callback = (GMarshalFunc_VOID__BOOLEAN_INT64) (marshal_data ? marshal_data : cc->callback); 1081s # 1081s # callback (data1, 1081s # g_marshal_value_peek_boolean (param_values + 1), 1081s # g_marshal_value_peek_int64 (param_values + 2), 1081s # data2); 1081s # } 1081s # Error: 1081s ok 6 __main__.TestGenmarshal.test_void_param_nostdinc 1081s # glib-genmarshal: /usr/bin/glib-genmarshal 1081s # tmpdir: /tmp/tmpj9_6keq5 1081s # /tmp/tmpj9_6keq5/tmp98tc84_6.list: VOID:PARAM 1081s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpj9_6keq5/tmp98tc84_6.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1081s # Return code: 0 1081s # Output: 1081s # /* 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. */ 1081s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1081s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1081s # 1081s # G_BEGIN_DECLS 1081s # 1081s # /* VOID:PARAM (/tmp/tmpj9_6keq5/tmp98tc84_6.list:1) */ 1081s # extern 1081s # void g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1081s # GValue *return_value, 1081s # guint n_param_values, 1081s # const GValue *param_values, 1081s # gpointer invocation_hint, 1081s # gpointer marshal_data); 1081s # extern 1081s # void g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1081s # GValue *return_value, 1081s # gpointer instance, 1081s # va_list args, 1081s # gpointer marshal_data, 1081s # int n_params, 1081s # GType *param_types); 1081s # 1081s # 1081s # G_END_DECLS 1081s # 1081s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1081s # Error: 1081s # 1081s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpj9_6keq5/tmp98tc84_6.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1081s # Return code: 0 1081s # Output: 1081s # /* 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. */ 1081s # #ifdef G_ENABLE_DEBUG 1081s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1081s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1081s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1081s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1081s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1081s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1081s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1081s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1081s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1081s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1081s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1081s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1081s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1081s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1081s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1081s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1081s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1081s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1081s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1081s # #else /* !G_ENABLE_DEBUG */ 1081s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1081s # * Do not access GValues directly in your code. Instead, use the 1081s # * g_value_get_*() functions 1081s # */ 1081s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1081s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1081s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1081s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1081s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1081s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1081s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1081s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1081s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1081s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1081s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1081s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1081s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1081s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1081s # #endif /* !G_ENABLE_DEBUG */ 1081s # 1081s # /* VOID:PARAM (/tmp/tmpj9_6keq5/tmp98tc84_6.list:1) */ 1081s # void 1081s # g_cclosure_user_marshal_VOID__PARAM (GClosure *closure, 1081s # GValue *return_value G_GNUC_UNUSED, 1081s # guint n_param_values, 1081s # const GValue *param_values, 1081s # gpointer invocation_hint G_GNUC_UNUSED, 1081s # gpointer marshal_data) 1081s # { 1081s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1081s # gpointer arg1, 1081s # gpointer data2); 1081s # GCClosure *cc = (GCClosure *) closure; 1081s # gpointer data1, data2; 1081s # GMarshalFunc_VOID__PARAM callback; 1081s # 1081s # g_return_if_fail (n_param_values == 2); 1081s # 1081s # if (G_CCLOSURE_SWAP_DATA (closure)) 1081s # { 1081s # data1 = closure->data; 1081s # data2 = g_value_peek_pointer (param_values + 0); 1081s # } 1081s # else 1081s # { 1081s # data1 = g_value_peek_pointer (param_values + 0); 1081s # data2 = closure->data; 1081s # } 1081s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1081s # 1081s # callback (data1, 1081s # g_marshal_value_peek_param (param_values + 1), 1081s # data2); 1081s # } 1081s # 1081s # void 1081s # g_cclosure_user_marshal_VOID__PARAMv (GClosure *closure, 1081s # GValue *return_value G_GNUC_UNUSED, 1081s # gpointer instance, 1081s # va_list args, 1081s # gpointer marshal_data, 1081s # int n_params, 1081s # GType *param_types) 1081s # { 1081s # typedef void (*GMarshalFunc_VOID__PARAM) (gpointer data1, 1081s # gpointer arg1, 1081s # gpointer data2); 1081s # GCClosure *cc = (GCClosure *) closure; 1081s # gpointer data1, data2; 1081s # GMarshalFunc_VOID__PARAM callback; 1081s # gpointer arg0; 1081s # va_list args_copy; 1081s # 1081s # va_copy (args_copy, args); 1081s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1081s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1081s # arg0 = g_param_spec_ref (arg0); 1081s # va_end (args_copy); 1081s # 1081s # 1081s # if (G_CCLOSURE_SWAP_DATA (closure)) 1081s # { 1081s # data1 = closure->data; 1081s # data2 = instance; 1081s # } 1081s # else 1081s # { 1081s # data1 = instance; 1081s # data2 = closure->data; 1081s # } 1081s # callback = (GMarshalFunc_VOID__PARAM) (marshal_data ? marshal_data : cc->callback); 1081s # 1081s # callback (data1, 1081s # arg0, 1081s # data2); 1081s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1081s # g_param_spec_unref (arg0); 1081s # } 1081s # Error: 1081s ok 7 __main__.TestGenmarshal.test_void_string_nostdinc 1081s # glib-genmarshal: /usr/bin/glib-genmarshal 1081s # tmpdir: /tmp/tmpssmypfip 1081s # /tmp/tmpssmypfip/tmp1yts2_jw.list: VOID:STRING 1081s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpssmypfip/tmp1yts2_jw.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1081s # Return code: 0 1081s # Output: 1081s # /* 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. */ 1081s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1081s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1081s # 1081s # G_BEGIN_DECLS 1081s # 1081s # /* VOID:STRING (/tmp/tmpssmypfip/tmp1yts2_jw.list:1) */ 1081s # extern 1081s # void g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1081s # GValue *return_value, 1081s # guint n_param_values, 1081s # const GValue *param_values, 1081s # gpointer invocation_hint, 1081s # gpointer marshal_data); 1081s # extern 1081s # void g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1081s # GValue *return_value, 1081s # gpointer instance, 1081s # va_list args, 1081s # gpointer marshal_data, 1081s # int n_params, 1081s # GType *param_types); 1081s # 1081s # 1081s # G_END_DECLS 1081s # 1081s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1081s # Error: 1081s # 1081s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpssmypfip/tmp1yts2_jw.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1081s # Return code: 0 1081s # Output: 1081s # /* 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. */ 1081s # #ifdef G_ENABLE_DEBUG 1081s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1081s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1081s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1081s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1081s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1081s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1081s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1081s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1081s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1081s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1081s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1081s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1081s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1081s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1081s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1081s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1081s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1081s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1081s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1081s # #else /* !G_ENABLE_DEBUG */ 1081s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1081s # * Do not access GValues directly in your code. Instead, use the 1081s # * g_value_get_*() functions 1081s # */ 1081s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1081s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1081s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1081s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1081s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1081s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1081s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1081s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1081s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1081s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1081s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1081s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1081s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1081s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1081s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1081s # #endif /* !G_ENABLE_DEBUG */ 1081s # 1081s # /* VOID:STRING (/tmp/tmpssmypfip/tmp1yts2_jw.list:1) */ 1081s # void 1081s # g_cclosure_user_marshal_VOID__STRING (GClosure *closure, 1081s # GValue *return_value G_GNUC_UNUSED, 1081s # guint n_param_values, 1081s # const GValue *param_values, 1081s # gpointer invocation_hint G_GNUC_UNUSED, 1081s # gpointer marshal_data) 1081s # { 1081s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1081s # gpointer arg1, 1081s # gpointer data2); 1081s # GCClosure *cc = (GCClosure *) closure; 1081s # gpointer data1, data2; 1081s # GMarshalFunc_VOID__STRING callback; 1081s # 1081s # g_return_if_fail (n_param_values == 2); 1081s # 1081s # if (G_CCLOSURE_SWAP_DATA (closure)) 1081s # { 1081s # data1 = closure->data; 1081s # data2 = g_value_peek_pointer (param_values + 0); 1081s # } 1081s # else 1081s # { 1081s # data1 = g_value_peek_pointer (param_values + 0); 1081s # data2 = closure->data; 1081s # } 1081s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1081s # 1081s # callback (data1, 1081s # g_marshal_value_peek_string (param_values + 1), 1081s # data2); 1081s # } 1081s # 1081s # void 1081s # g_cclosure_user_marshal_VOID__STRINGv (GClosure *closure, 1081s # GValue *return_value G_GNUC_UNUSED, 1081s # gpointer instance, 1081s # va_list args, 1081s # gpointer marshal_data, 1081s # int n_params, 1081s # GType *param_types) 1081s # { 1081s # typedef void (*GMarshalFunc_VOID__STRING) (gpointer data1, 1081s # gpointer arg1, 1081s # gpointer data2); 1081s # GCClosure *cc = (GCClosure *) closure; 1081s # gpointer data1, data2; 1081s # GMarshalFunc_VOID__STRING callback; 1081s # gpointer arg0; 1081s # va_list args_copy; 1081s # 1081s # va_copy (args_copy, args); 1081s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1081s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1081s # arg0 = g_strdup (arg0); 1081s # va_end (args_copy); 1081s # 1081s # 1081s # if (G_CCLOSURE_SWAP_DATA (closure)) 1081s # { 1081s # data1 = closure->data; 1081s # data2 = instance; 1081s # } 1081s # else 1081s # { 1081s # data1 = instance; 1081s # data2 = closure->data; 1081s # } 1081s # callback = (GMarshalFunc_VOID__STRING) (marshal_data ? marshal_data : cc->callback); 1081s # 1081s # callback (data1, 1081s # arg0, 1081s # data2); 1081s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1081s # g_free (arg0); 1081s # } 1081s # Error: 1082s ok 8 __main__.TestGenmarshal.test_void_variant_nostdinc_valist_marshaller 1082s # glib-genmarshal: /usr/bin/glib-genmarshal 1082s # tmpdir: /tmp/tmpva5rrc1h 1082s # /tmp/tmpva5rrc1h/tmpuokjy9rf.list: VOID:VARIANT 1082s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpva5rrc1h/tmpuokjy9rf.list', '--header', '--quiet', '--nostdinc', '--valist-marshaller'] 1082s # Return code: 0 1082s # Output: 1082s # /* 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. */ 1082s # #ifndef __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1082s # #define __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ 1082s # 1082s # G_BEGIN_DECLS 1082s # 1082s # /* VOID:VARIANT (/tmp/tmpva5rrc1h/tmpuokjy9rf.list:1) */ 1082s # extern 1082s # void g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1082s # GValue *return_value, 1082s # guint n_param_values, 1082s # const GValue *param_values, 1082s # gpointer invocation_hint, 1082s # gpointer marshal_data); 1082s # extern 1082s # void g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1082s # GValue *return_value, 1082s # gpointer instance, 1082s # va_list args, 1082s # gpointer marshal_data, 1082s # int n_params, 1082s # GType *param_types); 1082s # 1082s # 1082s # G_END_DECLS 1082s # 1082s # #endif /* __G_CCLOSURE_USER_MARSHAL_MARSHAL_H__ */ 1082s # Error: 1082s # 1082s # Running: ['/usr/bin/glib-genmarshal', '/tmp/tmpva5rrc1h/tmpuokjy9rf.list', '--body', '--quiet', '--nostdinc', '--valist-marshaller'] 1082s # Return code: 0 1082s # Output: 1082s # /* 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. */ 1082s # #ifdef G_ENABLE_DEBUG 1082s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1082s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1082s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1082s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1082s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1082s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1082s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1082s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1082s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1082s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1082s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1082s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1082s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1082s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1082s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1082s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1082s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1082s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1082s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1082s # #else /* !G_ENABLE_DEBUG */ 1082s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1082s # * Do not access GValues directly in your code. Instead, use the 1082s # * g_value_get_*() functions 1082s # */ 1082s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1082s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1082s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1082s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1082s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1082s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1082s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1082s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1082s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1082s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1082s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1082s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1082s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1082s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1082s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1082s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1082s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1082s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1082s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1082s # #endif /* !G_ENABLE_DEBUG */ 1082s # 1082s # /* VOID:VARIANT (/tmp/tmpva5rrc1h/tmpuokjy9rf.list:1) */ 1082s # void 1082s # g_cclosure_user_marshal_VOID__VARIANT (GClosure *closure, 1082s # GValue *return_value G_GNUC_UNUSED, 1082s # guint n_param_values, 1082s # const GValue *param_values, 1082s # gpointer invocation_hint G_GNUC_UNUSED, 1082s # gpointer marshal_data) 1082s # { 1082s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1082s # gpointer arg1, 1082s # gpointer data2); 1082s # GCClosure *cc = (GCClosure *) closure; 1082s # gpointer data1, data2; 1082s # GMarshalFunc_VOID__VARIANT callback; 1082s # 1082s # g_return_if_fail (n_param_values == 2); 1082s # 1082s # if (G_CCLOSURE_SWAP_DATA (closure)) 1082s # { 1082s # data1 = closure->data; 1082s # data2 = g_value_peek_pointer (param_values + 0); 1082s # } 1082s # else 1082s # { 1082s # data1 = g_value_peek_pointer (param_values + 0); 1082s # data2 = closure->data; 1082s # } 1082s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1082s # 1082s # callback (data1, 1082s # g_marshal_value_peek_variant (param_values + 1), 1082s # data2); 1082s # } 1082s # 1082s # void 1082s # g_cclosure_user_marshal_VOID__VARIANTv (GClosure *closure, 1082s # GValue *return_value G_GNUC_UNUSED, 1082s # gpointer instance, 1082s # va_list args, 1082s # gpointer marshal_data, 1082s # int n_params, 1082s # GType *param_types) 1082s # { 1082s # typedef void (*GMarshalFunc_VOID__VARIANT) (gpointer data1, 1082s # gpointer arg1, 1082s # gpointer data2); 1082s # GCClosure *cc = (GCClosure *) closure; 1082s # gpointer data1, data2; 1082s # GMarshalFunc_VOID__VARIANT callback; 1082s # gpointer arg0; 1082s # va_list args_copy; 1082s # 1082s # va_copy (args_copy, args); 1082s # arg0 = (gpointer) va_arg (args_copy, gpointer); 1082s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1082s # arg0 = g_variant_ref_sink (arg0); 1082s # va_end (args_copy); 1082s # 1082s # 1082s # if (G_CCLOSURE_SWAP_DATA (closure)) 1082s # { 1082s # data1 = closure->data; 1082s # data2 = instance; 1082s # } 1082s # else 1082s # { 1082s # data1 = instance; 1082s # data2 = closure->data; 1082s # } 1082s # callback = (GMarshalFunc_VOID__VARIANT) (marshal_data ? marshal_data : cc->callback); 1082s # 1082s # callback (data1, 1082s # arg0, 1082s # data2); 1082s # if ((param_types[0] & G_SIGNAL_TYPE_STATIC_SCOPE) == 0 && arg0 != NULL) 1082s # g_variant_unref (arg0); 1082s # } 1082s # Error: 1082s 1..8 1082s ok - glib/genmarshal.py.test 1082s # Running test: glib/properties-refcount3.test 1082s TAP version 14 1082s # random seed: R02S98bac2d13f643d6d2942494ce3fa9ce3 1082s 1..1 1082s # Start of gobject tests 1082s # Start of refcount tests 1083s # Executing: glib/properties-refcount3.test 1088s # Executing: glib/properties-refcount3.test 1093s # Executing: glib/properties-refcount3.test 1098s # Executing: glib/properties-refcount3.test 1103s # Executing: glib/properties-refcount3.test 1108s # Executing: glib/properties-refcount3.test 1112s # 1112s # stopping 1112s # 1112s # stopped 1112s # 1112s # 12773809 7431242 1112s # 1112s ok 1 /gobject/refcount/properties-3 1112s # slow test /gobject/refcount/properties-3 executed in 30.00 secs 1112s # End of refcount tests 1112s # End of gobject tests 1112s ok - glib/properties-refcount3.test 1112s # Running test: glib/guuid.test 1112s ok - glib/guuid.test 1112s TAP version 14 1112s # random seed: R02Sd6b9a164ffa8f748646ceb7bc146ac12 1112s 1..2 1112s # Start of uuid tests 1112s ok 1 /uuid/string 1112s ok 2 /uuid/random 1112s # End of uuid tests 1112s # Running test: glib/print.test 1112s TAP version 14 1112s # random seed: R02S38970b233fe4c7b011c602c400456d0f 1112s 1..1 1112s ok 1 /print-console # SKIP Testing console output only supported on Windows 1112s ok - glib/print.test 1112s # Running test: glib/regex.test 1112s TAP version 14 1112s # random seed: R02S47919bae953fa6aaf2a602c7d2ce0ab7 1112s 1..849 1112s # Start of regex tests 1112s ok 1 /regex/properties 1112s ok 2 /regex/class 1112s ok 3 /regex/lookahead 1112s ok 4 /regex/lookbehind 1112s ok 5 /regex/subpattern 1112s ok 6 /regex/condition 1112s ok 7 /regex/recursion 1112s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=640489 1112s ok 8 /regex/multiline 1112s ok 9 /regex/explicit-crlf 1112s ok 10 /regex/max-lookbehind 1112s ok 11 /regex/compile-errors 1112s ok 12 /regex/jit-unsupported-matching 1112s # /regex/unmatched-named-subpattern summary: Test that unmatched subpatterns can still be queried 1112s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2881 1112s ok 13 /regex/unmatched-named-subpattern 1112s # /regex/compiled-regex-after-jit-failure summary: Test that failed OPTIMIZE regex doesn't cause issues on subsequent matches 1112s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2824 1112s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1112s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1112s ok 14 /regex/compiled-regex-after-jit-failure 1112s # Start of new tests 1112s ok 15 /regex/new/1 1112s ok 16 /regex/new/2 1112s ok 17 /regex/new/3 1112s ok 18 /regex/new/4 1112s ok 19 /regex/new/5 1112s ok 20 /regex/new/6 1112s ok 21 /regex/new/7 1112s ok 22 /regex/new/8 1112s ok 23 /regex/new/9 1112s ok 24 /regex/new/10 1112s ok 25 /regex/new/11 1112s ok 26 /regex/new/12 1112s ok 27 /regex/new/13 1112s ok 28 /regex/new/14 1112s ok 29 /regex/new/15 1112s ok 30 /regex/new/16 1112s ok 31 /regex/new/17 1112s ok 32 /regex/new/18 1112s ok 33 /regex/new/19 1112s ok 34 /regex/new/71 1112s ok 35 /regex/new/81 1112s ok 36 /regex/new/83 1112s # End of new tests 1112s # Start of new-check-flags tests 1112s ok 37 /regex/new-check-flags/20 1112s ok 38 /regex/new-check-flags/21 1112s ok 39 /regex/new-check-flags/22 1112s ok 40 /regex/new-check-flags/23 1112s ok 41 /regex/new-check-flags/24 1112s ok 42 /regex/new-check-flags/25 1112s ok 43 /regex/new-check-flags/26 1112s ok 44 /regex/new-check-flags/27 1112s ok 45 /regex/new-check-flags/28 1112s ok 46 /regex/new-check-flags/29 1112s ok 47 /regex/new-check-flags/30 1112s ok 48 /regex/new-check-flags/31 1112s ok 49 /regex/new-check-flags/32 1112s ok 50 /regex/new-check-flags/33 1112s ok 51 /regex/new-check-flags/34 1112s ok 52 /regex/new-check-flags/35 1112s ok 53 /regex/new-check-flags/36 1112s # End of new-check-flags tests 1112s # Start of new-fail tests 1112s # Compiling pattern /(/ failed with error: Error while compiling regular expression ‘(’ at char 1: missing terminating ) 1112s ok 54 /regex/new-fail/37 1112s # Compiling pattern /)/ failed with error: Error while compiling regular expression ‘)’ at char 0: missing terminating ) 1112s ok 55 /regex/new-fail/38 1112s # Compiling pattern /[/ failed with error: Error while compiling regular expression ‘[’ at char 1: missing terminating ] for character class 1112s ok 56 /regex/new-fail/39 1112s # Compiling pattern /*/ failed with error: Error while compiling regular expression ‘*’ at char 0: nothing to repeat 1112s ok 57 /regex/new-fail/40 1112s # Compiling pattern /?/ failed with error: Error while compiling regular expression ‘?’ at char 0: nothing to repeat 1112s ok 58 /regex/new-fail/41 1112s # Compiling pattern /(?Px)|(?Py)/ failed with error: Error while compiling regular expression ‘(?Px)|(?Py)’ at char 15: two named subpatterns have the same name 1112s ok 59 /regex/new-fail/42 1112s # Compiling pattern /a\/ failed with error: Error while compiling regular expression ‘a\’ at char 2: \ at end of pattern 1112s ok 60 /regex/new-fail/43 1112s # Compiling pattern /a\c/ failed with error: Error while compiling regular expression ‘a\c’ at char 3: \c at end of pattern 1112s ok 61 /regex/new-fail/44 1112s # Compiling pattern /a\l/ failed with error: Error while compiling regular expression ‘a\l’ at char 3: unrecognized character following \ 1112s ok 62 /regex/new-fail/45 1112s # 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 1112s ok 63 /regex/new-fail/46 1112s # Compiling pattern /a{999999,}/ failed with error: Error while compiling regular expression ‘a{999999,}’ at char 8: number too big in {} quantifier 1112s ok 64 /regex/new-fail/47 1112s # Compiling pattern /[a-z/ failed with error: Error while compiling regular expression ‘[a-z’ at char 4: missing terminating ] for character class 1112s ok 65 /regex/new-fail/48 1112s # Compiling pattern /[\B]/ failed with error: Error while compiling regular expression ‘[\B]’ at char 2: invalid escape sequence in character class 1112s ok 66 /regex/new-fail/49 1112s # Compiling pattern /[z-a]/ failed with error: Error while compiling regular expression ‘[z-a]’ at char 3: range out of order in character class 1112s ok 67 /regex/new-fail/50 1112s # Compiling pattern /^[[:alnum:]-_.]+$/ failed with error: Error while compiling regular expression ‘^[[:alnum:]-_.]+$’ at char 12: invalid range in character class 1112s ok 68 /regex/new-fail/51 1112s # Compiling pattern /{2,4}/ failed with error: Error while compiling regular expression ‘{2,4}’ at char 4: nothing to repeat 1112s ok 69 /regex/new-fail/52 1112s # Compiling pattern /a(?u)/ failed with error: Error while compiling regular expression ‘a(?u)’ at char 3: unrecognized character after (? or (?- 1112s ok 70 /regex/new-fail/53 1112s # Compiling pattern /a(?<$foo)bar/ failed with error: Error while compiling regular expression ‘a(?<$foo)bar’ at char 4: missing subpattern name after (?& 1112s ok 71 /regex/new-fail/54 1112s # 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 1112s ok 72 /regex/new-fail/55 1112s # Compiling pattern /a(b/ failed with error: Error while compiling regular expression ‘a(b’ at char 3: missing terminating ) 1112s ok 73 /regex/new-fail/56 1112s # Compiling pattern /a)b/ failed with error: Error while compiling regular expression ‘a)b’ at char 1: missing terminating ) 1112s ok 74 /regex/new-fail/57 1112s # Compiling pattern /a(?R/ failed with error: Error while compiling regular expression ‘a(?R’ at char 4: missing terminating ) 1112s ok 75 /regex/new-fail/58 1112s # Compiling pattern /a(?-54/ failed with error: Error while compiling regular expression ‘a(?-54’ at char 6: reference to non-existent subpattern 1112s ok 76 /regex/new-fail/59 1112s # Compiling pattern /(ab\2)/ failed with error: Error while compiling regular expression ‘(ab\2)’ at char 4: reference to non-existent subpattern 1112s ok 77 /regex/new-fail/60 1112s # Compiling pattern /a(?#abc/ failed with error: Error while compiling regular expression ‘a(?#abc’ at char 7: missing ) after comment 1112s ok 78 /regex/new-fail/61 1112s # Compiling pattern /(?<=a+)b/ failed with error: Error while compiling regular expression ‘(?<=a+)b’ at char 0: lookbehind assertion is not fixed length 1112s ok 79 /regex/new-fail/62 1112s # Compiling pattern /(?(1?)a|b)/ failed with error: Error while compiling regular expression ‘(?(1?)a|b)’ at char 4: malformed number or name after (?( 1112s ok 80 /regex/new-fail/63 1112s # 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 1112s ok 81 /regex/new-fail/64 1112s # Compiling pattern /(?(?i))/ failed with error: Error while compiling regular expression ‘(?(?i))’ at char 2: assertion expected after (?( 1112s ok 82 /regex/new-fail/65 1112s # Compiling pattern /a[[:fubar:]]b/ failed with error: Error while compiling regular expression ‘a[[:fubar:]]b’ at char 11: unknown POSIX class name 1112s ok 83 /regex/new-fail/66 1112s # Compiling pattern /[[.ch.]]/ failed with error: Error while compiling regular expression ‘[[.ch.]]’ at char 7: POSIX collating elements are not supported 1112s ok 84 /regex/new-fail/67 1112s # 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 1112s ok 85 /regex/new-fail/68 1112s # 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 1112s ok 86 /regex/new-fail/69 1112s # Compiling pattern /(?<=\C)X/ failed with error: Error while compiling regular expression ‘(?<=\C)X’ at char 0: \C not allowed in lookbehind assertion 1112s ok 87 /regex/new-fail/70 1112s # 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 1112s ok 90 /regex/new-fail/74 1112s # Compiling pattern /\666/ failed with error: Error while compiling regular expression ‘\666’ at char 4: octal value is greater than \377 1112s ok 91 /regex/new-fail/75 1112s # 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 1112s ok 92 /regex/new-fail/76 1112s # Compiling pattern /a/ failed with error: Invalid newline flags 1112s ok 93 /regex/new-fail/77 1112s # 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 1112s ok 94 /regex/new-fail/78 1112s # 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 1112s ok 95 /regex/new-fail/79 1112s # Compiling pattern /^(a)\g{0}/ failed with error: Error while compiling regular expression ‘^(a)\g{0}’ at char 9: reference to non-existent subpattern 1112s ok 96 /regex/new-fail/80 1112s # Compiling pattern /a(*FOOBAR)b/ failed with error: Error while compiling regular expression ‘a(*FOOBAR)b’ at char 9: (*VERB) not recognized 1112s ok 97 /regex/new-fail/82 1112s # Compiling pattern /(?)(?&)/ failed with error: Error while compiling regular expression ‘(?)(?&)’ at char 9: missing subpattern name after (?& 1112s ok 98 /regex/new-fail/84 1112s # Compiling pattern /(?+-a)/ failed with error: Error while compiling regular expression ‘(?+-a)’ at char 2: a numbered reference must not be zero 1112s ok 99 /regex/new-fail/85 1112s # 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 1112s ok 100 /regex/new-fail/86 1112s # Compiling pattern /a(*MARK)b/ failed with error: Error while compiling regular expression ‘a(*MARK)b’ at char 7: (*MARK) must have an argument 1112s ok 101 /regex/new-fail/87 1112s # Compiling pattern /^\c€/ failed with error: Error while compiling regular expression ‘^\c€’ at char 3: \c must be followed by an ASCII character 1112s ok 102 /regex/new-fail/88 1112s # 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 1112s ok 103 /regex/new-fail/89 1112s # 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 1112s ok 104 /regex/new-fail/90 1112s # 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) 1112s ok 105 /regex/new-fail/91 1112s # 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 1112s ok 106 /regex/new-fail/92 1112s # End of new-fail tests 1112s # Start of match-simple tests 1112s ok 107 /regex/match-simple/93 1112s ok 108 /regex/match-simple/94 1112s ok 109 /regex/match-simple/95 1112s ok 110 /regex/match-simple/96 1112s ok 111 /regex/match-simple/97 1112s ok 112 /regex/match-simple/98 1112s ok 113 /regex/match-simple/99 1112s ok 114 /regex/match-simple/100 1112s ok 115 /regex/match-simple/101 1112s ok 116 /regex/match-simple/102 1112s ok 117 /regex/match-simple/103 1112s ok 118 /regex/match-simple/104 1112s ok 119 /regex/match-simple/105 1112s ok 120 /regex/match-simple/106 1112s ok 121 /regex/match-simple/107 1112s ok 122 /regex/match-simple/108 1112s ok 123 /regex/match-simple/109 1112s ok 124 /regex/match-simple/110 1112s ok 125 /regex/match-simple/111 1112s ok 126 /regex/match-simple/112 1112s ok 127 /regex/match-simple/113 1112s ok 128 /regex/match-simple/114 1112s ok 129 /regex/match-simple/115 1112s ok 130 /regex/match-simple/116 1112s ok 131 /regex/match-simple/117 1112s ok 132 /regex/match-simple/118 1112s ok 133 /regex/match-simple/119 1112s ok 134 /regex/match-simple/120 1112s ok 135 /regex/match-simple/121 1112s ok 136 /regex/match-simple/122 1112s ok 137 /regex/match-simple/123 1112s ok 138 /regex/match-simple/124 1112s ok 139 /regex/match-simple/125 1112s ok 140 /regex/match-simple/126 1112s ok 141 /regex/match-simple/127 1112s ok 142 /regex/match-simple/128 1112s ok 143 /regex/match-simple/129 1112s ok 144 /regex/match-simple/130 1112s ok 145 /regex/match-simple/131 1112s ok 146 /regex/match-simple/132 1112s ok 147 /regex/match-simple/133 1112s ok 148 /regex/match-simple/134 1112s ok 149 /regex/match-simple/135 1112s ok 150 /regex/match-simple/136 1112s ok 151 /regex/match-simple/137 1112s ok 152 /regex/match-simple/138 1112s ok 153 /regex/match-simple/139 1112s ok 154 /regex/match-simple/140 1112s ok 155 /regex/match-simple/141 1112s ok 156 /regex/match-simple/142 1112s ok 157 /regex/match-simple/143 1112s ok 158 /regex/match-simple/144 1112s ok 159 /regex/match-simple/145 1112s ok 160 /regex/match-simple/146 1112s ok 161 /regex/match-simple/147 1112s ok 162 /regex/match-simple/148 1112s ok 163 /regex/match-simple/149 1112s ok 164 /regex/match-simple/150 1112s ok 165 /regex/match-simple/151 1112s ok 166 /regex/match-simple/152 1112s ok 167 /regex/match-simple/153 1112s ok 168 /regex/match-simple/154 1112s ok 169 /regex/match-simple/155 1112s ok 170 /regex/match-simple/156 1112s ok 171 /regex/match-simple/157 1112s ok 172 /regex/match-simple/158 1112s ok 173 /regex/match-simple/159 1112s ok 174 /regex/match-simple/160 1112s ok 175 /regex/match-simple/161 1112s ok 176 /regex/match-simple/162 1112s ok 177 /regex/match-simple/163 1112s ok 178 /regex/match-simple/164 1112s ok 179 /regex/match-simple/165 1112s # End of match-simple tests 1112s # Start of match-simple-optimized tests 1112s ok 180 /regex/match-simple-optimized/93 1112s ok 181 /regex/match-simple-optimized/94 1112s ok 182 /regex/match-simple-optimized/95 1112s ok 183 /regex/match-simple-optimized/96 1112s ok 184 /regex/match-simple-optimized/97 1112s ok 185 /regex/match-simple-optimized/98 1112s ok 186 /regex/match-simple-optimized/99 1112s ok 187 /regex/match-simple-optimized/100 1112s ok 188 /regex/match-simple-optimized/101 1112s ok 189 /regex/match-simple-optimized/102 1112s ok 190 /regex/match-simple-optimized/103 1112s ok 191 /regex/match-simple-optimized/104 1112s ok 192 /regex/match-simple-optimized/105 1112s ok 193 /regex/match-simple-optimized/106 1112s ok 194 /regex/match-simple-optimized/107 1112s ok 195 /regex/match-simple-optimized/108 1112s ok 196 /regex/match-simple-optimized/109 1112s ok 197 /regex/match-simple-optimized/110 1112s ok 198 /regex/match-simple-optimized/111 1112s ok 199 /regex/match-simple-optimized/112 1112s ok 200 /regex/match-simple-optimized/113 1112s ok 201 /regex/match-simple-optimized/114 1112s ok 202 /regex/match-simple-optimized/115 1112s ok 203 /regex/match-simple-optimized/116 1112s ok 204 /regex/match-simple-optimized/117 1112s ok 205 /regex/match-simple-optimized/118 1112s ok 206 /regex/match-simple-optimized/119 1112s ok 207 /regex/match-simple-optimized/120 1112s ok 208 /regex/match-simple-optimized/121 1112s ok 209 /regex/match-simple-optimized/122 1112s ok 210 /regex/match-simple-optimized/123 1112s ok 211 /regex/match-simple-optimized/124 1112s ok 212 /regex/match-simple-optimized/125 1112s ok 213 /regex/match-simple-optimized/126 1112s ok 214 /regex/match-simple-optimized/127 1112s ok 215 /regex/match-simple-optimized/128 1112s ok 216 /regex/match-simple-optimized/129 1112s ok 217 /regex/match-simple-optimized/130 1112s ok 218 /regex/match-simple-optimized/131 1112s ok 219 /regex/match-simple-optimized/132 1112s ok 220 /regex/match-simple-optimized/133 1112s ok 221 /regex/match-simple-optimized/134 1112s ok 222 /regex/match-simple-optimized/135 1112s ok 223 /regex/match-simple-optimized/136 1112s ok 224 /regex/match-simple-optimized/137 1112s ok 225 /regex/match-simple-optimized/138 1112s ok 226 /regex/match-simple-optimized/139 1112s ok 227 /regex/match-simple-optimized/140 1112s ok 228 /regex/match-simple-optimized/141 1112s ok 229 /regex/match-simple-optimized/142 1112s ok 230 /regex/match-simple-optimized/143 1112s ok 231 /regex/match-simple-optimized/144 1112s ok 232 /regex/match-simple-optimized/145 1112s ok 233 /regex/match-simple-optimized/146 1112s ok 234 /regex/match-simple-optimized/147 1112s ok 235 /regex/match-simple-optimized/148 1112s ok 236 /regex/match-simple-optimized/149 1112s ok 237 /regex/match-simple-optimized/150 1112s ok 238 /regex/match-simple-optimized/151 1112s ok 239 /regex/match-simple-optimized/152 1112s ok 240 /regex/match-simple-optimized/153 1112s ok 241 /regex/match-simple-optimized/154 1112s ok 242 /regex/match-simple-optimized/155 1112s ok 243 /regex/match-simple-optimized/156 1112s ok 244 /regex/match-simple-optimized/157 1112s ok 245 /regex/match-simple-optimized/158 1112s ok 246 /regex/match-simple-optimized/159 1112s ok 247 /regex/match-simple-optimized/160 1112s ok 248 /regex/match-simple-optimized/161 1112s ok 249 /regex/match-simple-optimized/162 1112s ok 250 /regex/match-simple-optimized/163 1112s ok 251 /regex/match-simple-optimized/164 1112s # GLib-DEBUG: PCRE2 JIT stack limit reached, falling back to non-optimized matching. 1112s ok 252 /regex/match-simple-optimized/165 1112s # End of match-simple-optimized tests 1112s # Start of match tests 1112s ok 253 /regex/match/166 1112s ok 254 /regex/match/167 1112s ok 255 /regex/match/168 1112s ok 256 /regex/match/169 1112s ok 257 /regex/match/170 1112s ok 258 /regex/match/171 1112s ok 259 /regex/match/172 1112s ok 260 /regex/match/173 1112s ok 261 /regex/match/174 1112s ok 262 /regex/match/175 1112s ok 263 /regex/match/176 1112s ok 264 /regex/match/177 1112s ok 265 /regex/match/178 1112s ok 266 /regex/match/179 1112s ok 267 /regex/match/180 1112s ok 268 /regex/match/181 1112s ok 269 /regex/match/182 1112s ok 270 /regex/match/183 1112s ok 271 /regex/match/184 1112s ok 272 /regex/match/185 1112s ok 273 /regex/match/186 1112s ok 274 /regex/match/187 1112s ok 275 /regex/match/188 1112s ok 276 /regex/match/189 1112s ok 277 /regex/match/190 1112s ok 278 /regex/match/191 1112s ok 279 /regex/match/192 1112s ok 280 /regex/match/193 1112s ok 281 /regex/match/194 1112s ok 282 /regex/match/195 1112s ok 283 /regex/match/196 1112s ok 284 /regex/match/197 1112s ok 285 /regex/match/198 1112s ok 286 /regex/match/199 1112s ok 287 /regex/match/200 1112s ok 288 /regex/match/201 1112s ok 289 /regex/match/202 1112s ok 290 /regex/match/203 1112s ok 291 /regex/match/204 1112s ok 292 /regex/match/205 1112s ok 293 /regex/match/206 1112s ok 294 /regex/match/207 1112s ok 295 /regex/match/208 1112s ok 296 /regex/match/209 1112s ok 297 /regex/match/210 1112s ok 298 /regex/match/211 1112s ok 299 /regex/match/212 1112s ok 300 /regex/match/213 1112s ok 301 /regex/match/214 1112s ok 302 /regex/match/215 1112s ok 303 /regex/match/216 1112s ok 304 /regex/match/217 1112s ok 305 /regex/match/218 1112s ok 306 /regex/match/219 1112s ok 307 /regex/match/220 1112s ok 308 /regex/match/221 1112s ok 309 /regex/match/222 1112s ok 310 /regex/match/223 1112s ok 311 /regex/match/224 1112s ok 312 /regex/match/225 1112s ok 313 /regex/match/226 1112s ok 314 /regex/match/227 1112s ok 315 /regex/match/228 1112s ok 316 /regex/match/229 1112s ok 317 /regex/match/230 1112s ok 318 /regex/match/231 1112s ok 319 /regex/match/232 1112s ok 320 /regex/match/233 1112s ok 321 /regex/match/234 1112s ok 322 /regex/match/235 1112s ok 323 /regex/match/236 1112s ok 324 /regex/match/237 1112s ok 325 /regex/match/238 1112s ok 326 /regex/match/239 1112s ok 327 /regex/match/240 1112s ok 328 /regex/match/241 1112s ok 329 /regex/match/242 1112s ok 330 /regex/match/243 1112s ok 331 /regex/match/244 1112s ok 332 /regex/match/245 1112s ok 333 /regex/match/246 1112s ok 334 /regex/match/247 1112s ok 335 /regex/match/partial282 1112s ok 336 /regex/match/partial283 1112s ok 337 /regex/match/partial284 1112s ok 338 /regex/match/partial285 1112s ok 339 /regex/match/partial286 1112s ok 340 /regex/match/partial287 1112s ok 341 /regex/match/partial288 1112s ok 342 /regex/match/partial289 1112s ok 343 /regex/match/partial290 1112s ok 344 /regex/match/partial291 1112s ok 345 /regex/match/partial292 1112s ok 346 /regex/match/partial293 1112s ok 347 /regex/match/partial294 1112s ok 348 /regex/match/partial295 1112s ok 349 /regex/match/partial296 1112s ok 350 /regex/match/partial297 1112s ok 351 /regex/match/partial298 1112s ok 352 /regex/match/partial299 1112s ok 353 /regex/match/partial300 1112s ok 354 /regex/match/partial301 1112s ok 355 /regex/match/partial302 1112s ok 356 /regex/match/partial303 1112s # Start of next0 tests 1112s ok 357 /regex/match/next0/248 1112s ok 358 /regex/match/next0/249 1112s ok 359 /regex/match/next0/250 1112s ok 360 /regex/match/next0/251 1112s # End of next0 tests 1112s # Start of next1 tests 1112s ok 361 /regex/match/next1/252 1112s ok 362 /regex/match/next1/253 1112s ok 363 /regex/match/next1/254 1112s ok 364 /regex/match/next1/255 1112s ok 365 /regex/match/next1/256 1112s # End of next1 tests 1112s # Start of next2 tests 1112s ok 366 /regex/match/next2/257 1112s ok 367 /regex/match/next2/258 1112s ok 368 /regex/match/next2/259 1112s ok 369 /regex/match/next2/260 1112s ok 370 /regex/match/next2/261 1112s ok 371 /regex/match/next2/262 1112s ok 372 /regex/match/next2/263 1112s ok 373 /regex/match/next2/264 1112s # End of next2 tests 1112s # Start of next3 tests 1112s ok 374 /regex/match/next3/265 1112s ok 375 /regex/match/next3/266 1112s ok 376 /regex/match/next3/267 1112s ok 377 /regex/match/next3/268 1112s ok 378 /regex/match/next3/269 1112s ok 379 /regex/match/next3/270 1112s # End of next3 tests 1112s # Start of next4 tests 1112s ok 380 /regex/match/next4/271 1112s # End of next4 tests 1112s # Start of count tests 1112s ok 381 /regex/match/count/272 1112s ok 382 /regex/match/count/273 1112s ok 383 /regex/match/count/274 1112s ok 384 /regex/match/count/275 1112s ok 385 /regex/match/count/276 1112s ok 386 /regex/match/count/277 1112s ok 387 /regex/match/count/278 1112s ok 388 /regex/match/count/279 1112s ok 389 /regex/match/count/280 1112s ok 390 /regex/match/count/281 1112s # End of count tests 1112s # Start of count-optimized tests 1112s ok 391 /regex/match/count-optimized/272 1112s ok 392 /regex/match/count-optimized/273 1112s ok 393 /regex/match/count-optimized/274 1112s ok 394 /regex/match/count-optimized/275 1112s ok 395 /regex/match/count-optimized/276 1112s ok 396 /regex/match/count-optimized/277 1112s ok 397 /regex/match/count-optimized/278 1112s ok 398 /regex/match/count-optimized/279 1112s ok 399 /regex/match/count-optimized/280 1112s ok 400 /regex/match/count-optimized/281 1112s # End of count-optimized tests 1112s # Start of partial-optimized tests 1112s ok 401 /regex/match/partial-optimized/282 1112s ok 402 /regex/match/partial-optimized/283 1112s ok 403 /regex/match/partial-optimized/284 1112s ok 404 /regex/match/partial-optimized/285 1112s ok 405 /regex/match/partial-optimized/286 1112s ok 406 /regex/match/partial-optimized/287 1112s ok 407 /regex/match/partial-optimized/288 1112s ok 408 /regex/match/partial-optimized/289 1112s ok 409 /regex/match/partial-optimized/290 1112s ok 410 /regex/match/partial-optimized/291 1112s ok 411 /regex/match/partial-optimized/292 1112s ok 412 /regex/match/partial-optimized/293 1112s ok 413 /regex/match/partial-optimized/294 1112s ok 414 /regex/match/partial-optimized/295 1112s ok 415 /regex/match/partial-optimized/296 1112s ok 416 /regex/match/partial-optimized/297 1112s ok 417 /regex/match/partial-optimized/298 1112s ok 418 /regex/match/partial-optimized/299 1112s ok 419 /regex/match/partial-optimized/300 1112s ok 420 /regex/match/partial-optimized/301 1112s ok 421 /regex/match/partial-optimized/302 1112s ok 422 /regex/match/partial-optimized/303 1112s # End of partial-optimized tests 1112s # Start of subpattern tests 1112s ok 423 /regex/match/subpattern/304 1112s ok 424 /regex/match/subpattern/305 1112s ok 425 /regex/match/subpattern/306 1112s ok 426 /regex/match/subpattern/307 1112s ok 427 /regex/match/subpattern/308 1112s ok 428 /regex/match/subpattern/309 1112s ok 429 /regex/match/subpattern/310 1112s ok 430 /regex/match/subpattern/311 1112s ok 431 /regex/match/subpattern/312 1112s ok 432 /regex/match/subpattern/313 1112s ok 433 /regex/match/subpattern/314 1112s ok 434 /regex/match/subpattern/315 1112s ok 435 /regex/match/subpattern/316 1112s # Start of named tests 1112s # Start of dupnames tests 1112s ok 436 /regex/match/subpattern/named/dupnames/326 1112s ok 437 /regex/match/subpattern/named/dupnames/327 1112s ok 438 /regex/match/subpattern/named/dupnames/328 1112s ok 439 /regex/match/subpattern/named/dupnames/329 1112s ok 440 /regex/match/subpattern/named/dupnames/330 1112s # End of dupnames tests 1112s # End of named tests 1112s # End of subpattern tests 1112s # Start of subpattern-optimized tests 1112s ok 441 /regex/match/subpattern-optimized/304 1112s ok 442 /regex/match/subpattern-optimized/305 1112s ok 443 /regex/match/subpattern-optimized/306 1112s ok 444 /regex/match/subpattern-optimized/307 1112s ok 445 /regex/match/subpattern-optimized/308 1112s ok 446 /regex/match/subpattern-optimized/309 1112s ok 447 /regex/match/subpattern-optimized/310 1112s ok 448 /regex/match/subpattern-optimized/311 1112s ok 449 /regex/match/subpattern-optimized/312 1112s ok 450 /regex/match/subpattern-optimized/313 1112s ok 451 /regex/match/subpattern-optimized/314 1112s ok 452 /regex/match/subpattern-optimized/315 1112s ok 453 /regex/match/subpattern-optimized/316 1112s # End of subpattern-optimized tests 1112s # Start of named tests 1112s # Start of subpattern tests 1112s ok 454 /regex/match/named/subpattern/317 1112s ok 455 /regex/match/named/subpattern/318 1112s ok 456 /regex/match/named/subpattern/319 1112s ok 457 /regex/match/named/subpattern/320 1112s ok 458 /regex/match/named/subpattern/321 1112s ok 459 /regex/match/named/subpattern/322 1112s ok 460 /regex/match/named/subpattern/323 1112s ok 461 /regex/match/named/subpattern/324 1112s ok 462 /regex/match/named/subpattern/325 1112s ok 463 /regex/match/named/subpattern/331 1112s ok 464 /regex/match/named/subpattern/332 1112s ok 465 /regex/match/named/subpattern/333 1112s ok 466 /regex/match/named/subpattern/334 1112s ok 467 /regex/match/named/subpattern/335 1112s # End of subpattern tests 1112s # End of named tests 1112s # End of match tests 1112s # Start of match-optimized tests 1112s ok 468 /regex/match-optimized/166 1112s ok 469 /regex/match-optimized/167 1112s ok 470 /regex/match-optimized/168 1112s ok 471 /regex/match-optimized/169 1112s ok 472 /regex/match-optimized/170 1112s ok 473 /regex/match-optimized/171 1112s ok 474 /regex/match-optimized/172 1112s ok 475 /regex/match-optimized/173 1112s ok 476 /regex/match-optimized/174 1112s ok 477 /regex/match-optimized/175 1112s ok 478 /regex/match-optimized/176 1112s ok 479 /regex/match-optimized/177 1112s ok 480 /regex/match-optimized/178 1112s ok 481 /regex/match-optimized/179 1112s ok 482 /regex/match-optimized/180 1112s ok 483 /regex/match-optimized/181 1112s ok 484 /regex/match-optimized/182 1112s ok 485 /regex/match-optimized/183 1112s ok 486 /regex/match-optimized/184 1112s ok 487 /regex/match-optimized/185 1112s ok 488 /regex/match-optimized/186 1112s ok 489 /regex/match-optimized/187 1112s ok 490 /regex/match-optimized/188 1112s ok 491 /regex/match-optimized/189 1112s ok 492 /regex/match-optimized/190 1112s ok 493 /regex/match-optimized/191 1112s ok 494 /regex/match-optimized/192 1112s ok 495 /regex/match-optimized/193 1112s ok 496 /regex/match-optimized/194 1112s ok 497 /regex/match-optimized/195 1112s ok 498 /regex/match-optimized/196 1112s ok 499 /regex/match-optimized/197 1112s ok 500 /regex/match-optimized/198 1112s ok 501 /regex/match-optimized/199 1112s ok 502 /regex/match-optimized/200 1112s ok 503 /regex/match-optimized/201 1112s ok 504 /regex/match-optimized/202 1112s ok 505 /regex/match-optimized/203 1112s ok 506 /regex/match-optimized/204 1112s ok 507 /regex/match-optimized/205 1112s ok 508 /regex/match-optimized/206 1112s ok 509 /regex/match-optimized/207 1112s ok 510 /regex/match-optimized/208 1112s ok 511 /regex/match-optimized/209 1112s ok 512 /regex/match-optimized/210 1112s ok 513 /regex/match-optimized/211 1112s ok 514 /regex/match-optimized/212 1112s ok 515 /regex/match-optimized/213 1112s ok 516 /regex/match-optimized/214 1112s ok 517 /regex/match-optimized/215 1112s ok 518 /regex/match-optimized/216 1112s ok 519 /regex/match-optimized/217 1112s ok 520 /regex/match-optimized/218 1112s ok 521 /regex/match-optimized/219 1112s ok 522 /regex/match-optimized/220 1112s ok 523 /regex/match-optimized/221 1112s ok 524 /regex/match-optimized/222 1112s ok 525 /regex/match-optimized/223 1112s ok 526 /regex/match-optimized/224 1112s ok 527 /regex/match-optimized/225 1112s ok 528 /regex/match-optimized/226 1112s ok 529 /regex/match-optimized/227 1112s ok 530 /regex/match-optimized/228 1112s ok 531 /regex/match-optimized/229 1112s ok 532 /regex/match-optimized/230 1112s ok 533 /regex/match-optimized/231 1112s ok 534 /regex/match-optimized/232 1112s ok 535 /regex/match-optimized/233 1112s ok 536 /regex/match-optimized/234 1112s ok 537 /regex/match-optimized/235 1112s ok 538 /regex/match-optimized/236 1112s ok 539 /regex/match-optimized/237 1112s ok 540 /regex/match-optimized/238 1112s ok 541 /regex/match-optimized/239 1112s ok 542 /regex/match-optimized/240 1112s ok 543 /regex/match-optimized/241 1112s ok 544 /regex/match-optimized/242 1112s ok 545 /regex/match-optimized/243 1112s ok 546 /regex/match-optimized/244 1112s ok 547 /regex/match-optimized/245 1112s ok 548 /regex/match-optimized/246 1112s ok 549 /regex/match-optimized/247 1112s # End of match-optimized tests 1112s # Start of fetch-all0 tests 1112s ok 550 /regex/fetch-all0/336 1112s ok 551 /regex/fetch-all0/337 1112s # End of fetch-all0 tests 1112s # Start of fetch-all1 tests 1112s ok 552 /regex/fetch-all1/338 1112s ok 553 /regex/fetch-all1/339 1112s ok 554 /regex/fetch-all1/340 1112s # End of fetch-all1 tests 1112s # Start of fetch-all2 tests 1112s ok 555 /regex/fetch-all2/341 1112s ok 556 /regex/fetch-all2/342 1112s ok 557 /regex/fetch-all2/343 1112s # End of fetch-all2 tests 1112s # Start of fetch-all3 tests 1112s ok 558 /regex/fetch-all3/344 1112s ok 559 /regex/fetch-all3/345 1112s ok 560 /regex/fetch-all3/346 1112s ok 561 /regex/fetch-all3/347 1112s ok 562 /regex/fetch-all3/348 1112s # End of fetch-all3 tests 1112s # Start of split tests 1112s # Start of simple0 tests 1112s ok 563 /regex/split/simple0/349 1112s ok 564 /regex/split/simple0/350 1112s ok 565 /regex/split/simple0/365 1112s ok 566 /regex/split/simple0/366 1112s # End of simple0 tests 1112s # Start of simple1 tests 1112s ok 567 /regex/split/simple1/351 1112s ok 568 /regex/split/simple1/352 1112s # End of simple1 tests 1112s # Start of simple2 tests 1112s ok 569 /regex/split/simple2/353 1112s ok 570 /regex/split/simple2/359 1112s ok 571 /regex/split/simple2/361 1112s # End of simple2 tests 1112s # Start of simple3 tests 1112s ok 572 /regex/split/simple3/354 1112s ok 573 /regex/split/simple3/355 1112s ok 574 /regex/split/simple3/356 1112s ok 575 /regex/split/simple3/357 1112s ok 576 /regex/split/simple3/358 1112s ok 577 /regex/split/simple3/360 1112s ok 578 /regex/split/simple3/362 1112s ok 579 /regex/split/simple3/363 1112s ok 580 /regex/split/simple3/364 1112s # End of simple3 tests 1112s # End of split tests 1112s # Start of split0 tests 1112s ok 581 /regex/split0/367 1112s ok 582 /regex/split0/369 1112s # End of split0 tests 1112s # Start of full-split0 tests 1112s ok 583 /regex/full-split0/368 1112s ok 584 /regex/full-split0/370 1112s ok 585 /regex/full-split0/371 1112s ok 586 /regex/full-split0/372 1112s ok 587 /regex/full-split0/373 1112s # End of full-split0 tests 1112s # Start of split1 tests 1112s ok 588 /regex/split1/374 1112s ok 589 /regex/split1/377 1112s # End of split1 tests 1112s # Start of full-split1 tests 1112s ok 590 /regex/full-split1/375 1112s ok 591 /regex/full-split1/376 1112s ok 592 /regex/full-split1/378 1112s ok 593 /regex/full-split1/379 1112s ok 594 /regex/full-split1/405 1112s # End of full-split1 tests 1112s # Start of split2 tests 1112s ok 595 /regex/split2/380 1112s ok 596 /regex/split2/384 1112s ok 597 /regex/split2/396 1112s # End of split2 tests 1112s # Start of full-split2 tests 1112s ok 598 /regex/full-split2/381 1112s ok 599 /regex/full-split2/382 1112s ok 600 /regex/full-split2/383 1112s ok 601 /regex/full-split2/385 1112s ok 602 /regex/full-split2/397 1112s ok 603 /regex/full-split2/400 1112s ok 604 /regex/full-split2/406 1112s # End of full-split2 tests 1112s # Start of split3 tests 1112s ok 605 /regex/split3/386 1112s ok 606 /regex/split3/388 1112s ok 607 /regex/split3/390 1112s ok 608 /regex/split3/392 1112s ok 609 /regex/split3/394 1112s ok 610 /regex/split3/398 1112s ok 611 /regex/split3/401 1112s ok 612 /regex/split3/403 1112s # End of split3 tests 1112s # Start of full-split3 tests 1112s ok 613 /regex/full-split3/387 1112s ok 614 /regex/full-split3/389 1112s ok 615 /regex/full-split3/391 1112s ok 616 /regex/full-split3/393 1112s ok 617 /regex/full-split3/395 1112s ok 618 /regex/full-split3/399 1112s ok 619 /regex/full-split3/402 1112s ok 620 /regex/full-split3/404 1112s ok 621 /regex/full-split3/407 1112s ok 622 /regex/full-split3/408 1112s # End of full-split3 tests 1112s # Start of check-repacement tests 1112s ok 623 /regex/check-repacement/409 1112s ok 624 /regex/check-repacement/410 1112s ok 625 /regex/check-repacement/411 1112s ok 626 /regex/check-repacement/412 1112s ok 627 /regex/check-repacement/413 1112s ok 628 /regex/check-repacement/414 1112s ok 629 /regex/check-repacement/415 1112s ok 630 /regex/check-repacement/416 1112s # End of check-repacement tests 1112s # Start of expand tests 1112s ok 631 /regex/expand/417 1112s ok 632 /regex/expand/418 1112s ok 633 /regex/expand/419 1112s ok 634 /regex/expand/420 1112s ok 635 /regex/expand/421 1112s ok 636 /regex/expand/422 1112s ok 637 /regex/expand/423 1112s ok 638 /regex/expand/424 1112s ok 639 /regex/expand/425 1112s ok 640 /regex/expand/426 1112s ok 641 /regex/expand/427 1112s ok 642 /regex/expand/428 1112s ok 643 /regex/expand/429 1112s ok 644 /regex/expand/430 1112s ok 645 /regex/expand/431 1112s ok 646 /regex/expand/432 1112s ok 647 /regex/expand/433 1112s ok 648 /regex/expand/434 1112s ok 649 /regex/expand/435 1112s ok 650 /regex/expand/436 1112s ok 651 /regex/expand/437 1112s ok 652 /regex/expand/438 1112s ok 653 /regex/expand/439 1112s ok 654 /regex/expand/440 1112s ok 655 /regex/expand/441 1112s ok 656 /regex/expand/442 1112s ok 657 /regex/expand/443 1112s ok 658 /regex/expand/444 1112s ok 659 /regex/expand/445 1112s ok 660 /regex/expand/446 1112s ok 661 /regex/expand/447 1112s ok 662 /regex/expand/448 1112s ok 663 /regex/expand/449 1112s ok 664 /regex/expand/450 1112s ok 665 /regex/expand/451 1112s ok 666 /regex/expand/452 1112s ok 667 /regex/expand/453 1112s ok 668 /regex/expand/454 1112s ok 669 /regex/expand/455 1112s ok 670 /regex/expand/456 1112s ok 671 /regex/expand/457 1112s ok 672 /regex/expand/458 1112s ok 673 /regex/expand/459 1112s ok 674 /regex/expand/460 1112s ok 675 /regex/expand/461 1112s ok 676 /regex/expand/462 1112s ok 677 /regex/expand/463 1112s ok 678 /regex/expand/464 1112s ok 679 /regex/expand/465 1112s ok 680 /regex/expand/466 1112s ok 681 /regex/expand/467 1112s ok 682 /regex/expand/468 1112s ok 683 /regex/expand/469 1112s ok 684 /regex/expand/470 1112s ok 685 /regex/expand/471 1112s ok 686 /regex/expand/472 1112s ok 687 /regex/expand/473 1112s ok 688 /regex/expand/474 1112s ok 689 /regex/expand/475 1112s ok 690 /regex/expand/476 1112s ok 691 /regex/expand/477 1112s ok 692 /regex/expand/478 1112s ok 693 /regex/expand/479 1112s ok 694 /regex/expand/480 1112s ok 695 /regex/expand/481 1112s ok 696 /regex/expand/482 1112s # End of expand tests 1112s # Start of replace tests 1112s ok 697 /regex/replace/483 1112s ok 698 /regex/replace/484 1112s ok 699 /regex/replace/485 1112s ok 700 /regex/replace/486 1112s ok 701 /regex/replace/487 1112s ok 702 /regex/replace/488 1112s ok 703 /regex/replace/489 1112s ok 704 /regex/replace/490 1112s ok 705 /regex/replace/491 1112s ok 706 /regex/replace/492 1112s ok 707 /regex/replace/493 1112s ok 708 /regex/replace/494 1112s ok 709 /regex/replace/495 1112s ok 710 /regex/replace/496 1112s ok 711 /regex/replace/497 1112s ok 712 /regex/replace/498 1112s ok 713 /regex/replace/499 1112s ok 714 /regex/replace/500 1112s ok 715 /regex/replace/501 1112s ok 716 /regex/replace/502 1112s ok - glib/regex.test 1112s # Running test: glib/gdbus-threading.test 1112s ok 717 /regex/replace/503 1112s ok 718 /regex/replace/504 1112s ok 719 /regex/replace/505 1112s ok 720 /regex/replace/506 1112s ok 721 /regex/replace/507 1112s ok 722 /regex/replace/508 1112s ok 723 /regex/replace/509 1112s ok 724 /regex/replace/510 1112s # End of replace tests 1112s # Start of replace-optimized tests 1112s ok 725 /regex/replace-optimized/483 1112s ok 726 /regex/replace-optimized/484 1112s ok 727 /regex/replace-optimized/485 1112s ok 728 /regex/replace-optimized/486 1112s ok 729 /regex/replace-optimized/487 1112s ok 730 /regex/replace-optimized/488 1112s ok 731 /regex/replace-optimized/489 1112s ok 732 /regex/replace-optimized/490 1112s ok 733 /regex/replace-optimized/491 1112s ok 734 /regex/replace-optimized/492 1112s ok 735 /regex/replace-optimized/493 1112s ok 736 /regex/replace-optimized/494 1112s ok 737 /regex/replace-optimized/495 1112s ok 738 /regex/replace-optimized/496 1112s ok 739 /regex/replace-optimized/497 1112s ok 740 /regex/replace-optimized/498 1112s ok 741 /regex/replace-optimized/499 1112s ok 742 /regex/replace-optimized/500 1112s ok 743 /regex/replace-optimized/501 1112s ok 744 /regex/replace-optimized/502 1112s ok 745 /regex/replace-optimized/503 1112s ok 746 /regex/replace-optimized/504 1112s ok 747 /regex/replace-optimized/505 1112s ok 748 /regex/replace-optimized/506 1112s ok 749 /regex/replace-optimized/507 1112s ok 750 /regex/replace-optimized/508 1112s ok 751 /regex/replace-optimized/509 1112s ok 752 /regex/replace-optimized/510 1112s # End of replace-optimized tests 1112s # Start of replace-literally tests 1112s ok 753 /regex/replace-literally/511 1112s ok 754 /regex/replace-literally/512 1112s ok 755 /regex/replace-literally/513 1112s ok 756 /regex/replace-literally/514 1112s ok 757 /regex/replace-literally/515 1112s ok 758 /regex/replace-literally/516 1112s ok 759 /regex/replace-literally/517 1112s ok 760 /regex/replace-literally/518 1112s ok 761 /regex/replace-literally/519 1112s ok 762 /regex/replace-literally/520 1112s ok 763 /regex/replace-literally/521 1112s ok 764 /regex/replace-literally/522 1112s ok 765 /regex/replace-literally/523 1112s ok 766 /regex/replace-literally/524 1112s ok 767 /regex/replace-literally/525 1112s ok 768 /regex/replace-literally/526 1112s ok 769 /regex/replace-literally/527 1112s ok 770 /regex/replace-literally/528 1112s ok 771 /regex/replace-literally/529 1112s ok 772 /regex/replace-literally/530 1112s # End of replace-literally tests 1112s # Start of string-number tests 1112s ok 773 /regex/string-number/531 1112s ok 774 /regex/string-number/532 1112s ok 775 /regex/string-number/533 1112s ok 776 /regex/string-number/534 1112s ok 777 /regex/string-number/535 1112s ok 778 /regex/string-number/536 1112s ok 779 /regex/string-number/537 1112s ok 780 /regex/string-number/538 1112s ok 781 /regex/string-number/539 1112s ok 782 /regex/string-number/540 1112s ok 783 /regex/string-number/541 1112s ok 784 /regex/string-number/542 1112s ok 785 /regex/string-number/543 1112s ok 786 /regex/string-number/544 1112s ok 787 /regex/string-number/545 1112s # End of string-number tests 1112s # Start of escape_nul tests 1112s ok 788 /regex/escape_nul/546 1112s ok 789 /regex/escape_nul/547 1112s ok 790 /regex/escape_nul/548 1112s ok 791 /regex/escape_nul/549 1112s ok 792 /regex/escape_nul/550 1112s ok 793 /regex/escape_nul/551 1112s ok 794 /regex/escape_nul/552 1112s ok 795 /regex/escape_nul/553 1112s ok 796 /regex/escape_nul/554 1112s ok 797 /regex/escape_nul/555 1112s ok 798 /regex/escape_nul/556 1112s ok 799 /regex/escape_nul/557 1112s ok 800 /regex/escape_nul/558 1112s ok 801 /regex/escape_nul/559 1112s ok 802 /regex/escape_nul/560 1112s # End of escape_nul tests 1112s # Start of escape tests 1112s ok 803 /regex/escape/561 1112s ok 804 /regex/escape/562 1112s ok 805 /regex/escape/563 1112s ok 806 /regex/escape/564 1112s ok 807 /regex/escape/565 1112s ok 808 /regex/escape/566 1112s ok 809 /regex/escape/567 1112s ok 810 /regex/escape/568 1112s ok 811 /regex/escape/569 1112s ok 812 /regex/escape/570 1112s ok 813 /regex/escape/571 1112s ok 814 /regex/escape/572 1112s ok 815 /regex/escape/573 1112s ok 816 /regex/escape/574 1112s ok 817 /regex/escape/575 1112s ok 818 /regex/escape/576 1112s ok 819 /regex/escape/577 1112s ok 820 /regex/escape/578 1112s # End of escape tests 1112s # Start of match-all0 tests 1112s ok 821 /regex/match-all0/579 1112s ok 822 /regex/match-all0/581 1112s # End of match-all0 tests 1112s # Start of match-all-full0 tests 1112s ok 823 /regex/match-all-full0/580 1112s ok 824 /regex/match-all-full0/582 1112s ok 825 /regex/match-all-full0/583 1112s ok 826 /regex/match-all-full0/584 1112s # End of match-all-full0 tests 1112s # Start of match-all1 tests 1112s ok 827 /regex/match-all1/585 1112s ok 828 /regex/match-all1/587 1112s ok 829 /regex/match-all1/592 1112s # End of match-all1 tests 1112s # Start of match-all-full1 tests 1112s ok 830 /regex/match-all-full1/586 1112s ok 831 /regex/match-all-full1/588 1112s ok 832 /regex/match-all-full1/589 1112s ok 833 /regex/match-all-full1/590 1112s ok 834 /regex/match-all-full1/591 1112s ok 835 /regex/match-all-full1/593 1112s # End of match-all-full1 tests 1112s # Start of match-all2 tests 1112s ok 836 /regex/match-all2/594 1112s ok 837 /regex/match-all2/596 1112s ok 838 /regex/match-all2/598 1112s # End of match-all2 tests 1112s # Start of match-all-full2 tests 1112s ok 839 /regex/match-all-full2/595 1112s ok 840 /regex/match-all-full2/597 1112s ok 841 /regex/match-all-full2/599 1112s # End of match-all-full2 tests 1112s # Start of match-all3 tests 1112s ok 842 /regex/match-all3/600 1112s ok 843 /regex/match-all3/602 1112s # End of match-all3 tests 1112s # Start of match-all-full3 tests 1112s ok 844 /regex/match-all-full3/601 1112s ok 845 /regex/match-all-full3/603 1112s # End of match-all-full3 tests 1112s # Start of match-notempty tests 1112s ok 846 /regex/match-notempty/604 1112s # End of match-notempty tests 1112s # Start of match-notempty-optimized tests 1112s ok 847 /regex/match-notempty-optimized/604 1112s # End of match-notempty-optimized tests 1112s # Start of match-notempty-atstart tests 1112s ok 848 /regex/match-notempty-atstart/605 1112s # End of match-notempty-atstart tests 1112s # Start of match-notempty-atstart-optimized tests 1112s ok 849 /regex/match-notempty-atstart-optimized/605 1112s # End of match-notempty-atstart-optimized tests 1112s # End of regex tests 1112s TAP version 14 1112s # random seed: R02S0602899d1f59141d43fff1af432761a3 1112s # 1..0 # SKIP all gdbus-threading tests skipped because they are too unreliable (glib#1515) 1112s ok - glib/gdbus-threading.test 1112s # Running test: glib/hmac.test 1112s TAP version 14 1112s # random seed: R02S4f15c722c47a50048686111d4352b573 1112s 1..37 1112s # Start of hmac tests 1112s ok 1 /hmac/sha1-1 1112s ok 2 /hmac/sha1-2 1112s ok 3 /hmac/sha1-3 1112s ok 4 /hmac/sha1-4 1112s ok 5 /hmac/sha1-5 1112s ok 6 /hmac/sha1-6 1112s ok 7 /hmac/sha1-7 1112s ok 8 /hmac/sha256-1 1112s ok 9 /hmac/sha256-2 1112s ok 10 /hmac/sha256-3 1112s ok 11 /hmac/sha256-4 1112s ok 12 /hmac/sha256-5 1112s ok 13 /hmac/sha256-6 1112s ok 14 /hmac/sha384-1 1112s ok 15 /hmac/sha384-2 1112s ok 16 /hmac/sha384-3 1112s ok 17 /hmac/sha384-4 1112s ok 18 /hmac/sha384-5 1112s ok 19 /hmac/sha384-6 1112s ok 20 /hmac/sha512-1 1112s ok 21 /hmac/sha512-2 1112s ok 22 /hmac/sha512-3 1112s ok 23 /hmac/sha512-4 1112s ok 24 /hmac/sha512-5 1112s ok 25 /hmac/sha512-6 1112s ok 26 /hmac/md5-1 1112s ok 27 /hmac/md5-2 1112s ok 28 /hmac/md5-3 1112s ok 29 /hmac/md5-4 1112s ok 30 /hmac/md5-5 1112s ok 31 /hmac/md5-6 1112s ok 32 /hmac/md5-7 1112s ok 33 /hmac/ref-unref 1112s ok 34 /hmac/copy 1112s ok 35 /hmac/for-data 1112s ok 36 /hmac/for-string 1112s ok 37 /hmac/for-bytes 1112s # End of hmac tests 1112s ok - glib/hmac.test 1112s # Running test: glib/environment.test 1112s TAP version 14 1112s # random seed: R02S7f604330d6262ad5951c64504ee26838 1112s 1..7 1112s # Start of environ tests 1112s # /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. 1112s ok 1 /environ/listenv 1112s # /environ/getenv summary: Test setting an environment variable using g_setenv(), and that the updated value is queryable using g_getenv(). 1112s ok 2 /environ/getenv 1112s ok - glib/environment.test 1112s ok 3 /environ/setenv 1112s # /environ/array summary: Test getting and setting variables on a local envp array (rather than the global envp). 1112s ok 4 /environ/array 1112s # /environ/null summary: Test getting and setting variables on a NULL envp array. 1112s ok 5 /environ/null 1112s # /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. 1112s ok 6 /environ/case 1112s # /environ/expansion summary: Test expansion of environment variable references. 1112s ok 7 /environ/expansion # SKIP Environment variable expansion is only supported on Windows 1112s # End of environ tests 1112s # Running test: glib/gdbus-close-pending.test 1112s TAP version 14 1112s # random seed: R02Se5e6b5fe9c6ac1e3722774b9f9d49f6e 1112s 1..2 1112s # Start of gdbus tests 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/close-pending/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/close-pending/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/close-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_GVAAK3/gdbus/close-pending/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/close-pending/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/close-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_GVAAK3/gdbus/close-pending/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/close-pending/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/close-pending/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/close-pending/.dirs/runtime 1112s ok 1 /gdbus/close-pending 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/unref-pending/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/unref-pending/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/unref-pending/.dirs/system-config1:/tmp/test_gdbus-close-pending_GVAAK3/gdbus/unref-pending/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/unref-pending/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/unref-pending/.dirs/system-data1:/tmp/test_gdbus-close-pending_GVAAK3/gdbus/unref-pending/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/unref-pending/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/unref-pending/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-close-pending_GVAAK3/gdbus/unref-pending/.dirs/runtime 1112s ok 2 /gdbus/unref-pending 1112s # End of gdbus tests 1112s ok - glib/gdbus-close-pending.test 1112s # Running test: glib/custom-dispatch.test 1112s TAP version 14 1112s # random seed: R02S146171f9c6083ffd1b2d6a3396fab0b1 1112s 1..2 1112s # Start of properties tests 1112s # Start of custom-dispatch tests 1112s # /properties/custom-dispatch/init summary: Test that custom dispatch_properties_changed is called on initialization 1112s ok 1 /properties/custom-dispatch/init 1112s # /properties/custom-dispatch/set summary: Test that custom dispatch_properties_changed is called regardless of connected notify handlers 1112s ok 2 /properties/custom-dispatch/set 1112s # End of custom-dispatch tests 1112s # End of properties tests 1112s ok - glib/custom-dispatch.test 1112s # Running test: glib/gdbus-bz627724.test 1112s TAP version 14 1112s # random seed: R02Sf374b0513b1f59681229e79f47ad2613 1112s 1..1 1112s # Start of gdbus tests 1112s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-bz627724_UASGK3/gdbus/bz627724/.dirs/home 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-bz627724_UASGK3/gdbus/bz627724/.dirs/cache 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-bz627724_UASGK3/gdbus/bz627724/.dirs/system-config1:/tmp/test_gdbus-bz627724_UASGK3/gdbus/bz627724/.dirs/system-config2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-bz627724_UASGK3/gdbus/bz627724/.dirs/config 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-bz627724_UASGK3/gdbus/bz627724/.dirs/system-data1:/tmp/test_gdbus-bz627724_UASGK3/gdbus/bz627724/.dirs/system-data2 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-bz627724_UASGK3/gdbus/bz627724/.dirs/data 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-bz627724_UASGK3/gdbus/bz627724/.dirs/state 1112s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-bz627724_UASGK3/gdbus/bz627724/.dirs/runtime 1112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1112s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1112s ok 1 /gdbus/bz627724 1112s # End of gdbus tests 1112s ok - glib/gdbus-bz627724.test 1112s # Running test: glib/hostutils.test 1112s TAP version 14 1112s # random seed: R02S8146d16f84c0ccb439092773468b41f8 1112s 1..4 1112s # Start of hostutils tests 1112s ok 1 /hostutils/hostname_is_non_ascii 1112s ok 2 /hostutils/to_ascii 1112s ok 3 /hostutils/to_unicode 1112s ok 4 /hostutils/is_ip_addr 1112s # End of hostutils tests 1112s ok - glib/hostutils.test 1112s # Running test: glib/base64.test 1112s TAP version 14 1112s # random seed: R02Sc167f522da6b850c3ab61f067ecf0be4 1112s 1..28 1112s # Start of base64 tests 1112s ok 1 /base64/encode 1112s ok 2 /base64/decode 1112s ok 3 /base64/decode-inplace 1112s ok 4 /base64/encode-decode 1112s # Start of full tests 1112s ok 5 /base64/full/1 1112s ok 6 /base64/full/2 1112s ok 7 /base64/full/3 1112s ok 8 /base64/full/4 1112s # End of full tests 1112s # Start of encode tests 1112s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1112s ok 9 /base64/encode/empty 1112s # Start of incremental tests 1112s # Start of small-block tests 1112s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1112s ok 10 /base64/encode/incremental/small-block/1 1112s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1112s ok 11 /base64/encode/incremental/small-block/2 1112s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1112s ok 12 /base64/encode/incremental/small-block/3 1112s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=780066 1112s ok 13 /base64/encode/incremental/small-block/4 1112s # End of small-block tests 1112s # End of incremental tests 1112s # End of encode tests 1112s # Start of incremental tests 1112s # Start of nobreak tests 1112s ok 14 /base64/incremental/nobreak/1 1112s ok 15 /base64/incremental/nobreak/2 1112s ok 16 /base64/incremental/nobreak/3 1112s ok 17 /base64/incremental/nobreak/4-a 1112s ok 18 /base64/incremental/nobreak/4-b 1112s ok 19 /base64/incremental/nobreak/4-c 1112s # End of nobreak tests 1112s # Start of break tests 1112s ok - glib/base64.test 1112s # Running test: glib/value.test 1112s ok 20 /base64/incremental/break/1 1112s ok 21 /base64/incremental/break/2 1112s ok 22 /base64/incremental/break/3 1112s # End of break tests 1112s # Start of smallblock tests 1112s ok 23 /base64/incremental/smallblock/1 1112s ok 24 /base64/incremental/smallblock/2 1112s ok 25 /base64/incremental/smallblock/3 1112s ok 26 /base64/incremental/smallblock/4 1112s # End of smallblock tests 1112s # End of incremental tests 1112s # Start of decode tests 1112s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1698 1112s ok 27 /base64/decode/empty 1112s # End of decode tests 1112s # Start of encode-decode tests 1112s # Vector 0: 1112s # Vector 1: f 1112s # Vector 2: fo 1112s # Vector 3: foo 1112s # Vector 4: foob 1112s # Vector 5: fooba 1112s # Vector 6: foobar 1112s ok 28 /base64/encode-decode/rfc4648 1112s # End of encode-decode tests 1112s # End of base64 tests 1112s TAP version 14 1112s # random seed: R02S63eccf034ce8a03ae6a80133c7441e13 1112s 1..9 1112s # Start of value tests 1112s ok 1 /value/basic 1112s ok 2 /value/collection 1112s ok 3 /value/copying 1112s ok 4 /value/enum-transformation 1112s ok 5 /value/gtype 1112s # /value/string summary: Test that G_TYPE_STRING GValue copy properly 1112s ok 6 /value/string 1112s # Next: GObject object in GValue of GObject to GValue of GObject 1112s # Next: GObject object in GValue of GObject to GValue of TestInterface 1112s # Next: GObject object in GValue of GObject to GValue of TestObjectA 1112s # Next: GObject object in GValue of GObject to GValue of TestObjectB 1112s # Next: GObject object in GValue of GObject to GValue of TestObjectA1 1112s # Next: GObject object in GValue of GObject to GValue of TestObjectA2 1112s # Next: TestObjectA object in GValue of GObject to GValue of GObject 1112s # Next: TestObjectA object in GValue of GObject to GValue of TestInterface 1112s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA 1112s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectB 1112s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA1 1112s # Next: TestObjectA object in GValue of GObject to GValue of TestObjectA2 1112s # Next: TestObjectA object in GValue of TestObjectA to GValue of GObject 1112s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestInterface 1112s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA 1112s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectB 1112s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA1 1112s # Next: TestObjectA object in GValue of TestObjectA to GValue of TestObjectA2 1112s # Next: TestObjectB object in GValue of GObject to GValue of GObject 1112s # Next: TestObjectB object in GValue of GObject to GValue of TestInterface 1112s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA 1112s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectB 1112s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA1 1112s # Next: TestObjectB object in GValue of GObject to GValue of TestObjectA2 1112s # Next: TestObjectB object in GValue of TestInterface to GValue of GObject 1112s # Next: TestObjectB object in GValue of TestInterface to GValue of TestInterface 1112s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA 1112s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectB 1112s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA1 1112s # Next: TestObjectB object in GValue of TestInterface to GValue of TestObjectA2 1112s # Next: TestObjectB object in GValue of TestObjectB to GValue of GObject 1112s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestInterface 1112s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA 1112s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectB 1112s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA1 1112s # Next: TestObjectB object in GValue of TestObjectB to GValue of TestObjectA2 1112s # Next: TestObjectA1 object in GValue of GObject to GValue of GObject 1112s # Next: TestObjectA1 object in GValue of GObject to GValue of TestInterface 1112s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA 1112s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectB 1112s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA1 1112s # Next: TestObjectA1 object in GValue of GObject to GValue of TestObjectA2 1112s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of GObject 1112s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestInterface 1112s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA 1112s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectB 1112s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA1 1112s # Next: TestObjectA1 object in GValue of TestObjectA to GValue of TestObjectA2 1112s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of GObject 1112s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestInterface 1112s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA 1112s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectB 1112s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA1 1112s # Next: TestObjectA1 object in GValue of TestObjectA1 to GValue of TestObjectA2 1112s # Next: TestObjectA2 object in GValue of GObject to GValue of GObject 1112s # Next: TestObjectA2 object in GValue of GObject to GValue of TestInterface 1112s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA 1112s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectB 1112s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA1 1112s # Next: TestObjectA2 object in GValue of GObject to GValue of TestObjectA2 1112s # Next: TestObjectA2 object in GValue of TestInterface to GValue of GObject 1112s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestInterface 1112s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA 1112s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectB 1112s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA1 1112s # Next: TestObjectA2 object in GValue of TestInterface to GValue of TestObjectA2 1112s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of GObject 1112s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestInterface 1112s ok - glib/value.test 1112s # Running test: glib/strvbuilder.test 1112s ok - glib/strvbuilder.test 1112s # Running test: glib/unix.test 1112s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA 1112s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectB 1112s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA1 1112s # Next: TestObjectA2 object in GValue of TestObjectA to GValue of TestObjectA2 1112s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of GObject 1112s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestInterface 1112s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA 1112s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectB 1112s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA1 1112s # Next: TestObjectA2 object in GValue of TestObjectA2 to GValue of TestObjectA2 1112s ok 7 /value/transform-object 1112s # Start of array tests 1112s ok 8 /value/array/basic 1112s ok 9 /value/array/sort-with-data 1112s # End of array tests 1112s # End of value tests 1112s TAP version 14 1112s # random seed: R02Sb6743fffe9a43c24616f9b1a1fa12e78 1112s 1..7 1112s # Start of strvbuilder tests 1112s ok 1 /strvbuilder/empty 1112s ok 2 /strvbuilder/add 1112s ok 3 /strvbuilder/addv 1112s ok 4 /strvbuilder/add_many 1112s ok 5 /strvbuilder/take 1112s ok 6 /strvbuilder/ref 1112s ok 7 /strvbuilder/unref_to_strv 1112s # End of strvbuilder tests 1112s TAP version 14 1112s # random seed: R02S0ea34b944e1359e510ed81df25ae3c8f 1112s 1..20 1112s # Start of glib-unix tests 1112s # /glib-unix/closefrom summary: Test g_closefrom(), g_fdwalk_set_cloexec() 1112s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3247 1112s ok 1 /glib-unix/closefrom 1112s ok 2 /glib-unix/pipe 1112s # /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 1112s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2795 1112s ok 3 /glib-unix/pipe-stdio-overwrite 1112s # /glib-unix/pipe-struct summary: Test GUnixPipe structure 1112s ok 4 /glib-unix/pipe-struct 1112s # /glib-unix/pipe-struct-auto summary: Test g_auto(GUnixPipe) 1112s ok 5 /glib-unix/pipe-struct-auto 1112s ok 6 /glib-unix/error 1112s ok 7 /glib-unix/nonblocking 1113s # Executing: glib/unix.test 1113s ok 8 /glib-unix/sighup 1113s # slow test /glib-unix/sighup executed in 0.50 secs 1113s ok 9 /glib-unix/sigterm 1113s # slow test /glib-unix/sigterm executed in 0.50 secs 1114s ok 10 /glib-unix/sighup_again 1114s # slow test /glib-unix/sighup_again executed in 0.50 secs 1114s ok 11 /glib-unix/sighup_add_remove 1114s ok 12 /glib-unix/sighup_nested 1116s ok 13 /glib-unix/callback_after_signal 1116s # slow test /glib-unix/callback_after_signal executed in 2.00 secs 1116s ok 14 /glib-unix/child-wait 1116s # Start of closefrom tests 1116s # Start of subprocess tests 1116s # End of subprocess tests 1116s # End of closefrom tests 1116s # Start of pipe tests 1116s # /glib-unix/pipe/fd-cloexec summary: Test that FD_CLOEXEC is still accepted as an argument to g_unix_open_pipe() 1116s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3459 1116s # GLib-DEBUG: g_unix_open_pipe() called with FD_CLOEXEC; please migrate to using O_CLOEXEC instead 1116s ok 15 /glib-unix/pipe/fd-cloexec 1116s # End of pipe tests 1116s # Start of sighup tests 1117s ok 16 /glib-unix/sighup/alternate-stack 1117s # slow test /glib-unix/sighup/alternate-stack executed in 1.01 secs 1117s # End of sighup tests 1117s # Start of sigterm tests 1118s # Executing: glib/unix.test 1118s ok 17 /glib-unix/sigterm/alternate-stack 1118s # slow test /glib-unix/sigterm/alternate-stack executed in 1.01 secs 1118s # End of sigterm tests 1118s # Start of sighup_again tests 1119s ok 18 /glib-unix/sighup_again/alternate-stack 1119s # slow test /glib-unix/sighup_again/alternate-stack executed in 1.01 secs 1119s # End of sighup_again tests 1119s # Start of get-passwd-entry tests 1119s # /glib-unix/get-passwd-entry/root summary: Tests that g_unix_get_passwd_entry() works for a known-existing username. 1119s ok 19 /glib-unix/get-passwd-entry/root 1119s # /glib-unix/get-passwd-entry/nonexistent summary: Tests that g_unix_get_passwd_entry() returns an error for a nonexistent username. 1119s ok 20 /glib-unix/get-passwd-entry/nonexistent 1119s # End of get-passwd-entry tests 1119s # End of glib-unix tests 1119s ok - glib/unix.test 1119s # Running test: glib/tls-database.test 1119s TAP version 14 1119s # random seed: R02Sfd51e6706f70d39348bff36c9cdee04f 1119s 1..1 1119s # Start of tls-backend tests 1119s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1119s ok 1 /tls-backend/set-default-database 1119s # End of tls-backend tests 1119s ok - glib/tls-database.test 1119s # Running test: glib/dbus-appinfo.test 1119s TAP version 14 1119s # random seed: R02S1f79a96dfa4adb95a470fb85947595d3 1119s 1..7 1119s # Start of appinfo tests 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/dbusappinfo/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/dbusappinfo/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/dbusappinfo/.dirs/system-config1:/tmp/test_dbus-appinfo_SVZ7J3/appinfo/dbusappinfo/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/dbusappinfo/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/dbusappinfo/.dirs/system-data1:/tmp/test_dbus-appinfo_SVZ7J3/appinfo/dbusappinfo/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/dbusappinfo/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/dbusappinfo/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/dbusappinfo/.dirs/runtime 1119s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1119s ok 1 /appinfo/dbusappinfo 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-doc-export/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-doc-export/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-doc-export/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-doc-export/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-doc-export/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-doc-export/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-doc-export/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-doc-export/.dirs/runtime 1119s # /appinfo/flatpak-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1119s # Acquired a message bus connection 1119s # Acquired the name org.freedesktop.portal.Documents 1119s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_SVZ7J3/appinfo/dbusappinfo/.dirs/config to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-doc-export/.dirs/config 1119s # on_flatpak_open received file '/document-portal/document-id/org.gtk.test.dbusappinfo.flatpak.desktop' 1119s # fake-document-portal cancelled 1119s ok 2 /appinfo/flatpak-doc-export 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-missing-doc-export/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-missing-doc-export/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-missing-doc-export/.dirs/system-config1:/tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-missing-doc-export/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-missing-doc-export/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-missing-doc-export/.dirs/system-data1:/tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-missing-doc-export/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-missing-doc-export/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-missing-doc-export/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-missing-doc-export/.dirs/runtime 1119s # /appinfo/flatpak-missing-doc-export summary: Test that files launched via Flatpak apps are made available via the document portal. 1119s # Acquired a message bus connection 1119s # Acquired the name org.freedesktop.portal.Documents 1119s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-doc-export/.dirs/config to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-missing-doc-export/.dirs/config 1119s # on_flatpak_open received file '/hopefully/an/invalid/path.desktop' 1119s # fake-document-portal cancelled 1119s ok 3 /appinfo/flatpak-missing-doc-export 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file/.dirs/system-config1:/tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file/.dirs/system-data1:/tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file/.dirs/runtime 1119s # Acquired a message bus connection 1119s # Acquired the name org.freedesktop.portal.Desktop 1119s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_SVZ7J3/appinfo/flatpak-missing-doc-export/.dirs/config to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file/.dirs/config 1119s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1119s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_5/t 1119s # Response emitted 1119s # fake-desktop-portal cancelled 1119s ok 4 /appinfo/portal-open-file 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri/.dirs/system-config1:/tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri/.dirs/system-data1:/tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri/.dirs/runtime 1119s # Acquired a message bus connection 1119s # Acquired the name org.freedesktop.portal.Desktop 1119s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file/.dirs/config to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri/.dirs/config 1119s # Got open file request for http://example.com 1119s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_7/t 1119s # Response emitted 1119s # fake-desktop-portal cancelled 1119s ok 5 /appinfo/portal-open-uri 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file-async/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file-async/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file-async/.dirs/system-config1:/tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file-async/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file-async/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file-async/.dirs/system-data1:/tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file-async/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file-async/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file-async/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file-async/.dirs/runtime 1119s # Acquired a message bus connection 1119s # Acquired the name org.freedesktop.portal.Desktop 1119s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri/.dirs/config to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file-async/.dirs/config 1119s # Got open file request for file:///usr/libexec/installed-tests/glib/org.gtk.test.dbusappinfo.flatpak.desktop 1119s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_9/gio687490798 1119s # Response emitted 1119s # fake-desktop-portal cancelled 1119s ok 6 /appinfo/portal-open-file-async 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri-async/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri-async/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri-async/.dirs/system-config1:/tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri-async/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri-async/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri-async/.dirs/system-data1:/tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri-async/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri-async/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri-async/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri-async/.dirs/runtime 1119s # Acquired a message bus connection 1119s # Acquired the name org.freedesktop.portal.Desktop 1119s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-file-async/.dirs/config to /tmp/test_dbus-appinfo_SVZ7J3/appinfo/portal-open-uri-async/.dirs/config 1119s # Got open file request for http://example.com 1119s # Request skeleton exported at /org/freedesktop/portal/desktop/request/1_11/gio365400677 1119s # Response emitted 1119s # fake-desktop-portal cancelled 1119s ok 7 /appinfo/portal-open-uri-async 1119s # End of appinfo tests 1119s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1119s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1119s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1119s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1119s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1119s ok - glib/dbus-appinfo.test 1119s # Running test: glib/g-icon.test 1119s ok - glib/g-icon.test 1119s TAP version 14 1119s # random seed: R02Sd6ed8b5a851a5e266917331a19736b93 1119s 1..6 1119s # Start of icons tests 1119s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1119s ok 1 /icons/to-string 1119s ok 2 /icons/serialize 1119s ok 3 /icons/themed 1119s ok 4 /icons/emblemed 1119s ok 5 /icons/file 1119s ok 6 /icons/bytes 1119s # End of icons tests 1119s # Running test: glib/cxx-03.test 1119s TAP version 14 1119s # random seed: R02S3fe920b5c84874dd6de8839d22345191 1119s 1..2 1119s # Start of gtask tests 1119s # 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. 1119s ok 1 /gtask/name 1119s # Start of name tests 1119s ok - glib/cxx-03.test 1119s # Running test: glib/pattern.test 1119s # 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. 1119s ok 2 /gtask/name/macro-wrapper 1119s # End of name tests 1119s # End of gtask tests 1119s TAP version 14 1119s # random seed: R02Sfa16a152c00bd37db1dd72d33486aa12 1119s 1..90 1119s # Start of pattern tests 1119s # Start of compile tests 1119s ok 1 /pattern/compile/0 1119s ok 2 /pattern/compile/1 1119s ok 3 /pattern/compile/2 1119s ok 4 /pattern/compile/3 1119s ok 5 /pattern/compile/4 1119s ok - glib/pattern.test 1119s ok 6 /pattern/compile/5 1119s ok 7 /pattern/compile/6 1119s ok 8 /pattern/compile/7 1119s ok 9 /pattern/compile/8 1119s ok 10 /pattern/compile/9 1119s ok 11 /pattern/compile/10 1119s ok 12 /pattern/compile/11 1119s ok 13 /pattern/compile/12 1119s ok 14 /pattern/compile/13 1119s # End of compile tests 1119s # Start of copy tests 1119s ok 15 /pattern/copy/0 1119s ok 16 /pattern/copy/1 1119s ok 17 /pattern/copy/2 1119s ok 18 /pattern/copy/3 1119s ok 19 /pattern/copy/4 1119s ok 20 /pattern/copy/5 1119s ok 21 /pattern/copy/6 1119s ok 22 /pattern/copy/7 1119s ok 23 /pattern/copy/8 1119s ok 24 /pattern/copy/9 1119s ok 25 /pattern/copy/10 1119s ok 26 /pattern/copy/11 1119s ok 27 /pattern/copy/12 1119s ok 28 /pattern/copy/13 1119s # End of copy tests 1119s # Start of match tests 1119s ok 29 /pattern/match/0 1119s ok 30 /pattern/match/1 1119s ok 31 /pattern/match/2 1119s ok 32 /pattern/match/3 1119s ok 33 /pattern/match/4 1119s ok 34 /pattern/match/5 1119s ok 35 /pattern/match/6 1119s ok 36 /pattern/match/7 1119s ok 37 /pattern/match/8 1119s ok 38 /pattern/match/9 1119s ok 39 /pattern/match/10 1119s ok 40 /pattern/match/11 1119s ok 41 /pattern/match/12 1119s ok 42 /pattern/match/13 1119s ok 43 /pattern/match/14 1119s ok 44 /pattern/match/15 1119s ok 45 /pattern/match/16 1119s ok 46 /pattern/match/17 1119s ok 47 /pattern/match/18 1119s ok 48 /pattern/match/19 1119s ok 49 /pattern/match/20 1119s ok 50 /pattern/match/21 1119s ok 51 /pattern/match/22 1119s ok 52 /pattern/match/23 1119s ok 53 /pattern/match/24 1119s ok 54 /pattern/match/25 1119s ok 55 /pattern/match/26 1119s ok 56 /pattern/match/27 1119s ok 57 /pattern/match/28 1119s ok 58 /pattern/match/29 1119s ok 59 /pattern/match/30 1119s ok 60 /pattern/match/31 1119s ok 61 /pattern/match/32 1119s ok 62 /pattern/match/33 1119s ok 63 /pattern/match/34 1119s ok 64 /pattern/match/35 1119s ok 65 /pattern/match/36 1119s ok 66 /pattern/match/37 1119s ok 67 /pattern/match/38 1119s ok 68 /pattern/match/39 1119s ok 69 /pattern/match/40 1119s ok 70 /pattern/match/41 1119s ok 71 /pattern/match/42 1119s ok 72 /pattern/match/43 1119s ok 73 /pattern/match/44 1119s ok 74 /pattern/match/45 1119s ok 75 /pattern/match/46 1119s ok 76 /pattern/match/47 1119s ok 77 /pattern/match/48 1119s ok 78 /pattern/match/49 1119s ok 79 /pattern/match/50 1119s # End of match tests 1119s # Start of equal tests 1119s ok 80 /pattern/equal/0 1119s ok 81 /pattern/equal/1 1119s ok 82 /pattern/equal/2 1119s ok 83 /pattern/equal/3 1119s ok 84 /pattern/equal/4 1119s ok 85 /pattern/equal/5 1119s ok 86 /pattern/equal/6 1119s ok 87 /pattern/equal/7 1119s ok 88 /pattern/equal/8 1119s ok 89 /pattern/equal/9 1119s ok 90 /pattern/equal/10 1119s # End of equal tests 1119s # End of pattern tests 1119s # Running test: glib/utf8-misc.test 1119s TAP version 14 1119s ok - glib/utf8-misc.test 1119s # random seed: R02S881df2d4fa261c63fa049e9bc3af07d8 1119s 1..7 1119s # Start of utf8 tests 1119s ok 1 /utf8/strlen 1119s ok 2 /utf8/strncpy 1119s ok 3 /utf8/strrchr 1119s ok 4 /utf8/reverse 1119s ok 5 /utf8/substring 1119s ok 6 /utf8/make-valid 1119s ok 7 /utf8/truncate-middle 1119s # End of utf8 tests 1119s # Running test: glib/markup-subparser.test 1119s ok - glib/markup-subparser.test 1119s TAP version 14 1119s # random seed: R02S572e00d0685f817c922129dd9b281532 1119s 1..14 1119s # Start of glib tests 1119s # Start of markup tests 1119s # Start of subparser tests 1119s # Start of success tests 1119s ok 1 /glib/markup/subparser/success/0 1119s ok 2 /glib/markup/subparser/success/1 1119s ok 3 /glib/markup/subparser/success/2 1119s ok 4 /glib/markup/subparser/success/3 1119s ok 5 /glib/markup/subparser/success/4 1119s ok 6 /glib/markup/subparser/success/5 1119s ok 7 /glib/markup/subparser/success/6 1119s # End of success tests 1119s # Start of failure tests 1119s ok 8 /glib/markup/subparser/failure/0 1119s ok 9 /glib/markup/subparser/failure/1 1119s ok 10 /glib/markup/subparser/failure/2 1119s ok 11 /glib/markup/subparser/failure/3 1119s ok 12 /glib/markup/subparser/failure/4 1119s ok 13 /glib/markup/subparser/failure/5 1119s ok 14 /glib/markup/subparser/failure/6 1119s # End of failure tests 1119s # End of subparser tests 1119s # End of markup tests 1119s # End of glib tests 1119s # Running test: glib/charset.test 1119s TAP version 14 1119s # random seed: R02S5483cac4f91d15c1e929a7fd5ac21573 1119s 1..2 1119s # Start of charset tests 1119s # Test 0 1119s # Test 1 1119s # Test 2 1119s # Test 3 1119s ok 1 /charset/language_names_with_category 1119s ok 2 /charset/language_names_with_category_async 1119s ok - glib/charset.test 1119s # Running test: glib/gdbus-test-codegen.test 1119s # End of charset tests 1119s TAP version 14 1119s # random seed: R02Sdcddbe104dc7212021e3b5365a1f536f 1119s 1..8 1119s # Start of gdbus tests 1119s # Start of codegen tests 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/annotations/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/annotations/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/annotations/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/annotations/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/annotations/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/annotations/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/annotations/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/annotations/.dirs/runtime 1119s ok 1 /gdbus/codegen/annotations 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/interface_stability/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/interface_stability/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/interface_stability/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/interface_stability/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/interface_stability/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/interface_stability/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/interface_stability/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/interface_stability/.dirs/runtime 1119s ok 2 /gdbus/codegen/interface_stability 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/object-manager/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/object-manager/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/object-manager/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/object-manager/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/object-manager/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/object-manager/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/object-manager/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/object-manager/.dirs/runtime 1119s ok 3 /gdbus/codegen/object-manager 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/property-naming/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/property-naming/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/property-naming/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/property-naming/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/property-naming/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/property-naming/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/property-naming/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/property-naming/.dirs/runtime 1119s ok 4 /gdbus/codegen/property-naming 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/autocleanups/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/autocleanups/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/autocleanups/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/autocleanups/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/autocleanups/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/autocleanups/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/autocleanups/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/autocleanups/.dirs/runtime 1119s ok 5 /gdbus/codegen/autocleanups 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/deprecations/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/deprecations/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/deprecations/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/deprecations/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/deprecations/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/deprecations/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/deprecations/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/deprecations/.dirs/runtime 1119s ok 6 /gdbus/codegen/deprecations 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/standalone-interface-info/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/standalone-interface-info/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/standalone-interface-info/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/standalone-interface-info/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/standalone-interface-info/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1119s ok 7 /gdbus/codegen/standalone-interface-info 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/unix-fd-list/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/unix-fd-list/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/unix-fd-list/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/unix-fd-list/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/unix-fd-list/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen_SLZLK3/gdbus/codegen/unix-fd-list/.dirs/runtime 1119s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1119s ok 8 /gdbus/codegen/unix-fd-list 1119s # End of codegen tests 1119s # End of gdbus tests 1119s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1119s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1119s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1119s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1119s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1119s ok - glib/gdbus-test-codegen.test 1119s # Running test: glib/unicode-encoding.test 1119s TAP version 14 1119s # random seed: R02S1ac24f49b8c5854369a7b7685fa33f07 1119s 1..1 1119s # Start of unicode tests 1119s ok - glib/unicode-encoding.test 1119s ok 1 /unicode/encoding 1119s # End of unicode tests 1119s # Running test: glib/file-thumbnail.test 1119s TAP version 14 1119s # random seed: R02S48f6549c20ba30cd20cdb38b6b362ba2 1119s 1..7 1119s # Start of file-thumbnail tests 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/fail/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/fail/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/fail/.dirs/system-config1:/tmp/test_file-thumbnail_LSGLK3/file-thumbnail/fail/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/fail/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/fail/.dirs/system-data1:/tmp/test_file-thumbnail_LSGLK3/file-thumbnail/fail/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/fail/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/fail/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/fail/.dirs/runtime 1119s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1119s # Created test thumbnail at /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/fail/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1119s ok 1 /file-thumbnail/fail 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/size-priority/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/size-priority/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/size-priority/.dirs/system-config1:/tmp/test_file-thumbnail_LSGLK3/file-thumbnail/size-priority/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/size-priority/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/size-priority/.dirs/system-data1:/tmp/test_file-thumbnail_LSGLK3/file-thumbnail/size-priority/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/size-priority/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/size-priority/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/size-priority/.dirs/runtime 1119s # Created test thumbnail at /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/fail/gnome-thumbnail-factory/f098bcae74f8241ee3835bded7284cdd.png 1119s # Created test thumbnail at /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1119s # Created test thumbnail at /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1119s # Created test thumbnail at /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1119s # Created test thumbnail at /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/size-priority/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1119s ok 2 /file-thumbnail/size-priority 1119s # Start of valid tests 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/normal/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/normal/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/normal/.dirs/system-config1:/tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/normal/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/normal/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/normal/.dirs/system-data1:/tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/normal/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/normal/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/normal/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/normal/.dirs/runtime 1119s # Created test thumbnail at /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/normal/.dirs/cache/thumbnails/normal/f098bcae74f8241ee3835bded7284cdd.png 1119s ok 3 /file-thumbnail/valid/normal 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/large/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/large/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/large/.dirs/system-config1:/tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/large/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/large/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/large/.dirs/system-data1:/tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/large/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/large/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/large/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/large/.dirs/runtime 1119s # Created test thumbnail at /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/large/.dirs/cache/thumbnails/large/f098bcae74f8241ee3835bded7284cdd.png 1119s ok 4 /file-thumbnail/valid/large 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/x-large/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/x-large/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/x-large/.dirs/system-config1:/tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/x-large/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/x-large/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/x-large/.dirs/system-data1:/tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/x-large/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/x-large/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/x-large/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/x-large/.dirs/runtime 1119s # Created test thumbnail at /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/x-large/.dirs/cache/thumbnails/x-large/f098bcae74f8241ee3835bded7284cdd.png 1119s ok 5 /file-thumbnail/valid/x-large 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/xx-large/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/xx-large/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/xx-large/.dirs/system-config1:/tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/xx-large/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/xx-large/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/xx-large/.dirs/system-data1:/tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/xx-large/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/xx-large/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/xx-large/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/xx-large/.dirs/runtime 1119s # Created test thumbnail at /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/valid/xx-large/.dirs/cache/thumbnails/xx-large/f098bcae74f8241ee3835bded7284cdd.png 1119s ok 6 /file-thumbnail/valid/xx-large 1119s # End of valid tests 1119s # Start of unknown tests 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/unknown/super-large/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/unknown/super-large/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/unknown/super-large/.dirs/system-config1:/tmp/test_file-thumbnail_LSGLK3/file-thumbnail/unknown/super-large/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/unknown/super-large/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/unknown/super-large/.dirs/system-data1:/tmp/test_file-thumbnail_LSGLK3/file-thumbnail/unknown/super-large/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/unknown/super-large/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/unknown/super-large/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/unknown/super-large/.dirs/runtime 1119s # Created test thumbnail at /tmp/test_file-thumbnail_LSGLK3/file-thumbnail/unknown/super-large/.dirs/cache/thumbnails/super-large/f098bcae74f8241ee3835bded7284cdd.png 1119s ok 7 /file-thumbnail/unknown/super-large 1119s # End of unknown tests 1119s # End of file-thumbnail tests 1119s ok - glib/file-thumbnail.test 1119s # Running test: glib/slist.test 1119s TAP version 14 1119s # random seed: R02S3ce5a307dafaebe8403db7f228032a6e 1119s 1..14 1119s # Start of slist tests 1119s ok 1 /slist/sort 1119s ok 2 /slist/sort-with-data 1119s ok 3 /slist/insert-sorted 1119s ok 4 /slist/insert-sorted-with-data 1119s ok 5 /slist/reverse 1119s ok 6 /slist/nth 1119s ok 7 /slist/remove 1119s ok 8 /slist/remove-all 1119s ok 9 /slist/insert 1119s ok 10 /slist/position 1119s ok 11 /slist/concat 1119s ok 12 /slist/copy 1119s # Start of sort tests 1119s ok 13 /slist/sort/stable 1119s # End of sort tests 1119s # Start of copy tests 1119s ok 14 /slist/copy/deep 1119s # End of copy tests 1119s # End of slist tests 1119s ok - glib/slist.test 1119s # Running test: glib/gdbus-export.test 1119s TAP version 14 1119s # random seed: R02Sc7bd093fddb65120063d447f70502270 1119s 1..7 1119s # Start of gdbus tests 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_592KK3/gdbus/object-registration/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_592KK3/gdbus/object-registration/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_592KK3/gdbus/object-registration/.dirs/system-config1:/tmp/test_gdbus-export_592KK3/gdbus/object-registration/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_592KK3/gdbus/object-registration/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_592KK3/gdbus/object-registration/.dirs/system-data1:/tmp/test_gdbus-export_592KK3/gdbus/object-registration/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_592KK3/gdbus/object-registration/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_592KK3/gdbus/object-registration/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_592KK3/gdbus/object-registration/.dirs/runtime 1119s ok 1 /gdbus/object-registration 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures/.dirs/system-config1:/tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures/.dirs/system-data1:/tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures/.dirs/runtime 1119s ok 2 /gdbus/object-registration-with-closures 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures2/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures2/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures2/.dirs/system-config1:/tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures2/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures2/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures2/.dirs/system-data1:/tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures2/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures2/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures2/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_592KK3/gdbus/object-registration-with-closures2/.dirs/runtime 1119s ok 3 /gdbus/object-registration-with-closures2 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_592KK3/gdbus/registered-interfaces/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_592KK3/gdbus/registered-interfaces/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_592KK3/gdbus/registered-interfaces/.dirs/system-config1:/tmp/test_gdbus-export_592KK3/gdbus/registered-interfaces/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_592KK3/gdbus/registered-interfaces/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_592KK3/gdbus/registered-interfaces/.dirs/system-data1:/tmp/test_gdbus-export_592KK3/gdbus/registered-interfaces/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_592KK3/gdbus/registered-interfaces/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_592KK3/gdbus/registered-interfaces/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_592KK3/gdbus/registered-interfaces/.dirs/runtime 1119s ok 4 /gdbus/registered-interfaces 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_592KK3/gdbus/async-properties/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_592KK3/gdbus/async-properties/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_592KK3/gdbus/async-properties/.dirs/system-config1:/tmp/test_gdbus-export_592KK3/gdbus/async-properties/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_592KK3/gdbus/async-properties/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_592KK3/gdbus/async-properties/.dirs/system-data1:/tmp/test_gdbus-export_592KK3/gdbus/async-properties/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_592KK3/gdbus/async-properties/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_592KK3/gdbus/async-properties/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_592KK3/gdbus/async-properties/.dirs/runtime 1119s ok 5 /gdbus/async-properties 1119s # Start of threaded-unregistration tests 1119s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/object/.dirs/home 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/object/.dirs/cache 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/object/.dirs/system-config1:/tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/object/.dirs/system-config2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/object/.dirs/config 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/object/.dirs/system-data1:/tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/object/.dirs/system-data2 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/object/.dirs/data 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/object/.dirs/state 1119s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/object/.dirs/runtime 1119s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1119s # /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 1120s ok 6 /gdbus/threaded-unregistration/object # SKIP Failed to reproduce race (13 iterations with unregistration first, 987 with call first); skipping test 1120s # slow test /gdbus/threaded-unregistration/object executed in 1.13 secs 1120s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/subtree/.dirs/home 1120s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/subtree/.dirs/cache 1120s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/subtree/.dirs/system-config1:/tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/subtree/.dirs/system-config2 1120s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/subtree/.dirs/config 1120s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/subtree/.dirs/system-data1:/tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/subtree/.dirs/system-data2 1120s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/subtree/.dirs/data 1120s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/subtree/.dirs/state 1120s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-export_592KK3/gdbus/threaded-unregistration/subtree/.dirs/runtime 1120s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2400 1120s # /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 1122s ok 7 /gdbus/threaded-unregistration/subtree # SKIP Failed to reproduce race (13 iterations with unregistration first, 987 with call first); skipping test 1122s # slow test /gdbus/threaded-unregistration/subtree executed in 1.13 secs 1122s # End of threaded-unregistration tests 1122s # End of gdbus tests 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1122s ok - glib/gdbus-export.test 1122s # Running test: glib/queue.test 1122s TAP version 14 1122s # random seed: R02Sbb29727123bb2b83d43c62fcb90d4afb 1122s 1..12 1122s # Start of queue tests 1122s ok 1 /queue/basic 1122s ok 2 /queue/copy 1122s ok 3 /queue/off-by-one 1122s ok 4 /queue/find-custom 1122s ok 5 /queue/static 1122s ok 6 /queue/clear 1122s ok 7 /queue/free-full 1122s ok 8 /queue/clear-full 1122s ok 9 /queue/insert-sibling-link 1122s ok 10 /queue/push-nth-link 1122s # Start of clear-full tests 1122s ok 11 /queue/clear-full/noop 1122s # End of clear-full tests 1122s # Start of random tests 1122s ok 12 /queue/random/seed:200170206 1122s # End of random tests 1122s # End of queue tests 1122s ok - glib/queue.test 1122s # Running test: glib/sort.test 1122s TAP version 14 1122s # random seed: R02S1666ff84d6393e1407b67394946651fe 1122s 1..5 1122s # Start of sort tests 1122s ok 1 /sort/basic 1122s ok 2 /sort/zero-elements 1122s ok 3 /sort/stable 1122s ok 4 /sort/big 1122s ok 5 /sort/deprecated 1122s # End of sort tests 1122s ok - glib/sort.test 1122s # Running test: glib/sleepy-stream.test 1122s TAP version 14 1122s # random seed: R02S2a1d8f2a8de897a467e70a64812688e5 1122s 1..2 1122s # Start of filter-stream tests 1122s ok 1 /filter-stream/input 1122s ok 2 /filter-stream/async 1122s # End of filter-stream tests 1122s ok - glib/sleepy-stream.test 1122s # Running test: glib/include.test 1122s TAP version 14 1122s # random seed: R02Sa85330d4d94e56968c65fff9d314729e 1122s 1..1 1122s # Start of include tests 1122s ok 1 /include/rwlock 1122s # End of include tests 1122s ok - glib/include.test 1122s # Running test: glib/error.test 1122s TAP version 14 1122s # random seed: R02Sbdf24720f627ce16c1dbfbe4d4381a0b 1122s 1..3 1122s # Start of error tests 1122s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_M8IDK3/error/from-errno/.dirs/home 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_M8IDK3/error/from-errno/.dirs/cache 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_M8IDK3/error/from-errno/.dirs/system-config1:/tmp/test_error_M8IDK3/error/from-errno/.dirs/system-config2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_M8IDK3/error/from-errno/.dirs/config 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_M8IDK3/error/from-errno/.dirs/system-data1:/tmp/test_error_M8IDK3/error/from-errno/.dirs/system-data2 1122s ok - glib/error.test 1122s # Running test: glib/performance-threaded.test 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_M8IDK3/error/from-errno/.dirs/data 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_M8IDK3/error/from-errno/.dirs/state 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_M8IDK3/error/from-errno/.dirs/runtime 1122s ok 1 /error/from-errno 1122s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_M8IDK3/error/from-file-error/.dirs/home 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_M8IDK3/error/from-file-error/.dirs/cache 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_M8IDK3/error/from-file-error/.dirs/system-config1:/tmp/test_error_M8IDK3/error/from-file-error/.dirs/system-config2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_M8IDK3/error/from-file-error/.dirs/config 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_M8IDK3/error/from-file-error/.dirs/system-data1:/tmp/test_error_M8IDK3/error/from-file-error/.dirs/system-data2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_M8IDK3/error/from-file-error/.dirs/data 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_M8IDK3/error/from-file-error/.dirs/state 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_M8IDK3/error/from-file-error/.dirs/runtime 1122s ok 2 /error/from-file-error 1122s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_error_M8IDK3/error/from-win32-error/.dirs/home 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_error_M8IDK3/error/from-win32-error/.dirs/cache 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_error_M8IDK3/error/from-win32-error/.dirs/system-config1:/tmp/test_error_M8IDK3/error/from-win32-error/.dirs/system-config2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_error_M8IDK3/error/from-win32-error/.dirs/config 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_error_M8IDK3/error/from-win32-error/.dirs/system-data1:/tmp/test_error_M8IDK3/error/from-win32-error/.dirs/system-data2 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_error_M8IDK3/error/from-win32-error/.dirs/data 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_error_M8IDK3/error/from-win32-error/.dirs/state 1122s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_error_M8IDK3/error/from-win32-error/.dirs/runtime 1122s ok 3 /error/from-win32-error # SKIP Windows error codes can only be checked on Windows 1122s # End of error tests 1122s Running test "liststore-is-a" 1123s # Executing: glib/performance-threaded.test 1123s 2366 runs, min/avg/max = 0.418/0.423/0.551 ms 1123s Running test "liststore-interface-peek" 1124s 2851 runs, min/avg/max = 0.348/0.351/0.552 ms 1124s Running test "liststore-interface-peek-same" 1125s 2838 runs, min/avg/max = 0.348/0.352/0.474 ms 1125s ok - glib/performance-threaded.test 1125s # Running test: glib/contenttype.test 1125s TAP version 14 1125s # random seed: R02S4ca0c104eefbde11923417808d7c32b0 1125s 1..14 1125s # Start of contenttype tests 1125s ok 1 /contenttype/guess 1125s ok 2 /contenttype/guess_svg_from_data 1125s ok 3 /contenttype/mime_to_content # SKIP mime from content type test not implemented on UNIX 1125s ok 4 /contenttype/mime_from_content # SKIP mime from content type test not implemented on UNIX 1125s ok 5 /contenttype/unknown 1125s ok 6 /contenttype/subtype 1125s ok 7 /contenttype/list 1125s ok 8 /contenttype/executable 1125s ok 9 /contenttype/description 1125s ok 10 /contenttype/icon 1125s ok 11 /contenttype/symbolic-icon 1125s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1125s ok - glib/contenttype.test 1125s ok 12 /contenttype/tree 1125s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3168 1125s ok 13 /contenttype/tree_invalid_encoding 1125s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=782311 1125s ok 14 /contenttype/test_type_is_a_special_case 1125s # End of contenttype tests 1125s # Running test: glib/async-splice-output-stream.test 1125s TAP version 14 1125s # random seed: R02Sb958148581560b6b1f903cf4169d2268 1125s 1..5 1125s # Start of async-splice tests 1125s ok 1 /async-splice/copy-chunks 1125s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1125s ok 2 /async-splice/copy-chunks-threaded-input 1125s ok 3 /async-splice/copy-chunks-threaded-output 1125s ok 4 /async-splice/copy-chunks-threaded 1125s ok 5 /async-splice/cancelled 1125s # End of async-splice tests 1125s ok - glib/async-splice-output-stream.test 1125s # Running test: glib/cxx-98.test 1125s TAP version 14 1125s # random seed: R02S977457ea32af8fc864dc2c3102623cb7 1125s 1..2 1125s # Start of gtask tests 1125s # 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. 1125s ok 1 /gtask/name 1125s # Start of name tests 1125s # 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. 1125s ok 2 /gtask/name/macro-wrapper 1125s # End of name tests 1125s # End of gtask tests 1125s ok - glib/cxx-98.test 1125s # Running test: glib/signalgroup.test 1125s ok - glib/signalgroup.test 1125s TAP version 14 1125s # random seed: R02S4ffb6003ac59ea6e15a6782477611974 1125s 1..9 1125s # Start of GObject tests 1125s # Start of SignalGroup tests 1125s ok 1 /GObject/SignalGroup/invalid 1125s ok 2 /GObject/SignalGroup/simple 1125s ok 3 /GObject/SignalGroup/changing-target 1125s ok 4 /GObject/SignalGroup/blocking 1125s ok 5 /GObject/SignalGroup/weak-ref-target 1125s ok 6 /GObject/SignalGroup/connect-object 1125s ok 7 /GObject/SignalGroup/signal-parsing 1125s ok 8 /GObject/SignalGroup/properties 1125s ok 9 /GObject/SignalGroup/interface 1125s # Start of signal-parsing tests 1125s # End of signal-parsing tests 1125s # End of SignalGroup tests 1125s # End of GObject tests 1125s # Running test: glib/private.test 1125s TAP version 14 1125s # random seed: R02S92080e67db2b18566c760c808d983da4 1125s 1..8 1125s # Start of thread tests 1125s ok 1 /thread/private1 1126s ok 2 /thread/private2 1126s # slow test /thread/private2 executed in 1.09 secs 1126s ok 3 /thread/private3 1126s ok 4 /thread/staticprivate1 1126s ok 5 /thread/staticprivate2 1126s ok 6 /thread/staticprivate3 1127s ok 7 /thread/staticprivate4 1127s # slow test /thread/staticprivate4 executed in 1.09 secs 1127s ok 8 /thread/staticprivate5 1127s # End of thread tests 1127s ok - glib/private.test 1127s # Running test: glib/codegen.py.test 1127s TAP version 13 1127s ok 1 __main__.TestCodegen.test_call_flags_and_timeout_method_args 1127s # gdbus-codegen: /usr/bin/gdbus-codegen 1127s # tmpdir: /tmp/tmp60yoj641 1127s # /tmp/tmp60yoj641/tmplyny2w6r.xml: 1127s # 1127s # 1127s # 1127s # 1127s # 1127s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp60yoj641/tmplyny2w6r.xml', '--output', '-', '--header'] 1127s # Return code: 0 1127s # Output: 1127s # /* 1127s # * This file is generated by gdbus-codegen, do not modify it. 1127s # * 1127s # * The license of this code is the same as for the D-Bus interface description 1127s # * it was derived from. Note that it links to GLib, so must comply with the 1127s # * LGPL linking clauses. 1127s # */ 1127s # 1127s # #ifndef __STDOUT__ 1127s # #define __STDOUT__ 1127s # 1127s # #include 1127s # 1127s # G_BEGIN_DECLS 1127s # 1127s # 1127s # /* ------------------------------------------------------------------------ */ 1127s # /* Declarations for org.project.UsefulInterface */ 1127s # 1127s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1127s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1127s # 1127s # struct _OrgProjectUsefulInterface; 1127s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1127s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1127s # 1127s # struct _OrgProjectUsefulInterfaceIface 1127s # { 1127s # GTypeInterface parent_iface; 1127s # 1127s # gboolean (*handle_useful_method) ( 1127s # OrgProjectUsefulInterface *object, 1127s # GDBusMethodInvocation *invocation); 1127s # 1127s # }; 1127s # 1127s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1127s # 1127s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1127s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1127s # 1127s # 1127s # /* D-Bus method call completion functions: */ 1127s # void org_project_useful_interface_complete_useful_method ( 1127s # OrgProjectUsefulInterface *object, 1127s # GDBusMethodInvocation *invocation); 1127s # 1127s # 1127s # 1127s # /* D-Bus method calls: */ 1127s # void org_project_useful_interface_call_useful_method ( 1127s # OrgProjectUsefulInterface *proxy, 1127s # GCancellable *cancellable, 1127s # GAsyncReadyCallback callback, 1127s # gpointer user_data); 1127s # 1127s # gboolean org_project_useful_interface_call_useful_method_finish ( 1127s # OrgProjectUsefulInterface *proxy, 1127s # GAsyncResult *res, 1127s # GError **error); 1127s # 1127s # gboolean org_project_useful_interface_call_useful_method_sync ( 1127s # OrgProjectUsefulInterface *proxy, 1127s # GCancellable *cancellable, 1127s # GError **error); 1127s # 1127s # 1127s # 1127s # /* ---- */ 1127s # 1127s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1127s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1127s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1127s # 1127s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1127s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1127s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1127s # 1127s # struct _OrgProjectUsefulInterfaceProxy 1127s # { 1127s # /*< private >*/ 1127s # GDBusProxy parent_instance; 1127s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1127s # }; 1127s # 1127s # struct _OrgProjectUsefulInterfaceProxyClass 1127s # { 1127s # GDBusProxyClass parent_class; 1127s # }; 1127s # 1127s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1127s # 1127s # #if GLIB_CHECK_VERSION(2, 44, 0) 1127s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1127s # #endif 1127s # 1127s # void org_project_useful_interface_proxy_new ( 1127s # GDBusConnection *connection, 1127s # GDBusProxyFlags flags, 1127s # const gchar *name, 1127s # const gchar *object_path, 1127s # GCancellable *cancellable, 1127s # GAsyncReadyCallback callback, 1127s # gpointer user_data); 1127s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1127s # GAsyncResult *res, 1127s # GError **error); 1127s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1127s # GDBusConnection *connection, 1127s # GDBusProxyFlags flags, 1127s # const gchar *name, 1127s # const gchar *object_path, 1127s # GCancellable *cancellable, 1127s # GError **error); 1127s # 1127s # void org_project_useful_interface_proxy_new_for_bus ( 1127s # GBusType bus_type, 1127s # GDBusProxyFlags flags, 1127s # const gchar *name, 1127s # const gchar *object_path, 1127s # GCancellable *cancellable, 1127s # GAsyncReadyCallback callback, 1127s # gpointer user_data); 1127s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1127s # GAsyncResult *res, 1127s # GError **error); 1127s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1127s # GBusType bus_type, 1127s # GDBusProxyFlags flags, 1127s # const gchar *name, 1127s # const gchar *object_path, 1127s # GCancellable *cancellable, 1127s # GError **error); 1127s # 1127s # 1127s # /* ---- */ 1127s # 1127s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1127s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1127s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1127s # 1127s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1127s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1127s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1127s # 1127s # struct _OrgProjectUsefulInterfaceSkeleton 1127s # { 1127s # /*< private >*/ 1127s # GDBusInterfaceSkeleton parent_instance; 1127s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1127s # }; 1127s # 1127s # struct _OrgProjectUsefulInterfaceSkeletonClass 1127s # { 1127s # GDBusInterfaceSkeletonClass parent_class; 1127s # }; 1127s # 1127s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1127s # 1127s # #if GLIB_CHECK_VERSION(2, 44, 0) 1127s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1127s # #endif 1127s # 1127s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1127s # 1127s # 1127s # G_END_DECLS 1127s # 1127s # #endif /* __STDOUT__ */ 1127s # Error: 1127s # 1127s # /tmp/tmp60yoj641/tmpjx5af5ii.xml: 1127s # 1127s # 1127s # 1127s # 1127s # 1127s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp60yoj641/tmpjx5af5ii.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1127s # Return code: 0 1127s # Output: 1127s # /* 1127s # * This file is generated by gdbus-codegen, do not modify it. 1127s # * 1127s # * The license of this code is the same as for the D-Bus interface description 1127s # * it was derived from. Note that it links to GLib, so must comply with the 1127s # * LGPL linking clauses. 1127s # */ 1127s # 1127s # #ifndef __STDOUT__ 1127s # #define __STDOUT__ 1127s # 1127s # #include 1127s # 1127s # G_BEGIN_DECLS 1127s # 1127s # 1127s # /* ------------------------------------------------------------------------ */ 1127s # /* Declarations for org.project.UsefulInterface */ 1127s # 1127s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1127s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1127s # 1127s # struct _OrgProjectUsefulInterface; 1127s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1127s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1127s # 1127s # struct _OrgProjectUsefulInterfaceIface 1127s # { 1127s # GTypeInterface parent_iface; 1127s # 1127s # gboolean (*handle_useful_method) ( 1127s # OrgProjectUsefulInterface *object, 1127s # GDBusMethodInvocation *invocation); 1127s # 1127s # }; 1127s # 1127s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1127s # 1127s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1127s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1127s # 1127s # 1127s # /* D-Bus method call completion functions: */ 1127s # void org_project_useful_interface_complete_useful_method ( 1127s # OrgProjectUsefulInterface *object, 1127s # GDBusMethodInvocation *invocation); 1127s # 1127s # 1127s # 1127s # /* D-Bus method calls: */ 1127s # void org_project_useful_interface_call_useful_method ( 1127s # OrgProjectUsefulInterface *proxy, 1127s # GCancellable *cancellable, 1127s # GAsyncReadyCallback callback, 1127s # gpointer user_data); 1127s # 1127s # gboolean org_project_useful_interface_call_useful_method_finish ( 1127s # OrgProjectUsefulInterface *proxy, 1127s # GAsyncResult *res, 1127s # GError **error); 1127s # 1127s # gboolean org_project_useful_interface_call_useful_method_sync ( 1127s # OrgProjectUsefulInterface *proxy, 1127s # GCancellable *cancellable, 1127s # GError **error); 1127s # 1127s # 1127s # 1127s # /* ---- */ 1127s # 1127s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1127s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1127s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1127s # 1127s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1127s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1127s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1127s # 1127s # struct _OrgProjectUsefulInterfaceProxy 1127s # { 1127s # /*< private >*/ 1127s # GDBusProxy parent_instance; 1127s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1127s # }; 1127s # 1127s # struct _OrgProjectUsefulInterfaceProxyClass 1127s # { 1127s # GDBusProxyClass parent_class; 1127s # }; 1127s # 1127s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1127s # 1127s # #if GLIB_CHECK_VERSION(2, 44, 0) 1127s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1127s # #endif 1127s # 1127s # void org_project_useful_interface_proxy_new ( 1127s # GDBusConnection *connection, 1127s # GDBusProxyFlags flags, 1127s # const gchar *name, 1127s # const gchar *object_path, 1127s # GCancellable *cancellable, 1127s # GAsyncReadyCallback callback, 1127s # gpointer user_data); 1127s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1127s # GAsyncResult *res, 1127s # GError **error); 1127s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1127s # GDBusConnection *connection, 1127s # GDBusProxyFlags flags, 1127s # const gchar *name, 1127s # const gchar *object_path, 1127s # GCancellable *cancellable, 1127s # GError **error); 1127s # 1127s # void org_project_useful_interface_proxy_new_for_bus ( 1127s # GBusType bus_type, 1127s # GDBusProxyFlags flags, 1127s # const gchar *name, 1127s # const gchar *object_path, 1127s # GCancellable *cancellable, 1127s # GAsyncReadyCallback callback, 1127s # gpointer user_data); 1127s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1127s # GAsyncResult *res, 1127s # GError **error); 1127s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1127s # GBusType bus_type, 1127s # GDBusProxyFlags flags, 1127s # const gchar *name, 1127s # const gchar *object_path, 1127s # GCancellable *cancellable, 1127s # GError **error); 1127s # 1127s # 1127s # /* ---- */ 1127s # 1127s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1127s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1127s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1127s # 1127s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1127s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1127s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1127s # 1127s # struct _OrgProjectUsefulInterfaceSkeleton 1127s # { 1127s # /*< private >*/ 1127s # GDBusInterfaceSkeleton parent_instance; 1127s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1127s # }; 1127s # 1127s # struct _OrgProjectUsefulInterfaceSkeletonClass 1127s # { 1127s # GDBusInterfaceSkeletonClass parent_class; 1127s # }; 1127s # 1127s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1127s # 1127s # #if GLIB_CHECK_VERSION(2, 44, 0) 1127s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1127s # #endif 1127s # 1127s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1127s # 1127s # 1127s # G_END_DECLS 1127s # 1127s # #endif /* __STDOUT__ */ 1127s # Error: 1127s # 1127s # /tmp/tmp60yoj641/tmp2g4k_uqo.xml: 1127s # 1127s # 1127s # 1127s # 1127s # 1127s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp60yoj641/tmp2g4k_uqo.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1127s # Return code: 0 1127s # Output: 1127s # /* 1127s # * This file is generated by gdbus-codegen, do not modify it. 1127s # * 1127s # * The license of this code is the same as for the D-Bus interface description 1127s # * it was derived from. Note that it links to GLib, so must comply with the 1127s # * LGPL linking clauses. 1127s # */ 1127s # 1127s # #ifndef __STDOUT__ 1127s # #define __STDOUT__ 1127s # 1127s # #include 1127s # 1127s # G_BEGIN_DECLS 1127s # 1127s # 1127s # /* ------------------------------------------------------------------------ */ 1127s # /* Declarations for org.project.UsefulInterface */ 1127s # 1127s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE (org_project_useful_interface_get_type ()) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterface)) 1127s # #define IS_ORG_PROJECT_USEFUL_INTERFACE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE)) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE, OrgProjectUsefulInterfaceIface)) 1127s # 1127s # struct _OrgProjectUsefulInterface; 1127s # typedef struct _OrgProjectUsefulInterface OrgProjectUsefulInterface; 1127s # typedef struct _OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceIface; 1127s # 1127s # struct _OrgProjectUsefulInterfaceIface 1127s # { 1127s # GTypeInterface parent_iface; 1127s # 1127s # gboolean (*handle_useful_method) ( 1127s # OrgProjectUsefulInterface *object, 1127s # GDBusMethodInvocation *invocation); 1127s # 1127s # }; 1127s # 1127s # GType org_project_useful_interface_get_type (void) G_GNUC_CONST; 1127s # 1127s # GDBusInterfaceInfo *org_project_useful_interface_interface_info (void); 1127s # guint org_project_useful_interface_override_properties (GObjectClass *klass, guint property_id_begin); 1127s # 1127s # 1127s # /* D-Bus method call completion functions: */ 1127s # void org_project_useful_interface_complete_useful_method ( 1127s # OrgProjectUsefulInterface *object, 1127s # GDBusMethodInvocation *invocation); 1127s # 1127s # 1127s # 1127s # /* D-Bus method calls: */ 1127s # void org_project_useful_interface_call_useful_method ( 1127s # OrgProjectUsefulInterface *proxy, 1127s # GDBusCallFlags call_flags, 1127s # gint timeout_msec, 1127s # GCancellable *cancellable, 1127s # GAsyncReadyCallback callback, 1127s # gpointer user_data); 1127s # 1127s # gboolean org_project_useful_interface_call_useful_method_finish ( 1127s # OrgProjectUsefulInterface *proxy, 1127s # GAsyncResult *res, 1127s # GError **error); 1127s # 1127s # gboolean org_project_useful_interface_call_useful_method_sync ( 1127s # OrgProjectUsefulInterface *proxy, 1127s # GDBusCallFlags call_flags, 1127s # gint timeout_msec, 1127s # GCancellable *cancellable, 1127s # GError **error); 1127s # 1127s # 1127s # 1127s # /* ---- */ 1127s # 1127s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY (org_project_useful_interface_proxy_get_type ()) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxy)) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyClass)) 1127s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1127s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY)) 1127s # 1127s # typedef struct _OrgProjectUsefulInterfaceProxy OrgProjectUsefulInterfaceProxy; 1127s # typedef struct _OrgProjectUsefulInterfaceProxyClass OrgProjectUsefulInterfaceProxyClass; 1127s # typedef struct _OrgProjectUsefulInterfaceProxyPrivate OrgProjectUsefulInterfaceProxyPrivate; 1127s # 1127s # struct _OrgProjectUsefulInterfaceProxy 1127s # { 1127s # /*< private >*/ 1127s # GDBusProxy parent_instance; 1127s # OrgProjectUsefulInterfaceProxyPrivate *priv; 1127s # }; 1127s # 1127s # struct _OrgProjectUsefulInterfaceProxyClass 1127s # { 1127s # GDBusProxyClass parent_class; 1127s # }; 1127s # 1127s # GType org_project_useful_interface_proxy_get_type (void) G_GNUC_CONST; 1127s # 1127s # #if GLIB_CHECK_VERSION(2, 44, 0) 1127s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceProxy, g_object_unref) 1127s # #endif 1127s # 1127s # void org_project_useful_interface_proxy_new ( 1127s # GDBusConnection *connection, 1127s # GDBusProxyFlags flags, 1127s # const gchar *name, 1127s # const gchar *object_path, 1127s # GCancellable *cancellable, 1127s # GAsyncReadyCallback callback, 1127s # gpointer user_data); 1127s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_finish ( 1127s # GAsyncResult *res, 1127s # GError **error); 1127s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_sync ( 1127s # GDBusConnection *connection, 1127s # GDBusProxyFlags flags, 1127s # const gchar *name, 1127s # const gchar *object_path, 1127s # GCancellable *cancellable, 1127s # GError **error); 1127s # 1127s # void org_project_useful_interface_proxy_new_for_bus ( 1127s # GBusType bus_type, 1127s # GDBusProxyFlags flags, 1127s # const gchar *name, 1127s # const gchar *object_path, 1127s # GCancellable *cancellable, 1127s # GAsyncReadyCallback callback, 1127s # gpointer user_data); 1127s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_finish ( 1127s # GAsyncResult *res, 1127s # GError **error); 1127s # OrgProjectUsefulInterface *org_project_useful_interface_proxy_new_for_bus_sync ( 1127s # GBusType bus_type, 1127s # GDBusProxyFlags flags, 1127s # const gchar *name, 1127s # const gchar *object_path, 1127s # GCancellable *cancellable, 1127s # GError **error); 1127s # 1127s # 1127s # /* ---- */ 1127s # 1127s # #define TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON (org_project_useful_interface_skeleton_get_type ()) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeleton)) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1127s # #define ORG_PROJECT_USEFUL_INTERFACE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonClass)) 1127s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1127s # #define IS_ORG_PROJECT_USEFUL_INTERFACE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON)) 1127s # 1127s # typedef struct _OrgProjectUsefulInterfaceSkeleton OrgProjectUsefulInterfaceSkeleton; 1127s # typedef struct _OrgProjectUsefulInterfaceSkeletonClass OrgProjectUsefulInterfaceSkeletonClass; 1127s # typedef struct _OrgProjectUsefulInterfaceSkeletonPrivate OrgProjectUsefulInterfaceSkeletonPrivate; 1127s # 1127s # struct _OrgProjectUsefulInterfaceSkeleton 1127s # { 1127s # /*< private >*/ 1127s # GDBusInterfaceSkeleton parent_instance; 1127s # OrgProjectUsefulInterfaceSkeletonPrivate *priv; 1127s # }; 1127s # 1127s # struct _OrgProjectUsefulInterfaceSkeletonClass 1127s # { 1127s # GDBusInterfaceSkeletonClass parent_class; 1127s # }; 1127s # 1127s # GType org_project_useful_interface_skeleton_get_type (void) G_GNUC_CONST; 1127s # 1127s # #if GLIB_CHECK_VERSION(2, 44, 0) 1127s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectUsefulInterfaceSkeleton, g_object_unref) 1127s # #endif 1127s # 1127s # OrgProjectUsefulInterface *org_project_useful_interface_skeleton_new (void); 1127s # 1127s # 1127s # G_END_DECLS 1127s # 1127s # #endif /* __STDOUT__ */ 1127s # Error: 1128s # Executing: glib/codegen.py.test 1128s ok 2 __main__.TestCodegen.test_dbus_types 1128s # gdbus-codegen: /usr/bin/gdbus-codegen 1128s # tmpdir: /tmp/tmpwa6xnyt4 1128s # /tmp/tmpwa6xnyt4/tmpjqzdfp78.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmpjqzdfp78.xml', '--output', '-', '--body'] 1128s # Return code: 1 1128s # Output: 1128s # 1128s # Error: 1128s # ERROR: Bad signature "{vs}". "v" is not a valid type for dictionary keys at position 1. 1128s # /tmp/tmpwa6xnyt4/tmp7in1818e.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmp7in1818e.xml', '--output', '-', '--body'] 1128s # Return code: 1 1128s # Output: 1128s # 1128s # Error: 1128s # ERROR: Bad signature "(ss(s{{sv}s}))". "{" is not a valid type for dictionary keys at position 6. 1128s # /tmp/tmpwa6xnyt4/tmpi_8j5lm5.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmpi_8j5lm5.xml', '--output', '-', '--body'] 1128s # Return code: 1 1128s # Output: 1128s # 1128s # Error: 1128s # ERROR: Bad signature "{s". Error parsing string or brackets not closed. 1128s # /tmp/tmpwa6xnyt4/tmp0qci0r52.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmp0qci0r52.xml', '--output', '-', '--body'] 1128s # Return code: 1 1128s # Output: 1128s # 1128s # Error: 1128s # ERROR: Bad signature "(s{sss})". Dict must end with "}" at position 5. 1128s # /tmp/tmpwa6xnyt4/tmp0vuk53bk.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmp0vuk53bk.xml', '--output', '-', '--body'] 1128s # Return code: 1 1128s # Output: 1128s # 1128s # Error: 1128s # ERROR: Bad signature "z". "z" is not a valid D-Bus type. 1128s # /tmp/tmpwa6xnyt4/tmpgrnc7ysl.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmpgrnc7ysl.xml', '--output', '-', '--body'] 1128s # Return code: 1 1128s # Output: 1128s # 1128s # Error: 1128s # ERROR: Bad signature "(ssms)". "m" is not a valid D-Bus type. 1128s # /tmp/tmpwa6xnyt4/tmpdlnfoo_6.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmpdlnfoo_6.xml', '--output', '-', '--body'] 1128s # Return code: 1 1128s # Output: 1128s # 1128s # Error: 1128s # ERROR: Bad signature "(". Error parsing string or brackets not closed. 1128s # /tmp/tmpwa6xnyt4/tmp5kfkjk4r.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmp5kfkjk4r.xml', '--output', '-', '--body'] 1128s # Return code: 1 1128s # Output: 1128s # 1128s # Error: 1128s # ERROR: Bad signature "(((ss))". Error parsing string or brackets not closed. 1128s # /tmp/tmpwa6xnyt4/tmp6dc91t0e.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmp6dc91t0e.xml', '--output', '-', '--body'] 1128s # Return code: 1 1128s # Output: 1128s # 1128s # Error: 1128s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas". Too much recursion beginning at 129. 1128s # /tmp/tmpwa6xnyt4/tmpujrbr249.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmpujrbr249.xml', '--output', '-', '--body'] 1128s # Return code: 1 1128s # Output: 1128s # 1128s # Error: 1128s # ERROR: D-Bus maximum signature length of 255 exceeded. 1128s # /tmp/tmpwa6xnyt4/tmpd8c_mz48.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmpd8c_mz48.xml', '--output', '-', '--body'] 1128s # Return code: 1 1128s # Output: 1128s # 1128s # Error: 1128s # ERROR: D-Bus maximum signature length of 255 exceeded. 1128s # /tmp/tmpwa6xnyt4/tmpro0pgeqc.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmpro0pgeqc.xml', '--output', '-', '--body'] 1128s # Return code: 1 1128s # Output: 1128s # 1128s # Error: 1128s # ERROR: Bad signature "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaa{sv})". Too much recursion beginning at 129. 1128s # /tmp/tmpwa6xnyt4/tmpxq6015q6.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmpxq6015q6.xml', '--output', '-', '--body'] 1128s # Return code: 1 1128s # Output: 1128s # 1128s # Error: 1128s # ERROR: D-Bus maximum signature length of 255 exceeded. 1128s # /tmp/tmpwa6xnyt4/tmpxexdw_3q.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmpxexdw_3q.xml', '--output', '-', '--body'] 1128s # Return code: 0 1128s # Output: 1128s # /* 1128s # * This file is generated by gdbus-codegen, do not modify it. 1128s # * 1128s # * The license of this code is the same as for the D-Bus interface description 1128s # * it was derived from. Note that it links to GLib, so must comply with the 1128s # * LGPL linking clauses. 1128s # */ 1128s # 1128s # #ifdef HAVE_CONFIG_H 1128s # # include "config.h" 1128s # #endif 1128s # 1128s # #include 1128s # #ifdef G_OS_UNIX 1128s # # include 1128s # #endif 1128s # 1128s # #ifdef G_ENABLE_DEBUG 1128s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1128s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1128s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1128s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1128s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1128s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1128s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1128s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1128s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1128s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1128s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1128s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1128s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1128s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1128s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1128s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1128s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1128s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1128s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1128s # #else /* !G_ENABLE_DEBUG */ 1128s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1128s # * Do not access GValues directly in your code. Instead, use the 1128s # * g_value_get_*() functions 1128s # */ 1128s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1128s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1128s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1128s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1128s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1128s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1128s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1128s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1128s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1128s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1128s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1128s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1128s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1128s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1128s # #endif /* !G_ENABLE_DEBUG */ 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusArgInfo parent_struct; 1128s # gboolean use_gvariant; 1128s # } _ExtendedGDBusArgInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusMethodInfo parent_struct; 1128s # const gchar *signal_name; 1128s # gboolean pass_fdlist; 1128s # } _ExtendedGDBusMethodInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusSignalInfo parent_struct; 1128s # const gchar *signal_name; 1128s # } _ExtendedGDBusSignalInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusPropertyInfo parent_struct; 1128s # const gchar *hyphen_name; 1128s # guint use_gvariant : 1; 1128s # guint emits_changed_signal : 1; 1128s # } _ExtendedGDBusPropertyInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusInterfaceInfo parent_struct; 1128s # const gchar *hyphen_name; 1128s # } _ExtendedGDBusInterfaceInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info; 1128s # guint prop_id; 1128s # GValue orig_value; /* the value before the change */ 1128s # } ChangedProperty; 1128s # 1128s # static void 1128s # _changed_property_free (ChangedProperty *data) 1128s # { 1128s # g_value_unset (&data->orig_value); 1128s # g_free (data); 1128s # } 1128s # 1128s # static gboolean 1128s # _g_strv_equal0 (gchar **a, gchar **b) 1128s # { 1128s # gboolean ret = FALSE; 1128s # guint n; 1128s # if (a == NULL && b == NULL) 1128s # { 1128s # ret = TRUE; 1128s # goto out; 1128s # } 1128s # if (a == NULL || b == NULL) 1128s # goto out; 1128s # if (g_strv_length (a) != g_strv_length (b)) 1128s # goto out; 1128s # for (n = 0; a[n] != NULL; n++) 1128s # if (g_strcmp0 (a[n], b[n]) != 0) 1128s # goto out; 1128s # ret = TRUE; 1128s # out: 1128s # return ret; 1128s # } 1128s # 1128s # static gboolean 1128s # _g_variant_equal0 (GVariant *a, GVariant *b) 1128s # { 1128s # gboolean ret = FALSE; 1128s # if (a == NULL && b == NULL) 1128s # { 1128s # ret = TRUE; 1128s # goto out; 1128s # } 1128s # if (a == NULL || b == NULL) 1128s # goto out; 1128s # ret = g_variant_equal (a, b); 1128s # out: 1128s # return ret; 1128s # } 1128s # 1128s # G_GNUC_UNUSED static gboolean 1128s # _g_value_equal (const GValue *a, const GValue *b) 1128s # { 1128s # gboolean ret = FALSE; 1128s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1128s # switch (G_VALUE_TYPE (a)) 1128s # { 1128s # case G_TYPE_BOOLEAN: 1128s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1128s # break; 1128s # case G_TYPE_UCHAR: 1128s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1128s # break; 1128s # case G_TYPE_INT: 1128s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1128s # break; 1128s # case G_TYPE_UINT: 1128s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1128s # break; 1128s # case G_TYPE_INT64: 1128s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1128s # break; 1128s # case G_TYPE_UINT64: 1128s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1128s # break; 1128s # case G_TYPE_DOUBLE: 1128s # { 1128s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1128s # gdouble da = g_value_get_double (a); 1128s # gdouble db = g_value_get_double (b); 1128s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1128s # } 1128s # break; 1128s # case G_TYPE_STRING: 1128s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1128s # break; 1128s # case G_TYPE_VARIANT: 1128s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1128s # break; 1128s # default: 1128s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1128s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1128s # else 1128s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1128s # break; 1128s # } 1128s # return ret; 1128s # } 1128s # 1128s # /* ------------------------------------------------------------------------ 1128s # * Code for interface GoodTypes 1128s # * ------------------------------------------------------------------------ 1128s # */ 1128s # 1128s # /** 1128s # * SECTION:GoodTypes 1128s # * @title: GoodTypes 1128s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1128s # * 1128s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1128s # */ 1128s # 1128s # /* ---- Introspection data for GoodTypes ---- */ 1128s # 1128s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1128s # { 1128s # { 1128s # -1, 1128s # (gchar *) "GoodPropertyType", 1128s # (gchar *) "si{s{b(ybnqiuxtdh)}}{yv}{nv}{dv}", 1128s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1128s # NULL 1128s # }, 1128s # "good-property-type", 1128s # FALSE, 1128s # TRUE 1128s # }; 1128s # 1128s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1128s # { 1128s # &_good_types_property_info_good_property_type.parent_struct, 1128s # NULL 1128s # }; 1128s # 1128s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1128s # { 1128s # { 1128s # -1, 1128s # (gchar *) "GoodTypes", 1128s # NULL, 1128s # NULL, 1128s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1128s # NULL 1128s # }, 1128s # "good-types", 1128s # }; 1128s # 1128s # 1128s # /** 1128s # * good_types_interface_info: 1128s # * 1128s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1128s # * 1128s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1128s # */ 1128s # GDBusInterfaceInfo * 1128s # good_types_interface_info (void) 1128s # { 1128s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1128s # } 1128s # 1128s # /** 1128s # * good_types_override_properties: 1128s # * @klass: The class structure for a #GObject derived class. 1128s # * @property_id_begin: The property id to assign to the first overridden property. 1128s # * 1128s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1128s # * The properties are overridden in the order they are defined. 1128s # * 1128s # * Returns: The last property id. 1128s # */ 1128s # guint 1128s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1128s # { 1128s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1128s # return property_id_begin - 1; 1128s # } 1128s # 1128s # 1128s # 1128s # /** 1128s # * GoodTypes: 1128s # * 1128s # * Abstract interface type for the D-Bus interface GoodTypes. 1128s # */ 1128s # 1128s # /** 1128s # * GoodTypesIface: 1128s # * @parent_iface: The parent interface. 1128s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1128s # * 1128s # * Virtual table for the D-Bus interface GoodTypes. 1128s # */ 1128s # 1128s # typedef GoodTypesIface GoodTypesInterface; 1128s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1128s # 1128s # static void 1128s # good_types_default_init (GoodTypesIface *iface) 1128s # { 1128s # /* GObject properties for D-Bus properties: */ 1128s # /** 1128s # * GoodTypes:good-property-type: 1128s # * 1128s # * Represents the D-Bus property "GoodPropertyType". 1128s # * 1128s # * 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. 1128s # */ 1128s # g_object_interface_install_property (iface, 1128s # 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)); 1128s # } 1128s # 1128s # /** 1128s # * good_types_get_good_property_type: (skip) 1128s # * @object: A GoodTypes. 1128s # * 1128s # * Gets the value of the "GoodPropertyType" D-Bus property. 1128s # * 1128s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1128s # * 1128s # * 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. 1128s # * 1128s # * 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. 1128s # */ 1128s # GVariant * 1128s # good_types_get_good_property_type (GoodTypes *object) 1128s # { 1128s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1128s # 1128s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1128s # } 1128s # 1128s # /** 1128s # * good_types_dup_good_property_type: (skip) 1128s # * @object: A GoodTypes. 1128s # * 1128s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1128s # * 1128s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1128s # * 1128s # * 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(). 1128s # */ 1128s # GVariant * 1128s # good_types_dup_good_property_type (GoodTypes *object) 1128s # { 1128s # GVariant *value; 1128s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1128s # return value; 1128s # } 1128s # 1128s # /** 1128s # * good_types_set_good_property_type: (skip) 1128s # * @object: A GoodTypes. 1128s # * @value: The value to set. 1128s # * 1128s # * Sets the "GoodPropertyType" D-Bus property to @value. 1128s # * 1128s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1128s # */ 1128s # void 1128s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1128s # { 1128s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1128s # } 1128s # 1128s # /* ------------------------------------------------------------------------ */ 1128s # 1128s # /** 1128s # * GoodTypesProxy: 1128s # * 1128s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1128s # */ 1128s # 1128s # /** 1128s # * GoodTypesProxyClass: 1128s # * @parent_class: The parent class. 1128s # * 1128s # * Class structure for GoodTypesProxy. 1128s # */ 1128s # 1128s # struct _GoodTypesProxyPrivate 1128s # { 1128s # GData *qdata; 1128s # }; 1128s # 1128s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1128s # 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1128s # G_ADD_PRIVATE (GoodTypesProxy) 1128s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1128s # 1128s # #else 1128s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1128s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1128s # 1128s # #endif 1128s # static void 1128s # good_types_proxy_finalize (GObject *object) 1128s # { 1128s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1128s # g_datalist_clear (&proxy->priv->qdata); 1128s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_get_property (GObject *object, 1128s # guint prop_id, 1128s # GValue *value, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info; 1128s # GVariant *variant; 1128s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1128s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1128s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1128s # if (info->use_gvariant) 1128s # { 1128s # g_value_set_variant (value, variant); 1128s # } 1128s # else 1128s # { 1128s # if (variant != NULL) 1128s # g_dbus_gvariant_to_gvalue (variant, value); 1128s # } 1128s # if (variant != NULL) 1128s # g_variant_unref (variant); 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1128s # GAsyncResult *res, 1128s # gpointer user_data) 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info = user_data; 1128s # GError *error; 1128s # GVariant *_ret; 1128s # error = NULL; 1128s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1128s # if (!_ret) 1128s # { 1128s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1128s # info->parent_struct.name, 1128s # error->message, g_quark_to_string (error->domain), error->code); 1128s # g_error_free (error); 1128s # } 1128s # else 1128s # { 1128s # g_variant_unref (_ret); 1128s # } 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_set_property (GObject *object, 1128s # guint prop_id, 1128s # const GValue *value, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info; 1128s # GVariant *variant; 1128s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1128s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1128s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1128s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1128s # "org.freedesktop.DBus.Properties.Set", 1128s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1128s # G_DBUS_CALL_FLAGS_NONE, 1128s # -1, 1128s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1128s # g_variant_unref (variant); 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_g_signal (GDBusProxy *proxy, 1128s # const gchar *sender_name G_GNUC_UNUSED, 1128s # const gchar *signal_name, 1128s # GVariant *parameters) 1128s # { 1128s # _ExtendedGDBusSignalInfo *info; 1128s # GVariantIter iter; 1128s # GVariant *child; 1128s # GValue *paramv; 1128s # gsize num_params; 1128s # gsize n; 1128s # guint signal_id; 1128s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1128s # if (info == NULL) 1128s # return; 1128s # num_params = g_variant_n_children (parameters); 1128s # paramv = g_new0 (GValue, num_params + 1); 1128s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1128s # g_value_set_object (¶mv[0], proxy); 1128s # g_variant_iter_init (&iter, parameters); 1128s # n = 1; 1128s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1128s # { 1128s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1128s # if (arg_info->use_gvariant) 1128s # { 1128s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1128s # g_value_set_variant (¶mv[n], child); 1128s # n++; 1128s # } 1128s # else 1128s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1128s # g_variant_unref (child); 1128s # } 1128s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1128s # g_signal_emitv (paramv, signal_id, 0, NULL); 1128s # for (n = 0; n < num_params + 1; n++) 1128s # g_value_unset (¶mv[n]); 1128s # g_free (paramv); 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1128s # GVariant *changed_properties, 1128s # const gchar *const *invalidated_properties) 1128s # { 1128s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1128s # guint n; 1128s # const gchar *key; 1128s # GVariantIter *iter; 1128s # _ExtendedGDBusPropertyInfo *info; 1128s # g_variant_get (changed_properties, "a{sv}", &iter); 1128s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1128s # { 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1128s # g_datalist_remove_data (&proxy->priv->qdata, key); 1128s # if (info != NULL) 1128s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1128s # } 1128s # g_variant_iter_free (iter); 1128s # for (n = 0; invalidated_properties[n] != NULL; n++) 1128s # { 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1128s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1128s # if (info != NULL) 1128s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1128s # } 1128s # } 1128s # 1128s # static GVariant * 1128s # good_types_proxy_get_good_property_type (GoodTypes *object) 1128s # { 1128s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1128s # GVariant *variant; 1128s # GVariant *value = NULL; 1128s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1128s # value = variant; 1128s # if (variant != NULL) 1128s # g_variant_unref (variant); 1128s # return value; 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_init (GoodTypesProxy *proxy) 1128s # { 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1128s # #else 1128s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1128s # #endif 1128s # 1128s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1128s # { 1128s # GObjectClass *gobject_class; 1128s # GDBusProxyClass *proxy_class; 1128s # 1128s # gobject_class = G_OBJECT_CLASS (klass); 1128s # gobject_class->finalize = good_types_proxy_finalize; 1128s # gobject_class->get_property = good_types_proxy_get_property; 1128s # gobject_class->set_property = good_types_proxy_set_property; 1128s # 1128s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1128s # proxy_class->g_signal = good_types_proxy_g_signal; 1128s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1128s # 1128s # good_types_override_properties (gobject_class, 1); 1128s # 1128s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1128s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1128s # #endif 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_iface_init (GoodTypesIface *iface) 1128s # { 1128s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1128s # } 1128s # 1128s # /** 1128s # * good_types_proxy_new: 1128s # * @connection: A #GDBusConnection. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1128s # * @user_data: User data to pass to @callback. 1128s # * 1128s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1128s # * 1128s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1128s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1128s # * 1128s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1128s # */ 1128s # void 1128s # good_types_proxy_new ( 1128s # GDBusConnection *connection, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GAsyncReadyCallback callback, 1128s # gpointer user_data) 1128s # { 1128s # 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); 1128s # } 1128s # 1128s # /** 1128s # * good_types_proxy_new_finish: 1128s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Finishes an operation started with good_types_proxy_new(). 1128s # * 1128s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # GoodTypes * 1128s # good_types_proxy_new_finish ( 1128s # GAsyncResult *res, 1128s # GError **error) 1128s # { 1128s # GObject *ret; 1128s # GObject *source_object; 1128s # source_object = g_async_result_get_source_object (res); 1128s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1128s # g_object_unref (source_object); 1128s # if (ret != NULL) 1128s # return GOOD_TYPES (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # /** 1128s # * good_types_proxy_new_sync: 1128s # * @connection: A #GDBusConnection. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1128s # * 1128s # * The calling thread is blocked until a reply is received. 1128s # * 1128s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1128s # * 1128s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # GoodTypes * 1128s # good_types_proxy_new_sync ( 1128s # GDBusConnection *connection, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GError **error) 1128s # { 1128s # GInitable *ret; 1128s # 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); 1128s # if (ret != NULL) 1128s # return GOOD_TYPES (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # 1128s # /** 1128s # * good_types_proxy_new_for_bus: 1128s # * @bus_type: A #GBusType. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: A bus name (well-known or unique). 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1128s # * @user_data: User data to pass to @callback. 1128s # * 1128s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1128s # * 1128s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1128s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1128s # * 1128s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1128s # */ 1128s # void 1128s # good_types_proxy_new_for_bus ( 1128s # GBusType bus_type, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GAsyncReadyCallback callback, 1128s # gpointer user_data) 1128s # { 1128s # 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); 1128s # } 1128s # 1128s # /** 1128s # * good_types_proxy_new_for_bus_finish: 1128s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1128s # * 1128s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # GoodTypes * 1128s # good_types_proxy_new_for_bus_finish ( 1128s # GAsyncResult *res, 1128s # GError **error) 1128s # { 1128s # GObject *ret; 1128s # GObject *source_object; 1128s # source_object = g_async_result_get_source_object (res); 1128s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1128s # g_object_unref (source_object); 1128s # if (ret != NULL) 1128s # return GOOD_TYPES (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # /** 1128s # * good_types_proxy_new_for_bus_sync: 1128s # * @bus_type: A #GBusType. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: A bus name (well-known or unique). 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1128s # * 1128s # * The calling thread is blocked until a reply is received. 1128s # * 1128s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1128s # * 1128s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # GoodTypes * 1128s # good_types_proxy_new_for_bus_sync ( 1128s # GBusType bus_type, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GError **error) 1128s # { 1128s # GInitable *ret; 1128s # 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); 1128s # if (ret != NULL) 1128s # return GOOD_TYPES (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # 1128s # /* ------------------------------------------------------------------------ */ 1128s # 1128s # /** 1128s # * GoodTypesSkeleton: 1128s # * 1128s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1128s # */ 1128s # 1128s # /** 1128s # * GoodTypesSkeletonClass: 1128s # * @parent_class: The parent class. 1128s # * 1128s # * Class structure for GoodTypesSkeleton. 1128s # */ 1128s # 1128s # struct _GoodTypesSkeletonPrivate 1128s # { 1128s # GValue *properties; 1128s # GList *changed_properties; 1128s # GSource *changed_properties_idle_source; 1128s # GMainContext *context; 1128s # GMutex lock; 1128s # }; 1128s # 1128s # static void 1128s # _good_types_skeleton_handle_method_call ( 1128s # GDBusConnection *connection G_GNUC_UNUSED, 1128s # const gchar *sender G_GNUC_UNUSED, 1128s # const gchar *object_path G_GNUC_UNUSED, 1128s # const gchar *interface_name, 1128s # const gchar *method_name, 1128s # GVariant *parameters, 1128s # GDBusMethodInvocation *invocation, 1128s # gpointer user_data) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1128s # _ExtendedGDBusMethodInfo *info; 1128s # GVariantIter iter; 1128s # GVariant *child; 1128s # GValue *paramv; 1128s # gsize num_params; 1128s # guint num_extra; 1128s # gsize n; 1128s # guint signal_id; 1128s # GValue return_value = G_VALUE_INIT; 1128s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1128s # g_assert (info != NULL); 1128s # num_params = g_variant_n_children (parameters); 1128s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1128s # n = 0; 1128s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1128s # g_value_set_object (¶mv[n++], skeleton); 1128s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1128s # g_value_set_object (¶mv[n++], invocation); 1128s # if (info->pass_fdlist) 1128s # { 1128s # #ifdef G_OS_UNIX 1128s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1128s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1128s # #else 1128s # g_assert_not_reached (); 1128s # #endif 1128s # } 1128s # g_variant_iter_init (&iter, parameters); 1128s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1128s # { 1128s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1128s # if (arg_info->use_gvariant) 1128s # { 1128s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1128s # g_value_set_variant (¶mv[n], child); 1128s # n++; 1128s # } 1128s # else 1128s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1128s # g_variant_unref (child); 1128s # } 1128s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1128s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1128s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1128s # if (!g_value_get_boolean (&return_value)) 1128s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1128s # g_value_unset (&return_value); 1128s # for (n = 0; n < num_params + num_extra; n++) 1128s # g_value_unset (¶mv[n]); 1128s # g_free (paramv); 1128s # } 1128s # 1128s # static GVariant * 1128s # _good_types_skeleton_handle_get_property ( 1128s # GDBusConnection *connection G_GNUC_UNUSED, 1128s # const gchar *sender G_GNUC_UNUSED, 1128s # const gchar *object_path G_GNUC_UNUSED, 1128s # const gchar *interface_name G_GNUC_UNUSED, 1128s # const gchar *property_name, 1128s # GError **error, 1128s # gpointer user_data) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1128s # GValue value = G_VALUE_INIT; 1128s # GParamSpec *pspec; 1128s # _ExtendedGDBusPropertyInfo *info; 1128s # GVariant *ret; 1128s # ret = NULL; 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1128s # g_assert (info != NULL); 1128s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1128s # if (pspec == NULL) 1128s # { 1128s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1128s # } 1128s # else 1128s # { 1128s # g_value_init (&value, pspec->value_type); 1128s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1128s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1128s # g_value_unset (&value); 1128s # } 1128s # return ret; 1128s # } 1128s # 1128s # static gboolean 1128s # _good_types_skeleton_handle_set_property ( 1128s # GDBusConnection *connection G_GNUC_UNUSED, 1128s # const gchar *sender G_GNUC_UNUSED, 1128s # const gchar *object_path G_GNUC_UNUSED, 1128s # const gchar *interface_name G_GNUC_UNUSED, 1128s # const gchar *property_name, 1128s # GVariant *variant, 1128s # GError **error, 1128s # gpointer user_data) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1128s # GValue value = G_VALUE_INIT; 1128s # GParamSpec *pspec; 1128s # _ExtendedGDBusPropertyInfo *info; 1128s # gboolean ret; 1128s # ret = FALSE; 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1128s # g_assert (info != NULL); 1128s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1128s # if (pspec == NULL) 1128s # { 1128s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1128s # } 1128s # else 1128s # { 1128s # if (info->use_gvariant) 1128s # g_value_set_variant (&value, variant); 1128s # else 1128s # g_dbus_gvariant_to_gvalue (variant, &value); 1128s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1128s # g_value_unset (&value); 1128s # ret = TRUE; 1128s # } 1128s # return ret; 1128s # } 1128s # 1128s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1128s # { 1128s # _good_types_skeleton_handle_method_call, 1128s # _good_types_skeleton_handle_get_property, 1128s # _good_types_skeleton_handle_set_property, 1128s # {NULL} 1128s # }; 1128s # 1128s # static GDBusInterfaceInfo * 1128s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1128s # { 1128s # return good_types_interface_info (); 1128s # } 1128s # 1128s # static GDBusInterfaceVTable * 1128s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1128s # { 1128s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1128s # } 1128s # 1128s # static GVariant * 1128s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1128s # 1128s # GVariantBuilder builder; 1128s # guint n; 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1128s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # #else 1128s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # #endif 1128s # if (_good_types_interface_info.parent_struct.properties == NULL) 1128s # goto out; 1128s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1128s # { 1128s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1128s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1128s # { 1128s # GVariant *value; 1128s # 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); 1128s # if (value != NULL) 1128s # { 1128s # g_variant_take_ref (value); 1128s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1128s # g_variant_unref (value); 1128s # } 1128s # } 1128s # } 1128s # out: 1128s # return g_variant_builder_end (&builder); 1128s # } 1128s # 1128s # static gboolean _good_types_emit_changed (gpointer user_data); 1128s # 1128s # static void 1128s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1128s # gboolean emit_changed = FALSE; 1128s # 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # if (skeleton->priv->changed_properties_idle_source != NULL) 1128s # { 1128s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1128s # skeleton->priv->changed_properties_idle_source = NULL; 1128s # emit_changed = TRUE; 1128s # } 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # 1128s # if (emit_changed) 1128s # _good_types_emit_changed (skeleton); 1128s # } 1128s # 1128s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1128s # G_ADD_PRIVATE (GoodTypesSkeleton) 1128s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1128s # 1128s # #else 1128s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1128s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1128s # 1128s # #endif 1128s # static void 1128s # good_types_skeleton_finalize (GObject *object) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1128s # guint n; 1128s # for (n = 0; n < 1; n++) 1128s # g_value_unset (&skeleton->priv->properties[n]); 1128s # g_free (skeleton->priv->properties); 1128s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1128s # if (skeleton->priv->changed_properties_idle_source != NULL) 1128s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1128s # g_main_context_unref (skeleton->priv->context); 1128s # g_mutex_clear (&skeleton->priv->lock); 1128s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_get_property (GObject *object, 1128s # guint prop_id, 1128s # GValue *value, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1128s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # } 1128s # 1128s # static gboolean 1128s # _good_types_emit_changed (gpointer user_data) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1128s # GList *l; 1128s # GVariantBuilder builder; 1128s # GVariantBuilder invalidated_builder; 1128s # guint num_changes; 1128s # 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1128s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1128s # #else 1128s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1128s # #endif 1128s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1128s # { 1128s # ChangedProperty *cp = l->data; 1128s # GVariant *variant; 1128s # const GValue *cur_value; 1128s # 1128s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1128s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1128s # { 1128s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1128s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1128s # g_variant_unref (variant); 1128s # num_changes++; 1128s # } 1128s # } 1128s # if (num_changes > 0) 1128s # { 1128s # GList *connections, *ll; 1128s # GVariant *signal_variant; 1128s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1128s # &builder, &invalidated_builder)); 1128s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1128s # for (ll = connections; ll != NULL; ll = ll->next) 1128s # { 1128s # GDBusConnection *connection = ll->data; 1128s # 1128s # g_dbus_connection_emit_signal (connection, 1128s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1128s # "org.freedesktop.DBus.Properties", 1128s # "PropertiesChanged", 1128s # signal_variant, 1128s # NULL); 1128s # } 1128s # g_variant_unref (signal_variant); 1128s # g_list_free_full (connections, g_object_unref); 1128s # } 1128s # else 1128s # { 1128s # g_variant_builder_clear (&builder); 1128s # g_variant_builder_clear (&invalidated_builder); 1128s # } 1128s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1128s # skeleton->priv->changed_properties = NULL; 1128s # skeleton->priv->changed_properties_idle_source = NULL; 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # return FALSE; 1128s # } 1128s # 1128s # static void 1128s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1128s # { 1128s # ChangedProperty *cp; 1128s # GList *l; 1128s # cp = NULL; 1128s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1128s # { 1128s # ChangedProperty *i_cp = l->data; 1128s # if (i_cp->info == info) 1128s # { 1128s # cp = i_cp; 1128s # break; 1128s # } 1128s # } 1128s # if (cp == NULL) 1128s # { 1128s # cp = g_new0 (ChangedProperty, 1); 1128s # cp->prop_id = prop_id; 1128s # cp->info = info; 1128s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1128s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1128s # g_value_copy (orig_value, &cp->orig_value); 1128s # } 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_notify (GObject *object, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # if (skeleton->priv->changed_properties != NULL && 1128s # skeleton->priv->changed_properties_idle_source == NULL) 1128s # { 1128s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1128s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1128s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1128s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1128s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1128s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1128s # } 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_set_property (GObject *object, 1128s # guint prop_id, 1128s # const GValue *value, 1128s # GParamSpec *pspec) 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info; 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1128s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1128s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # g_object_freeze_notify (object); 1128s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1128s # { 1128s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1128s # info->emits_changed_signal) 1128s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1128s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1128s # g_object_notify_by_pspec (object, pspec); 1128s # } 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # g_object_thaw_notify (object); 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1128s # { 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1128s # #else 1128s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1128s # #endif 1128s # 1128s # g_mutex_init (&skeleton->priv->lock); 1128s # skeleton->priv->context = g_main_context_ref_thread_default (); 1128s # skeleton->priv->properties = g_new0 (GValue, 1); 1128s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1128s # } 1128s # 1128s # static GVariant * 1128s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1128s # GVariant *value; 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # return value; 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1128s # { 1128s # GObjectClass *gobject_class; 1128s # GDBusInterfaceSkeletonClass *skeleton_class; 1128s # 1128s # gobject_class = G_OBJECT_CLASS (klass); 1128s # gobject_class->finalize = good_types_skeleton_finalize; 1128s # gobject_class->get_property = good_types_skeleton_get_property; 1128s # gobject_class->set_property = good_types_skeleton_set_property; 1128s # gobject_class->notify = good_types_skeleton_notify; 1128s # 1128s # 1128s # good_types_override_properties (gobject_class, 1); 1128s # 1128s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1128s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1128s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1128s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1128s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1128s # 1128s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1128s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1128s # #endif 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1128s # { 1128s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1128s # } 1128s # 1128s # /** 1128s # * good_types_skeleton_new: 1128s # * 1128s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1128s # * 1128s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1128s # */ 1128s # GoodTypes * 1128s # good_types_skeleton_new (void) 1128s # { 1128s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1128s # } 1128s # Error: 1128s # 1128s # /tmp/tmpwa6xnyt4/tmpjnl652ve.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmpjnl652ve.xml', '--output', '-', '--body'] 1128s # Return code: 0 1128s # Output: 1128s # /* 1128s # * This file is generated by gdbus-codegen, do not modify it. 1128s # * 1128s # * The license of this code is the same as for the D-Bus interface description 1128s # * it was derived from. Note that it links to GLib, so must comply with the 1128s # * LGPL linking clauses. 1128s # */ 1128s # 1128s # #ifdef HAVE_CONFIG_H 1128s # # include "config.h" 1128s # #endif 1128s # 1128s # #include 1128s # #ifdef G_OS_UNIX 1128s # # include 1128s # #endif 1128s # 1128s # #ifdef G_ENABLE_DEBUG 1128s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1128s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1128s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1128s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1128s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1128s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1128s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1128s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1128s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1128s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1128s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1128s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1128s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1128s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1128s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1128s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1128s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1128s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1128s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1128s # #else /* !G_ENABLE_DEBUG */ 1128s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1128s # * Do not access GValues directly in your code. Instead, use the 1128s # * g_value_get_*() functions 1128s # */ 1128s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1128s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1128s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1128s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1128s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1128s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1128s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1128s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1128s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1128s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1128s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1128s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1128s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1128s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1128s # #endif /* !G_ENABLE_DEBUG */ 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusArgInfo parent_struct; 1128s # gboolean use_gvariant; 1128s # } _ExtendedGDBusArgInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusMethodInfo parent_struct; 1128s # const gchar *signal_name; 1128s # gboolean pass_fdlist; 1128s # } _ExtendedGDBusMethodInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusSignalInfo parent_struct; 1128s # const gchar *signal_name; 1128s # } _ExtendedGDBusSignalInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusPropertyInfo parent_struct; 1128s # const gchar *hyphen_name; 1128s # guint use_gvariant : 1; 1128s # guint emits_changed_signal : 1; 1128s # } _ExtendedGDBusPropertyInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusInterfaceInfo parent_struct; 1128s # const gchar *hyphen_name; 1128s # } _ExtendedGDBusInterfaceInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info; 1128s # guint prop_id; 1128s # GValue orig_value; /* the value before the change */ 1128s # } ChangedProperty; 1128s # 1128s # static void 1128s # _changed_property_free (ChangedProperty *data) 1128s # { 1128s # g_value_unset (&data->orig_value); 1128s # g_free (data); 1128s # } 1128s # 1128s # static gboolean 1128s # _g_strv_equal0 (gchar **a, gchar **b) 1128s # { 1128s # gboolean ret = FALSE; 1128s # guint n; 1128s # if (a == NULL && b == NULL) 1128s # { 1128s # ret = TRUE; 1128s # goto out; 1128s # } 1128s # if (a == NULL || b == NULL) 1128s # goto out; 1128s # if (g_strv_length (a) != g_strv_length (b)) 1128s # goto out; 1128s # for (n = 0; a[n] != NULL; n++) 1128s # if (g_strcmp0 (a[n], b[n]) != 0) 1128s # goto out; 1128s # ret = TRUE; 1128s # out: 1128s # return ret; 1128s # } 1128s # 1128s # static gboolean 1128s # _g_variant_equal0 (GVariant *a, GVariant *b) 1128s # { 1128s # gboolean ret = FALSE; 1128s # if (a == NULL && b == NULL) 1128s # { 1128s # ret = TRUE; 1128s # goto out; 1128s # } 1128s # if (a == NULL || b == NULL) 1128s # goto out; 1128s # ret = g_variant_equal (a, b); 1128s # out: 1128s # return ret; 1128s # } 1128s # 1128s # G_GNUC_UNUSED static gboolean 1128s # _g_value_equal (const GValue *a, const GValue *b) 1128s # { 1128s # gboolean ret = FALSE; 1128s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1128s # switch (G_VALUE_TYPE (a)) 1128s # { 1128s # case G_TYPE_BOOLEAN: 1128s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1128s # break; 1128s # case G_TYPE_UCHAR: 1128s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1128s # break; 1128s # case G_TYPE_INT: 1128s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1128s # break; 1128s # case G_TYPE_UINT: 1128s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1128s # break; 1128s # case G_TYPE_INT64: 1128s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1128s # break; 1128s # case G_TYPE_UINT64: 1128s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1128s # break; 1128s # case G_TYPE_DOUBLE: 1128s # { 1128s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1128s # gdouble da = g_value_get_double (a); 1128s # gdouble db = g_value_get_double (b); 1128s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1128s # } 1128s # break; 1128s # case G_TYPE_STRING: 1128s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1128s # break; 1128s # case G_TYPE_VARIANT: 1128s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1128s # break; 1128s # default: 1128s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1128s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1128s # else 1128s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1128s # break; 1128s # } 1128s # return ret; 1128s # } 1128s # 1128s # /* ------------------------------------------------------------------------ 1128s # * Code for interface GoodTypes 1128s # * ------------------------------------------------------------------------ 1128s # */ 1128s # 1128s # /** 1128s # * SECTION:GoodTypes 1128s # * @title: GoodTypes 1128s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1128s # * 1128s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1128s # */ 1128s # 1128s # /* ---- Introspection data for GoodTypes ---- */ 1128s # 1128s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1128s # { 1128s # { 1128s # -1, 1128s # (gchar *) "GoodPropertyType", 1128s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas", 1128s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1128s # NULL 1128s # }, 1128s # "good-property-type", 1128s # FALSE, 1128s # TRUE 1128s # }; 1128s # 1128s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1128s # { 1128s # &_good_types_property_info_good_property_type.parent_struct, 1128s # NULL 1128s # }; 1128s # 1128s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1128s # { 1128s # { 1128s # -1, 1128s # (gchar *) "GoodTypes", 1128s # NULL, 1128s # NULL, 1128s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1128s # NULL 1128s # }, 1128s # "good-types", 1128s # }; 1128s # 1128s # 1128s # /** 1128s # * good_types_interface_info: 1128s # * 1128s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1128s # * 1128s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1128s # */ 1128s # GDBusInterfaceInfo * 1128s # good_types_interface_info (void) 1128s # { 1128s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1128s # } 1128s # 1128s # /** 1128s # * good_types_override_properties: 1128s # * @klass: The class structure for a #GObject derived class. 1128s # * @property_id_begin: The property id to assign to the first overridden property. 1128s # * 1128s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1128s # * The properties are overridden in the order they are defined. 1128s # * 1128s # * Returns: The last property id. 1128s # */ 1128s # guint 1128s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1128s # { 1128s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1128s # return property_id_begin - 1; 1128s # } 1128s # 1128s # 1128s # 1128s # /** 1128s # * GoodTypes: 1128s # * 1128s # * Abstract interface type for the D-Bus interface GoodTypes. 1128s # */ 1128s # 1128s # /** 1128s # * GoodTypesIface: 1128s # * @parent_iface: The parent interface. 1128s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1128s # * 1128s # * Virtual table for the D-Bus interface GoodTypes. 1128s # */ 1128s # 1128s # typedef GoodTypesIface GoodTypesInterface; 1128s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1128s # 1128s # static void 1128s # good_types_default_init (GoodTypesIface *iface) 1128s # { 1128s # /* GObject properties for D-Bus properties: */ 1128s # /** 1128s # * GoodTypes:good-property-type: 1128s # * 1128s # * Represents the D-Bus property "GoodPropertyType". 1128s # * 1128s # * 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. 1128s # */ 1128s # g_object_interface_install_property (iface, 1128s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1128s # } 1128s # 1128s # /** 1128s # * good_types_get_good_property_type: (skip) 1128s # * @object: A GoodTypes. 1128s # * 1128s # * Gets the value of the "GoodPropertyType" D-Bus property. 1128s # * 1128s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1128s # * 1128s # * 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. 1128s # * 1128s # * 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. 1128s # */ 1128s # GVariant * 1128s # good_types_get_good_property_type (GoodTypes *object) 1128s # { 1128s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1128s # 1128s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1128s # } 1128s # 1128s # /** 1128s # * good_types_dup_good_property_type: (skip) 1128s # * @object: A GoodTypes. 1128s # * 1128s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1128s # * 1128s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1128s # * 1128s # * 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(). 1128s # */ 1128s # GVariant * 1128s # good_types_dup_good_property_type (GoodTypes *object) 1128s # { 1128s # GVariant *value; 1128s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1128s # return value; 1128s # } 1128s # 1128s # /** 1128s # * good_types_set_good_property_type: (skip) 1128s # * @object: A GoodTypes. 1128s # * @value: The value to set. 1128s # * 1128s # * Sets the "GoodPropertyType" D-Bus property to @value. 1128s # * 1128s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1128s # */ 1128s # void 1128s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1128s # { 1128s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1128s # } 1128s # 1128s # /* ------------------------------------------------------------------------ */ 1128s # 1128s # /** 1128s # * GoodTypesProxy: 1128s # * 1128s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1128s # */ 1128s # 1128s # /** 1128s # * GoodTypesProxyClass: 1128s # * @parent_class: The parent class. 1128s # * 1128s # * Class structure for GoodTypesProxy. 1128s # */ 1128s # 1128s # struct _GoodTypesProxyPrivate 1128s # { 1128s # GData *qdata; 1128s # }; 1128s # 1128s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1128s # 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1128s # G_ADD_PRIVATE (GoodTypesProxy) 1128s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1128s # 1128s # #else 1128s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1128s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1128s # 1128s # #endif 1128s # static void 1128s # good_types_proxy_finalize (GObject *object) 1128s # { 1128s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1128s # g_datalist_clear (&proxy->priv->qdata); 1128s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_get_property (GObject *object, 1128s # guint prop_id, 1128s # GValue *value, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info; 1128s # GVariant *variant; 1128s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1128s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1128s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1128s # if (info->use_gvariant) 1128s # { 1128s # g_value_set_variant (value, variant); 1128s # } 1128s # else 1128s # { 1128s # if (variant != NULL) 1128s # g_dbus_gvariant_to_gvalue (variant, value); 1128s # } 1128s # if (variant != NULL) 1128s # g_variant_unref (variant); 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1128s # GAsyncResult *res, 1128s # gpointer user_data) 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info = user_data; 1128s # GError *error; 1128s # GVariant *_ret; 1128s # error = NULL; 1128s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1128s # if (!_ret) 1128s # { 1128s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1128s # info->parent_struct.name, 1128s # error->message, g_quark_to_string (error->domain), error->code); 1128s # g_error_free (error); 1128s # } 1128s # else 1128s # { 1128s # g_variant_unref (_ret); 1128s # } 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_set_property (GObject *object, 1128s # guint prop_id, 1128s # const GValue *value, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info; 1128s # GVariant *variant; 1128s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1128s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1128s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1128s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1128s # "org.freedesktop.DBus.Properties.Set", 1128s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1128s # G_DBUS_CALL_FLAGS_NONE, 1128s # -1, 1128s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1128s # g_variant_unref (variant); 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_g_signal (GDBusProxy *proxy, 1128s # const gchar *sender_name G_GNUC_UNUSED, 1128s # const gchar *signal_name, 1128s # GVariant *parameters) 1128s # { 1128s # _ExtendedGDBusSignalInfo *info; 1128s # GVariantIter iter; 1128s # GVariant *child; 1128s # GValue *paramv; 1128s # gsize num_params; 1128s # gsize n; 1128s # guint signal_id; 1128s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1128s # if (info == NULL) 1128s # return; 1128s # num_params = g_variant_n_children (parameters); 1128s # paramv = g_new0 (GValue, num_params + 1); 1128s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1128s # g_value_set_object (¶mv[0], proxy); 1128s # g_variant_iter_init (&iter, parameters); 1128s # n = 1; 1128s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1128s # { 1128s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1128s # if (arg_info->use_gvariant) 1128s # { 1128s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1128s # g_value_set_variant (¶mv[n], child); 1128s # n++; 1128s # } 1128s # else 1128s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1128s # g_variant_unref (child); 1128s # } 1128s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1128s # g_signal_emitv (paramv, signal_id, 0, NULL); 1128s # for (n = 0; n < num_params + 1; n++) 1128s # g_value_unset (¶mv[n]); 1128s # g_free (paramv); 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1128s # GVariant *changed_properties, 1128s # const gchar *const *invalidated_properties) 1128s # { 1128s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1128s # guint n; 1128s # const gchar *key; 1128s # GVariantIter *iter; 1128s # _ExtendedGDBusPropertyInfo *info; 1128s # g_variant_get (changed_properties, "a{sv}", &iter); 1128s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1128s # { 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1128s # g_datalist_remove_data (&proxy->priv->qdata, key); 1128s # if (info != NULL) 1128s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1128s # } 1128s # g_variant_iter_free (iter); 1128s # for (n = 0; invalidated_properties[n] != NULL; n++) 1128s # { 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1128s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1128s # if (info != NULL) 1128s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1128s # } 1128s # } 1128s # 1128s # static GVariant * 1128s # good_types_proxy_get_good_property_type (GoodTypes *object) 1128s # { 1128s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1128s # GVariant *variant; 1128s # GVariant *value = NULL; 1128s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1128s # value = variant; 1128s # if (variant != NULL) 1128s # g_variant_unref (variant); 1128s # return value; 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_init (GoodTypesProxy *proxy) 1128s # { 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1128s # #else 1128s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1128s # #endif 1128s # 1128s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1128s # { 1128s # GObjectClass *gobject_class; 1128s # GDBusProxyClass *proxy_class; 1128s # 1128s # gobject_class = G_OBJECT_CLASS (klass); 1128s # gobject_class->finalize = good_types_proxy_finalize; 1128s # gobject_class->get_property = good_types_proxy_get_property; 1128s # gobject_class->set_property = good_types_proxy_set_property; 1128s # 1128s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1128s # proxy_class->g_signal = good_types_proxy_g_signal; 1128s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1128s # 1128s # good_types_override_properties (gobject_class, 1); 1128s # 1128s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1128s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1128s # #endif 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_iface_init (GoodTypesIface *iface) 1128s # { 1128s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1128s # } 1128s # 1128s # /** 1128s # * good_types_proxy_new: 1128s # * @connection: A #GDBusConnection. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1128s # * @user_data: User data to pass to @callback. 1128s # * 1128s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1128s # * 1128s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1128s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1128s # * 1128s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1128s # */ 1128s # void 1128s # good_types_proxy_new ( 1128s # GDBusConnection *connection, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GAsyncReadyCallback callback, 1128s # gpointer user_data) 1128s # { 1128s # 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); 1128s # } 1128s # 1128s # /** 1128s # * good_types_proxy_new_finish: 1128s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Finishes an operation started with good_types_proxy_new(). 1128s # * 1128s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # GoodTypes * 1128s # good_types_proxy_new_finish ( 1128s # GAsyncResult *res, 1128s # GError **error) 1128s # { 1128s # GObject *ret; 1128s # GObject *source_object; 1128s # source_object = g_async_result_get_source_object (res); 1128s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1128s # g_object_unref (source_object); 1128s # if (ret != NULL) 1128s # return GOOD_TYPES (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # /** 1128s # * good_types_proxy_new_sync: 1128s # * @connection: A #GDBusConnection. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1128s # * 1128s # * The calling thread is blocked until a reply is received. 1128s # * 1128s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1128s # * 1128s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # GoodTypes * 1128s # good_types_proxy_new_sync ( 1128s # GDBusConnection *connection, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GError **error) 1128s # { 1128s # GInitable *ret; 1128s # 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); 1128s # if (ret != NULL) 1128s # return GOOD_TYPES (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # 1128s # /** 1128s # * good_types_proxy_new_for_bus: 1128s # * @bus_type: A #GBusType. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: A bus name (well-known or unique). 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1128s # * @user_data: User data to pass to @callback. 1128s # * 1128s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1128s # * 1128s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1128s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1128s # * 1128s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1128s # */ 1128s # void 1128s # good_types_proxy_new_for_bus ( 1128s # GBusType bus_type, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GAsyncReadyCallback callback, 1128s # gpointer user_data) 1128s # { 1128s # 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); 1128s # } 1128s # 1128s # /** 1128s # * good_types_proxy_new_for_bus_finish: 1128s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1128s # * 1128s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # GoodTypes * 1128s # good_types_proxy_new_for_bus_finish ( 1128s # GAsyncResult *res, 1128s # GError **error) 1128s # { 1128s # GObject *ret; 1128s # GObject *source_object; 1128s # source_object = g_async_result_get_source_object (res); 1128s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1128s # g_object_unref (source_object); 1128s # if (ret != NULL) 1128s # return GOOD_TYPES (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # /** 1128s # * good_types_proxy_new_for_bus_sync: 1128s # * @bus_type: A #GBusType. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: A bus name (well-known or unique). 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1128s # * 1128s # * The calling thread is blocked until a reply is received. 1128s # * 1128s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1128s # * 1128s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # GoodTypes * 1128s # good_types_proxy_new_for_bus_sync ( 1128s # GBusType bus_type, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GError **error) 1128s # { 1128s # GInitable *ret; 1128s # 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); 1128s # if (ret != NULL) 1128s # return GOOD_TYPES (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # 1128s # /* ------------------------------------------------------------------------ */ 1128s # 1128s # /** 1128s # * GoodTypesSkeleton: 1128s # * 1128s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1128s # */ 1128s # 1128s # /** 1128s # * GoodTypesSkeletonClass: 1128s # * @parent_class: The parent class. 1128s # * 1128s # * Class structure for GoodTypesSkeleton. 1128s # */ 1128s # 1128s # struct _GoodTypesSkeletonPrivate 1128s # { 1128s # GValue *properties; 1128s # GList *changed_properties; 1128s # GSource *changed_properties_idle_source; 1128s # GMainContext *context; 1128s # GMutex lock; 1128s # }; 1128s # 1128s # static void 1128s # _good_types_skeleton_handle_method_call ( 1128s # GDBusConnection *connection G_GNUC_UNUSED, 1128s # const gchar *sender G_GNUC_UNUSED, 1128s # const gchar *object_path G_GNUC_UNUSED, 1128s # const gchar *interface_name, 1128s # const gchar *method_name, 1128s # GVariant *parameters, 1128s # GDBusMethodInvocation *invocation, 1128s # gpointer user_data) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1128s # _ExtendedGDBusMethodInfo *info; 1128s # GVariantIter iter; 1128s # GVariant *child; 1128s # GValue *paramv; 1128s # gsize num_params; 1128s # guint num_extra; 1128s # gsize n; 1128s # guint signal_id; 1128s # GValue return_value = G_VALUE_INIT; 1128s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1128s # g_assert (info != NULL); 1128s # num_params = g_variant_n_children (parameters); 1128s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1128s # n = 0; 1128s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1128s # g_value_set_object (¶mv[n++], skeleton); 1128s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1128s # g_value_set_object (¶mv[n++], invocation); 1128s # if (info->pass_fdlist) 1128s # { 1128s # #ifdef G_OS_UNIX 1128s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1128s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1128s # #else 1128s # g_assert_not_reached (); 1128s # #endif 1128s # } 1128s # g_variant_iter_init (&iter, parameters); 1128s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1128s # { 1128s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1128s # if (arg_info->use_gvariant) 1128s # { 1128s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1128s # g_value_set_variant (¶mv[n], child); 1128s # n++; 1128s # } 1128s # else 1128s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1128s # g_variant_unref (child); 1128s # } 1128s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1128s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1128s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1128s # if (!g_value_get_boolean (&return_value)) 1128s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1128s # g_value_unset (&return_value); 1128s # for (n = 0; n < num_params + num_extra; n++) 1128s # g_value_unset (¶mv[n]); 1128s # g_free (paramv); 1128s # } 1128s # 1128s # static GVariant * 1128s # _good_types_skeleton_handle_get_property ( 1128s # GDBusConnection *connection G_GNUC_UNUSED, 1128s # const gchar *sender G_GNUC_UNUSED, 1128s # const gchar *object_path G_GNUC_UNUSED, 1128s # const gchar *interface_name G_GNUC_UNUSED, 1128s # const gchar *property_name, 1128s # GError **error, 1128s # gpointer user_data) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1128s # GValue value = G_VALUE_INIT; 1128s # GParamSpec *pspec; 1128s # _ExtendedGDBusPropertyInfo *info; 1128s # GVariant *ret; 1128s # ret = NULL; 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1128s # g_assert (info != NULL); 1128s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1128s # if (pspec == NULL) 1128s # { 1128s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1128s # } 1128s # else 1128s # { 1128s # g_value_init (&value, pspec->value_type); 1128s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1128s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1128s # g_value_unset (&value); 1128s # } 1128s # return ret; 1128s # } 1128s # 1128s # static gboolean 1128s # _good_types_skeleton_handle_set_property ( 1128s # GDBusConnection *connection G_GNUC_UNUSED, 1128s # const gchar *sender G_GNUC_UNUSED, 1128s # const gchar *object_path G_GNUC_UNUSED, 1128s # const gchar *interface_name G_GNUC_UNUSED, 1128s # const gchar *property_name, 1128s # GVariant *variant, 1128s # GError **error, 1128s # gpointer user_data) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1128s # GValue value = G_VALUE_INIT; 1128s # GParamSpec *pspec; 1128s # _ExtendedGDBusPropertyInfo *info; 1128s # gboolean ret; 1128s # ret = FALSE; 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1128s # g_assert (info != NULL); 1128s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1128s # if (pspec == NULL) 1128s # { 1128s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1128s # } 1128s # else 1128s # { 1128s # if (info->use_gvariant) 1128s # g_value_set_variant (&value, variant); 1128s # else 1128s # g_dbus_gvariant_to_gvalue (variant, &value); 1128s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1128s # g_value_unset (&value); 1128s # ret = TRUE; 1128s # } 1128s # return ret; 1128s # } 1128s # 1128s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1128s # { 1128s # _good_types_skeleton_handle_method_call, 1128s # _good_types_skeleton_handle_get_property, 1128s # _good_types_skeleton_handle_set_property, 1128s # {NULL} 1128s # }; 1128s # 1128s # static GDBusInterfaceInfo * 1128s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1128s # { 1128s # return good_types_interface_info (); 1128s # } 1128s # 1128s # static GDBusInterfaceVTable * 1128s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1128s # { 1128s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1128s # } 1128s # 1128s # static GVariant * 1128s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1128s # 1128s # GVariantBuilder builder; 1128s # guint n; 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1128s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # #else 1128s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # #endif 1128s # if (_good_types_interface_info.parent_struct.properties == NULL) 1128s # goto out; 1128s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1128s # { 1128s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1128s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1128s # { 1128s # GVariant *value; 1128s # 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); 1128s # if (value != NULL) 1128s # { 1128s # g_variant_take_ref (value); 1128s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1128s # g_variant_unref (value); 1128s # } 1128s # } 1128s # } 1128s # out: 1128s # return g_variant_builder_end (&builder); 1128s # } 1128s # 1128s # static gboolean _good_types_emit_changed (gpointer user_data); 1128s # 1128s # static void 1128s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1128s # gboolean emit_changed = FALSE; 1128s # 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # if (skeleton->priv->changed_properties_idle_source != NULL) 1128s # { 1128s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1128s # skeleton->priv->changed_properties_idle_source = NULL; 1128s # emit_changed = TRUE; 1128s # } 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # 1128s # if (emit_changed) 1128s # _good_types_emit_changed (skeleton); 1128s # } 1128s # 1128s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1128s # G_ADD_PRIVATE (GoodTypesSkeleton) 1128s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1128s # 1128s # #else 1128s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1128s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1128s # 1128s # #endif 1128s # static void 1128s # good_types_skeleton_finalize (GObject *object) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1128s # guint n; 1128s # for (n = 0; n < 1; n++) 1128s # g_value_unset (&skeleton->priv->properties[n]); 1128s # g_free (skeleton->priv->properties); 1128s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1128s # if (skeleton->priv->changed_properties_idle_source != NULL) 1128s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1128s # g_main_context_unref (skeleton->priv->context); 1128s # g_mutex_clear (&skeleton->priv->lock); 1128s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_get_property (GObject *object, 1128s # guint prop_id, 1128s # GValue *value, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1128s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # } 1128s # 1128s # static gboolean 1128s # _good_types_emit_changed (gpointer user_data) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1128s # GList *l; 1128s # GVariantBuilder builder; 1128s # GVariantBuilder invalidated_builder; 1128s # guint num_changes; 1128s # 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1128s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1128s # #else 1128s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1128s # #endif 1128s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1128s # { 1128s # ChangedProperty *cp = l->data; 1128s # GVariant *variant; 1128s # const GValue *cur_value; 1128s # 1128s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1128s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1128s # { 1128s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1128s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1128s # g_variant_unref (variant); 1128s # num_changes++; 1128s # } 1128s # } 1128s # if (num_changes > 0) 1128s # { 1128s # GList *connections, *ll; 1128s # GVariant *signal_variant; 1128s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1128s # &builder, &invalidated_builder)); 1128s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1128s # for (ll = connections; ll != NULL; ll = ll->next) 1128s # { 1128s # GDBusConnection *connection = ll->data; 1128s # 1128s # g_dbus_connection_emit_signal (connection, 1128s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1128s # "org.freedesktop.DBus.Properties", 1128s # "PropertiesChanged", 1128s # signal_variant, 1128s # NULL); 1128s # } 1128s # g_variant_unref (signal_variant); 1128s # g_list_free_full (connections, g_object_unref); 1128s # } 1128s # else 1128s # { 1128s # g_variant_builder_clear (&builder); 1128s # g_variant_builder_clear (&invalidated_builder); 1128s # } 1128s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1128s # skeleton->priv->changed_properties = NULL; 1128s # skeleton->priv->changed_properties_idle_source = NULL; 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # return FALSE; 1128s # } 1128s # 1128s # static void 1128s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1128s # { 1128s # ChangedProperty *cp; 1128s # GList *l; 1128s # cp = NULL; 1128s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1128s # { 1128s # ChangedProperty *i_cp = l->data; 1128s # if (i_cp->info == info) 1128s # { 1128s # cp = i_cp; 1128s # break; 1128s # } 1128s # } 1128s # if (cp == NULL) 1128s # { 1128s # cp = g_new0 (ChangedProperty, 1); 1128s # cp->prop_id = prop_id; 1128s # cp->info = info; 1128s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1128s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1128s # g_value_copy (orig_value, &cp->orig_value); 1128s # } 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_notify (GObject *object, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # if (skeleton->priv->changed_properties != NULL && 1128s # skeleton->priv->changed_properties_idle_source == NULL) 1128s # { 1128s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1128s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1128s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1128s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1128s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1128s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1128s # } 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_set_property (GObject *object, 1128s # guint prop_id, 1128s # const GValue *value, 1128s # GParamSpec *pspec) 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info; 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1128s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1128s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # g_object_freeze_notify (object); 1128s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1128s # { 1128s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1128s # info->emits_changed_signal) 1128s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1128s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1128s # g_object_notify_by_pspec (object, pspec); 1128s # } 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # g_object_thaw_notify (object); 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1128s # { 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1128s # #else 1128s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1128s # #endif 1128s # 1128s # g_mutex_init (&skeleton->priv->lock); 1128s # skeleton->priv->context = g_main_context_ref_thread_default (); 1128s # skeleton->priv->properties = g_new0 (GValue, 1); 1128s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1128s # } 1128s # 1128s # static GVariant * 1128s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1128s # GVariant *value; 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # return value; 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1128s # { 1128s # GObjectClass *gobject_class; 1128s # GDBusInterfaceSkeletonClass *skeleton_class; 1128s # 1128s # gobject_class = G_OBJECT_CLASS (klass); 1128s # gobject_class->finalize = good_types_skeleton_finalize; 1128s # gobject_class->get_property = good_types_skeleton_get_property; 1128s # gobject_class->set_property = good_types_skeleton_set_property; 1128s # gobject_class->notify = good_types_skeleton_notify; 1128s # 1128s # 1128s # good_types_override_properties (gobject_class, 1); 1128s # 1128s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1128s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1128s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1128s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1128s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1128s # 1128s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1128s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1128s # #endif 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1128s # { 1128s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1128s # } 1128s # 1128s # /** 1128s # * good_types_skeleton_new: 1128s # * 1128s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1128s # * 1128s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1128s # */ 1128s # GoodTypes * 1128s # good_types_skeleton_new (void) 1128s # { 1128s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1128s # } 1128s # Error: 1128s # 1128s # /tmp/tmpwa6xnyt4/tmpokb3l_lv.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpwa6xnyt4/tmpokb3l_lv.xml', '--output', '-', '--body'] 1128s # Return code: 0 1128s # Output: 1128s # /* 1128s # * This file is generated by gdbus-codegen, do not modify it. 1128s # * 1128s # * The license of this code is the same as for the D-Bus interface description 1128s # * it was derived from. Note that it links to GLib, so must comply with the 1128s # * LGPL linking clauses. 1128s # */ 1128s # 1128s # #ifdef HAVE_CONFIG_H 1128s # # include "config.h" 1128s # #endif 1128s # 1128s # #include 1128s # #ifdef G_OS_UNIX 1128s # # include 1128s # #endif 1128s # 1128s # #ifdef G_ENABLE_DEBUG 1128s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1128s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1128s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1128s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1128s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1128s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1128s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1128s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1128s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1128s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1128s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1128s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1128s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1128s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1128s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1128s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1128s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1128s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1128s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1128s # #else /* !G_ENABLE_DEBUG */ 1128s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1128s # * Do not access GValues directly in your code. Instead, use the 1128s # * g_value_get_*() functions 1128s # */ 1128s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1128s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1128s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1128s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1128s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1128s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1128s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1128s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1128s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1128s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1128s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1128s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1128s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1128s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1128s # #endif /* !G_ENABLE_DEBUG */ 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusArgInfo parent_struct; 1128s # gboolean use_gvariant; 1128s # } _ExtendedGDBusArgInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusMethodInfo parent_struct; 1128s # const gchar *signal_name; 1128s # gboolean pass_fdlist; 1128s # } _ExtendedGDBusMethodInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusSignalInfo parent_struct; 1128s # const gchar *signal_name; 1128s # } _ExtendedGDBusSignalInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusPropertyInfo parent_struct; 1128s # const gchar *hyphen_name; 1128s # guint use_gvariant : 1; 1128s # guint emits_changed_signal : 1; 1128s # } _ExtendedGDBusPropertyInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusInterfaceInfo parent_struct; 1128s # const gchar *hyphen_name; 1128s # } _ExtendedGDBusInterfaceInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info; 1128s # guint prop_id; 1128s # GValue orig_value; /* the value before the change */ 1128s # } ChangedProperty; 1128s # 1128s # static void 1128s # _changed_property_free (ChangedProperty *data) 1128s # { 1128s # g_value_unset (&data->orig_value); 1128s # g_free (data); 1128s # } 1128s # 1128s # static gboolean 1128s # _g_strv_equal0 (gchar **a, gchar **b) 1128s # { 1128s # gboolean ret = FALSE; 1128s # guint n; 1128s # if (a == NULL && b == NULL) 1128s # { 1128s # ret = TRUE; 1128s # goto out; 1128s # } 1128s # if (a == NULL || b == NULL) 1128s # goto out; 1128s # if (g_strv_length (a) != g_strv_length (b)) 1128s # goto out; 1128s # for (n = 0; a[n] != NULL; n++) 1128s # if (g_strcmp0 (a[n], b[n]) != 0) 1128s # goto out; 1128s # ret = TRUE; 1128s # out: 1128s # return ret; 1128s # } 1128s # 1128s # static gboolean 1128s # _g_variant_equal0 (GVariant *a, GVariant *b) 1128s # { 1128s # gboolean ret = FALSE; 1128s # if (a == NULL && b == NULL) 1128s # { 1128s # ret = TRUE; 1128s # goto out; 1128s # } 1128s # if (a == NULL || b == NULL) 1128s # goto out; 1128s # ret = g_variant_equal (a, b); 1128s # out: 1128s # return ret; 1128s # } 1128s # 1128s # G_GNUC_UNUSED static gboolean 1128s # _g_value_equal (const GValue *a, const GValue *b) 1128s # { 1128s # gboolean ret = FALSE; 1128s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1128s # switch (G_VALUE_TYPE (a)) 1128s # { 1128s # case G_TYPE_BOOLEAN: 1128s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1128s # break; 1128s # case G_TYPE_UCHAR: 1128s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1128s # break; 1128s # case G_TYPE_INT: 1128s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1128s # break; 1128s # case G_TYPE_UINT: 1128s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1128s # break; 1128s # case G_TYPE_INT64: 1128s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1128s # break; 1128s # case G_TYPE_UINT64: 1128s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1128s # break; 1128s # case G_TYPE_DOUBLE: 1128s # { 1128s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1128s # gdouble da = g_value_get_double (a); 1128s # gdouble db = g_value_get_double (b); 1128s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1128s # } 1128s # break; 1128s # case G_TYPE_STRING: 1128s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1128s # break; 1128s # case G_TYPE_VARIANT: 1128s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1128s # break; 1128s # default: 1128s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1128s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1128s # else 1128s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1128s # break; 1128s # } 1128s # return ret; 1128s # } 1128s # 1128s # /* ------------------------------------------------------------------------ 1128s # * Code for interface GoodTypes 1128s # * ------------------------------------------------------------------------ 1128s # */ 1128s # 1128s # /** 1128s # * SECTION:GoodTypes 1128s # * @title: GoodTypes 1128s # * @short_description: Generated C code for the GoodTypes D-Bus interface 1128s # * 1128s # * This section contains code for working with the GoodTypes D-Bus interface in C. 1128s # */ 1128s # 1128s # /* ---- Introspection data for GoodTypes ---- */ 1128s # 1128s # static const _ExtendedGDBusPropertyInfo _good_types_property_info_good_property_type = 1128s # { 1128s # { 1128s # -1, 1128s # (gchar *) "GoodPropertyType", 1128s # (gchar *) "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})", 1128s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1128s # NULL 1128s # }, 1128s # "good-property-type", 1128s # FALSE, 1128s # TRUE 1128s # }; 1128s # 1128s # static const GDBusPropertyInfo * const _good_types_property_info_pointers[] = 1128s # { 1128s # &_good_types_property_info_good_property_type.parent_struct, 1128s # NULL 1128s # }; 1128s # 1128s # static const _ExtendedGDBusInterfaceInfo _good_types_interface_info = 1128s # { 1128s # { 1128s # -1, 1128s # (gchar *) "GoodTypes", 1128s # NULL, 1128s # NULL, 1128s # (GDBusPropertyInfo **) &_good_types_property_info_pointers, 1128s # NULL 1128s # }, 1128s # "good-types", 1128s # }; 1128s # 1128s # 1128s # /** 1128s # * good_types_interface_info: 1128s # * 1128s # * Gets a machine-readable description of the GoodTypes D-Bus interface. 1128s # * 1128s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1128s # */ 1128s # GDBusInterfaceInfo * 1128s # good_types_interface_info (void) 1128s # { 1128s # return (GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct; 1128s # } 1128s # 1128s # /** 1128s # * good_types_override_properties: 1128s # * @klass: The class structure for a #GObject derived class. 1128s # * @property_id_begin: The property id to assign to the first overridden property. 1128s # * 1128s # * Overrides all #GObject properties in the GoodTypes interface for a concrete class. 1128s # * The properties are overridden in the order they are defined. 1128s # * 1128s # * Returns: The last property id. 1128s # */ 1128s # guint 1128s # good_types_override_properties (GObjectClass *klass, guint property_id_begin) 1128s # { 1128s # g_object_class_override_property (klass, property_id_begin++, "good-property-type"); 1128s # return property_id_begin - 1; 1128s # } 1128s # 1128s # 1128s # 1128s # /** 1128s # * GoodTypes: 1128s # * 1128s # * Abstract interface type for the D-Bus interface GoodTypes. 1128s # */ 1128s # 1128s # /** 1128s # * GoodTypesIface: 1128s # * @parent_iface: The parent interface. 1128s # * @get_good_property_type: Getter for the #GoodTypes:good-property-type property. 1128s # * 1128s # * Virtual table for the D-Bus interface GoodTypes. 1128s # */ 1128s # 1128s # typedef GoodTypesIface GoodTypesInterface; 1128s # G_DEFINE_INTERFACE (GoodTypes, good_types, G_TYPE_OBJECT) 1128s # 1128s # static void 1128s # good_types_default_init (GoodTypesIface *iface) 1128s # { 1128s # /* GObject properties for D-Bus properties: */ 1128s # /** 1128s # * GoodTypes:good-property-type: 1128s # * 1128s # * Represents the D-Bus property "GoodPropertyType". 1128s # * 1128s # * 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. 1128s # */ 1128s # g_object_interface_install_property (iface, 1128s # g_param_spec_variant ("good-property-type", "GoodPropertyType", "GoodPropertyType", G_VARIANT_TYPE ("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa(aaaaaaaaaaaaaaaaa{sv})"), NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1128s # } 1128s # 1128s # /** 1128s # * good_types_get_good_property_type: (skip) 1128s # * @object: A GoodTypes. 1128s # * 1128s # * Gets the value of the "GoodPropertyType" D-Bus property. 1128s # * 1128s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1128s # * 1128s # * 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. 1128s # * 1128s # * 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. 1128s # */ 1128s # GVariant * 1128s # good_types_get_good_property_type (GoodTypes *object) 1128s # { 1128s # g_return_val_if_fail (IS_GOOD_TYPES (object), NULL); 1128s # 1128s # return GOOD_TYPES_GET_IFACE (object)->get_good_property_type (object); 1128s # } 1128s # 1128s # /** 1128s # * good_types_dup_good_property_type: (skip) 1128s # * @object: A GoodTypes. 1128s # * 1128s # * Gets a copy of the "GoodPropertyType" D-Bus property. 1128s # * 1128s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1128s # * 1128s # * 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(). 1128s # */ 1128s # GVariant * 1128s # good_types_dup_good_property_type (GoodTypes *object) 1128s # { 1128s # GVariant *value; 1128s # g_object_get (G_OBJECT (object), "good-property-type", &value, NULL); 1128s # return value; 1128s # } 1128s # 1128s # /** 1128s # * good_types_set_good_property_type: (skip) 1128s # * @object: A GoodTypes. 1128s # * @value: The value to set. 1128s # * 1128s # * Sets the "GoodPropertyType" D-Bus property to @value. 1128s # * 1128s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1128s # */ 1128s # void 1128s # good_types_set_good_property_type (GoodTypes *object, GVariant *value) 1128s # { 1128s # g_object_set (G_OBJECT (object), "good-property-type", value, NULL); 1128s # } 1128s # 1128s # /* ------------------------------------------------------------------------ */ 1128s # 1128s # /** 1128s # * GoodTypesProxy: 1128s # * 1128s # * The GoodTypesProxy structure contains only private data and should only be accessed using the provided API. 1128s # */ 1128s # 1128s # /** 1128s # * GoodTypesProxyClass: 1128s # * @parent_class: The parent class. 1128s # * 1128s # * Class structure for GoodTypesProxy. 1128s # */ 1128s # 1128s # struct _GoodTypesProxyPrivate 1128s # { 1128s # GData *qdata; 1128s # }; 1128s # 1128s # static void good_types_proxy_iface_init (GoodTypesIface *iface); 1128s # 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1128s # G_ADD_PRIVATE (GoodTypesProxy) 1128s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1128s # 1128s # #else 1128s # G_DEFINE_TYPE_WITH_CODE (GoodTypesProxy, good_types_proxy, G_TYPE_DBUS_PROXY, 1128s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_proxy_iface_init)) 1128s # 1128s # #endif 1128s # static void 1128s # good_types_proxy_finalize (GObject *object) 1128s # { 1128s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1128s # g_datalist_clear (&proxy->priv->qdata); 1128s # G_OBJECT_CLASS (good_types_proxy_parent_class)->finalize (object); 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_get_property (GObject *object, 1128s # guint prop_id, 1128s # GValue *value, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info; 1128s # GVariant *variant; 1128s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1128s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1128s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1128s # if (info->use_gvariant) 1128s # { 1128s # g_value_set_variant (value, variant); 1128s # } 1128s # else 1128s # { 1128s # if (variant != NULL) 1128s # g_dbus_gvariant_to_gvalue (variant, value); 1128s # } 1128s # if (variant != NULL) 1128s # g_variant_unref (variant); 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_set_property_cb (GDBusProxy *proxy, 1128s # GAsyncResult *res, 1128s # gpointer user_data) 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info = user_data; 1128s # GError *error; 1128s # GVariant *_ret; 1128s # error = NULL; 1128s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1128s # if (!_ret) 1128s # { 1128s # g_warning ("Error setting property '%s' on interface GoodTypes: %s (%s, %d)", 1128s # info->parent_struct.name, 1128s # error->message, g_quark_to_string (error->domain), error->code); 1128s # g_error_free (error); 1128s # } 1128s # else 1128s # { 1128s # g_variant_unref (_ret); 1128s # } 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_set_property (GObject *object, 1128s # guint prop_id, 1128s # const GValue *value, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info; 1128s # GVariant *variant; 1128s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1128s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1128s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1128s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1128s # "org.freedesktop.DBus.Properties.Set", 1128s # g_variant_new ("(ssv)", "GoodTypes", info->parent_struct.name, variant), 1128s # G_DBUS_CALL_FLAGS_NONE, 1128s # -1, 1128s # NULL, (GAsyncReadyCallback) good_types_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1128s # g_variant_unref (variant); 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_g_signal (GDBusProxy *proxy, 1128s # const gchar *sender_name G_GNUC_UNUSED, 1128s # const gchar *signal_name, 1128s # GVariant *parameters) 1128s # { 1128s # _ExtendedGDBusSignalInfo *info; 1128s # GVariantIter iter; 1128s # GVariant *child; 1128s # GValue *paramv; 1128s # gsize num_params; 1128s # gsize n; 1128s # guint signal_id; 1128s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, signal_name); 1128s # if (info == NULL) 1128s # return; 1128s # num_params = g_variant_n_children (parameters); 1128s # paramv = g_new0 (GValue, num_params + 1); 1128s # g_value_init (¶mv[0], TYPE_GOOD_TYPES); 1128s # g_value_set_object (¶mv[0], proxy); 1128s # g_variant_iter_init (&iter, parameters); 1128s # n = 1; 1128s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1128s # { 1128s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1128s # if (arg_info->use_gvariant) 1128s # { 1128s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1128s # g_value_set_variant (¶mv[n], child); 1128s # n++; 1128s # } 1128s # else 1128s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1128s # g_variant_unref (child); 1128s # } 1128s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1128s # g_signal_emitv (paramv, signal_id, 0, NULL); 1128s # for (n = 0; n < num_params + 1; n++) 1128s # g_value_unset (¶mv[n]); 1128s # g_free (paramv); 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_g_properties_changed (GDBusProxy *_proxy, 1128s # GVariant *changed_properties, 1128s # const gchar *const *invalidated_properties) 1128s # { 1128s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (_proxy); 1128s # guint n; 1128s # const gchar *key; 1128s # GVariantIter *iter; 1128s # _ExtendedGDBusPropertyInfo *info; 1128s # g_variant_get (changed_properties, "a{sv}", &iter); 1128s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1128s # { 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, key); 1128s # g_datalist_remove_data (&proxy->priv->qdata, key); 1128s # if (info != NULL) 1128s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1128s # } 1128s # g_variant_iter_free (iter); 1128s # for (n = 0; invalidated_properties[n] != NULL; n++) 1128s # { 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, invalidated_properties[n]); 1128s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1128s # if (info != NULL) 1128s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1128s # } 1128s # } 1128s # 1128s # static GVariant * 1128s # good_types_proxy_get_good_property_type (GoodTypes *object) 1128s # { 1128s # GoodTypesProxy *proxy = GOOD_TYPES_PROXY (object); 1128s # GVariant *variant; 1128s # GVariant *value = NULL; 1128s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "GoodPropertyType"); 1128s # value = variant; 1128s # if (variant != NULL) 1128s # g_variant_unref (variant); 1128s # return value; 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_init (GoodTypesProxy *proxy) 1128s # { 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # proxy->priv = good_types_proxy_get_instance_private (proxy); 1128s # #else 1128s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_GOOD_TYPES_PROXY, GoodTypesProxyPrivate); 1128s # #endif 1128s # 1128s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), good_types_interface_info ()); 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_class_init (GoodTypesProxyClass *klass) 1128s # { 1128s # GObjectClass *gobject_class; 1128s # GDBusProxyClass *proxy_class; 1128s # 1128s # gobject_class = G_OBJECT_CLASS (klass); 1128s # gobject_class->finalize = good_types_proxy_finalize; 1128s # gobject_class->get_property = good_types_proxy_get_property; 1128s # gobject_class->set_property = good_types_proxy_set_property; 1128s # 1128s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1128s # proxy_class->g_signal = good_types_proxy_g_signal; 1128s # proxy_class->g_properties_changed = good_types_proxy_g_properties_changed; 1128s # 1128s # good_types_override_properties (gobject_class, 1); 1128s # 1128s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1128s # g_type_class_add_private (klass, sizeof (GoodTypesProxyPrivate)); 1128s # #endif 1128s # } 1128s # 1128s # static void 1128s # good_types_proxy_iface_init (GoodTypesIface *iface) 1128s # { 1128s # iface->get_good_property_type = good_types_proxy_get_good_property_type; 1128s # } 1128s # 1128s # /** 1128s # * good_types_proxy_new: 1128s # * @connection: A #GDBusConnection. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1128s # * @user_data: User data to pass to @callback. 1128s # * 1128s # * Asynchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new() for more details. 1128s # * 1128s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1128s # * You can then call good_types_proxy_new_finish() to get the result of the operation. 1128s # * 1128s # * See good_types_proxy_new_sync() for the synchronous, blocking version of this constructor. 1128s # */ 1128s # void 1128s # good_types_proxy_new ( 1128s # GDBusConnection *connection, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GAsyncReadyCallback callback, 1128s # gpointer user_data) 1128s # { 1128s # 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); 1128s # } 1128s # 1128s # /** 1128s # * good_types_proxy_new_finish: 1128s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new(). 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Finishes an operation started with good_types_proxy_new(). 1128s # * 1128s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # GoodTypes * 1128s # good_types_proxy_new_finish ( 1128s # GAsyncResult *res, 1128s # GError **error) 1128s # { 1128s # GObject *ret; 1128s # GObject *source_object; 1128s # source_object = g_async_result_get_source_object (res); 1128s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1128s # g_object_unref (source_object); 1128s # if (ret != NULL) 1128s # return GOOD_TYPES (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # /** 1128s # * good_types_proxy_new_sync: 1128s # * @connection: A #GDBusConnection. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Synchronously creates a proxy for the D-Bus interface GoodTypes. See g_dbus_proxy_new_sync() for more details. 1128s # * 1128s # * The calling thread is blocked until a reply is received. 1128s # * 1128s # * See good_types_proxy_new() for the asynchronous version of this constructor. 1128s # * 1128s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # GoodTypes * 1128s # good_types_proxy_new_sync ( 1128s # GDBusConnection *connection, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GError **error) 1128s # { 1128s # GInitable *ret; 1128s # 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); 1128s # if (ret != NULL) 1128s # return GOOD_TYPES (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # 1128s # /** 1128s # * good_types_proxy_new_for_bus: 1128s # * @bus_type: A #GBusType. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: A bus name (well-known or unique). 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1128s # * @user_data: User data to pass to @callback. 1128s # * 1128s # * Like good_types_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1128s # * 1128s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1128s # * You can then call good_types_proxy_new_for_bus_finish() to get the result of the operation. 1128s # * 1128s # * See good_types_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1128s # */ 1128s # void 1128s # good_types_proxy_new_for_bus ( 1128s # GBusType bus_type, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GAsyncReadyCallback callback, 1128s # gpointer user_data) 1128s # { 1128s # 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); 1128s # } 1128s # 1128s # /** 1128s # * good_types_proxy_new_for_bus_finish: 1128s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to good_types_proxy_new_for_bus(). 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Finishes an operation started with good_types_proxy_new_for_bus(). 1128s # * 1128s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # GoodTypes * 1128s # good_types_proxy_new_for_bus_finish ( 1128s # GAsyncResult *res, 1128s # GError **error) 1128s # { 1128s # GObject *ret; 1128s # GObject *source_object; 1128s # source_object = g_async_result_get_source_object (res); 1128s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1128s # g_object_unref (source_object); 1128s # if (ret != NULL) 1128s # return GOOD_TYPES (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # /** 1128s # * good_types_proxy_new_for_bus_sync: 1128s # * @bus_type: A #GBusType. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: A bus name (well-known or unique). 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Like good_types_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1128s # * 1128s # * The calling thread is blocked until a reply is received. 1128s # * 1128s # * See good_types_proxy_new_for_bus() for the asynchronous version of this constructor. 1128s # * 1128s # * Returns: (transfer full) (type GoodTypesProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # GoodTypes * 1128s # good_types_proxy_new_for_bus_sync ( 1128s # GBusType bus_type, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GError **error) 1128s # { 1128s # GInitable *ret; 1128s # 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); 1128s # if (ret != NULL) 1128s # return GOOD_TYPES (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # 1128s # /* ------------------------------------------------------------------------ */ 1128s # 1128s # /** 1128s # * GoodTypesSkeleton: 1128s # * 1128s # * The GoodTypesSkeleton structure contains only private data and should only be accessed using the provided API. 1128s # */ 1128s # 1128s # /** 1128s # * GoodTypesSkeletonClass: 1128s # * @parent_class: The parent class. 1128s # * 1128s # * Class structure for GoodTypesSkeleton. 1128s # */ 1128s # 1128s # struct _GoodTypesSkeletonPrivate 1128s # { 1128s # GValue *properties; 1128s # GList *changed_properties; 1128s # GSource *changed_properties_idle_source; 1128s # GMainContext *context; 1128s # GMutex lock; 1128s # }; 1128s # 1128s # static void 1128s # _good_types_skeleton_handle_method_call ( 1128s # GDBusConnection *connection G_GNUC_UNUSED, 1128s # const gchar *sender G_GNUC_UNUSED, 1128s # const gchar *object_path G_GNUC_UNUSED, 1128s # const gchar *interface_name, 1128s # const gchar *method_name, 1128s # GVariant *parameters, 1128s # GDBusMethodInvocation *invocation, 1128s # gpointer user_data) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1128s # _ExtendedGDBusMethodInfo *info; 1128s # GVariantIter iter; 1128s # GVariant *child; 1128s # GValue *paramv; 1128s # gsize num_params; 1128s # guint num_extra; 1128s # gsize n; 1128s # guint signal_id; 1128s # GValue return_value = G_VALUE_INIT; 1128s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1128s # g_assert (info != NULL); 1128s # num_params = g_variant_n_children (parameters); 1128s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1128s # n = 0; 1128s # g_value_init (¶mv[n], TYPE_GOOD_TYPES); 1128s # g_value_set_object (¶mv[n++], skeleton); 1128s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1128s # g_value_set_object (¶mv[n++], invocation); 1128s # if (info->pass_fdlist) 1128s # { 1128s # #ifdef G_OS_UNIX 1128s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1128s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1128s # #else 1128s # g_assert_not_reached (); 1128s # #endif 1128s # } 1128s # g_variant_iter_init (&iter, parameters); 1128s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1128s # { 1128s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1128s # if (arg_info->use_gvariant) 1128s # { 1128s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1128s # g_value_set_variant (¶mv[n], child); 1128s # n++; 1128s # } 1128s # else 1128s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1128s # g_variant_unref (child); 1128s # } 1128s # signal_id = g_signal_lookup (info->signal_name, TYPE_GOOD_TYPES); 1128s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1128s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1128s # if (!g_value_get_boolean (&return_value)) 1128s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1128s # g_value_unset (&return_value); 1128s # for (n = 0; n < num_params + num_extra; n++) 1128s # g_value_unset (¶mv[n]); 1128s # g_free (paramv); 1128s # } 1128s # 1128s # static GVariant * 1128s # _good_types_skeleton_handle_get_property ( 1128s # GDBusConnection *connection G_GNUC_UNUSED, 1128s # const gchar *sender G_GNUC_UNUSED, 1128s # const gchar *object_path G_GNUC_UNUSED, 1128s # const gchar *interface_name G_GNUC_UNUSED, 1128s # const gchar *property_name, 1128s # GError **error, 1128s # gpointer user_data) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1128s # GValue value = G_VALUE_INIT; 1128s # GParamSpec *pspec; 1128s # _ExtendedGDBusPropertyInfo *info; 1128s # GVariant *ret; 1128s # ret = NULL; 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1128s # g_assert (info != NULL); 1128s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1128s # if (pspec == NULL) 1128s # { 1128s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1128s # } 1128s # else 1128s # { 1128s # g_value_init (&value, pspec->value_type); 1128s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1128s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1128s # g_value_unset (&value); 1128s # } 1128s # return ret; 1128s # } 1128s # 1128s # static gboolean 1128s # _good_types_skeleton_handle_set_property ( 1128s # GDBusConnection *connection G_GNUC_UNUSED, 1128s # const gchar *sender G_GNUC_UNUSED, 1128s # const gchar *object_path G_GNUC_UNUSED, 1128s # const gchar *interface_name G_GNUC_UNUSED, 1128s # const gchar *property_name, 1128s # GVariant *variant, 1128s # GError **error, 1128s # gpointer user_data) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1128s # GValue value = G_VALUE_INIT; 1128s # GParamSpec *pspec; 1128s # _ExtendedGDBusPropertyInfo *info; 1128s # gboolean ret; 1128s # ret = FALSE; 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_good_types_interface_info.parent_struct, property_name); 1128s # g_assert (info != NULL); 1128s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1128s # if (pspec == NULL) 1128s # { 1128s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1128s # } 1128s # else 1128s # { 1128s # if (info->use_gvariant) 1128s # g_value_set_variant (&value, variant); 1128s # else 1128s # g_dbus_gvariant_to_gvalue (variant, &value); 1128s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1128s # g_value_unset (&value); 1128s # ret = TRUE; 1128s # } 1128s # return ret; 1128s # } 1128s # 1128s # static const GDBusInterfaceVTable _good_types_skeleton_vtable = 1128s # { 1128s # _good_types_skeleton_handle_method_call, 1128s # _good_types_skeleton_handle_get_property, 1128s # _good_types_skeleton_handle_set_property, 1128s # {NULL} 1128s # }; 1128s # 1128s # static GDBusInterfaceInfo * 1128s # good_types_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1128s # { 1128s # return good_types_interface_info (); 1128s # } 1128s # 1128s # static GDBusInterfaceVTable * 1128s # good_types_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1128s # { 1128s # return (GDBusInterfaceVTable *) &_good_types_skeleton_vtable; 1128s # } 1128s # 1128s # static GVariant * 1128s # good_types_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1128s # 1128s # GVariantBuilder builder; 1128s # guint n; 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1128s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # #else 1128s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # #endif 1128s # if (_good_types_interface_info.parent_struct.properties == NULL) 1128s # goto out; 1128s # for (n = 0; _good_types_interface_info.parent_struct.properties[n] != NULL; n++) 1128s # { 1128s # GDBusPropertyInfo *info = _good_types_interface_info.parent_struct.properties[n]; 1128s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1128s # { 1128s # GVariant *value; 1128s # 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); 1128s # if (value != NULL) 1128s # { 1128s # g_variant_take_ref (value); 1128s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1128s # g_variant_unref (value); 1128s # } 1128s # } 1128s # } 1128s # out: 1128s # return g_variant_builder_end (&builder); 1128s # } 1128s # 1128s # static gboolean _good_types_emit_changed (gpointer user_data); 1128s # 1128s # static void 1128s # good_types_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (_skeleton); 1128s # gboolean emit_changed = FALSE; 1128s # 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # if (skeleton->priv->changed_properties_idle_source != NULL) 1128s # { 1128s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1128s # skeleton->priv->changed_properties_idle_source = NULL; 1128s # emit_changed = TRUE; 1128s # } 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # 1128s # if (emit_changed) 1128s # _good_types_emit_changed (skeleton); 1128s # } 1128s # 1128s # static void good_types_skeleton_iface_init (GoodTypesIface *iface); 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1128s # G_ADD_PRIVATE (GoodTypesSkeleton) 1128s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1128s # 1128s # #else 1128s # G_DEFINE_TYPE_WITH_CODE (GoodTypesSkeleton, good_types_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1128s # G_IMPLEMENT_INTERFACE (TYPE_GOOD_TYPES, good_types_skeleton_iface_init)) 1128s # 1128s # #endif 1128s # static void 1128s # good_types_skeleton_finalize (GObject *object) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1128s # guint n; 1128s # for (n = 0; n < 1; n++) 1128s # g_value_unset (&skeleton->priv->properties[n]); 1128s # g_free (skeleton->priv->properties); 1128s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1128s # if (skeleton->priv->changed_properties_idle_source != NULL) 1128s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1128s # g_main_context_unref (skeleton->priv->context); 1128s # g_mutex_clear (&skeleton->priv->lock); 1128s # G_OBJECT_CLASS (good_types_skeleton_parent_class)->finalize (object); 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_get_property (GObject *object, 1128s # guint prop_id, 1128s # GValue *value, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1128s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # } 1128s # 1128s # static gboolean 1128s # _good_types_emit_changed (gpointer user_data) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (user_data); 1128s # GList *l; 1128s # GVariantBuilder builder; 1128s # GVariantBuilder invalidated_builder; 1128s # guint num_changes; 1128s # 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1128s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1128s # #else 1128s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1128s # #endif 1128s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1128s # { 1128s # ChangedProperty *cp = l->data; 1128s # GVariant *variant; 1128s # const GValue *cur_value; 1128s # 1128s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1128s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1128s # { 1128s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1128s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1128s # g_variant_unref (variant); 1128s # num_changes++; 1128s # } 1128s # } 1128s # if (num_changes > 0) 1128s # { 1128s # GList *connections, *ll; 1128s # GVariant *signal_variant; 1128s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "GoodTypes", 1128s # &builder, &invalidated_builder)); 1128s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1128s # for (ll = connections; ll != NULL; ll = ll->next) 1128s # { 1128s # GDBusConnection *connection = ll->data; 1128s # 1128s # g_dbus_connection_emit_signal (connection, 1128s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1128s # "org.freedesktop.DBus.Properties", 1128s # "PropertiesChanged", 1128s # signal_variant, 1128s # NULL); 1128s # } 1128s # g_variant_unref (signal_variant); 1128s # g_list_free_full (connections, g_object_unref); 1128s # } 1128s # else 1128s # { 1128s # g_variant_builder_clear (&builder); 1128s # g_variant_builder_clear (&invalidated_builder); 1128s # } 1128s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1128s # skeleton->priv->changed_properties = NULL; 1128s # skeleton->priv->changed_properties_idle_source = NULL; 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # return FALSE; 1128s # } 1128s # 1128s # static void 1128s # _good_types_schedule_emit_changed (GoodTypesSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1128s # { 1128s # ChangedProperty *cp; 1128s # GList *l; 1128s # cp = NULL; 1128s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1128s # { 1128s # ChangedProperty *i_cp = l->data; 1128s # if (i_cp->info == info) 1128s # { 1128s # cp = i_cp; 1128s # break; 1128s # } 1128s # } 1128s # if (cp == NULL) 1128s # { 1128s # cp = g_new0 (ChangedProperty, 1); 1128s # cp->prop_id = prop_id; 1128s # cp->info = info; 1128s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1128s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1128s # g_value_copy (orig_value, &cp->orig_value); 1128s # } 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_notify (GObject *object, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # if (skeleton->priv->changed_properties != NULL && 1128s # skeleton->priv->changed_properties_idle_source == NULL) 1128s # { 1128s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1128s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1128s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _good_types_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1128s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _good_types_emit_changed"); 1128s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1128s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1128s # } 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_set_property (GObject *object, 1128s # guint prop_id, 1128s # const GValue *value, 1128s # GParamSpec *pspec) 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info; 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1128s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1128s # info = (const _ExtendedGDBusPropertyInfo *) _good_types_property_info_pointers[prop_id - 1]; 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # g_object_freeze_notify (object); 1128s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1128s # { 1128s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1128s # info->emits_changed_signal) 1128s # _good_types_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1128s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1128s # g_object_notify_by_pspec (object, pspec); 1128s # } 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # g_object_thaw_notify (object); 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_init (GoodTypesSkeleton *skeleton) 1128s # { 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # skeleton->priv = good_types_skeleton_get_instance_private (skeleton); 1128s # #else 1128s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_GOOD_TYPES_SKELETON, GoodTypesSkeletonPrivate); 1128s # #endif 1128s # 1128s # g_mutex_init (&skeleton->priv->lock); 1128s # skeleton->priv->context = g_main_context_ref_thread_default (); 1128s # skeleton->priv->properties = g_new0 (GValue, 1); 1128s # g_value_init (&skeleton->priv->properties[0], G_TYPE_VARIANT); 1128s # } 1128s # 1128s # static GVariant * 1128s # good_types_skeleton_get_good_property_type (GoodTypes *object) 1128s # { 1128s # GoodTypesSkeleton *skeleton = GOOD_TYPES_SKELETON (object); 1128s # GVariant *value; 1128s # g_mutex_lock (&skeleton->priv->lock); 1128s # value = g_marshal_value_peek_variant (&(skeleton->priv->properties[0])); 1128s # g_mutex_unlock (&skeleton->priv->lock); 1128s # return value; 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_class_init (GoodTypesSkeletonClass *klass) 1128s # { 1128s # GObjectClass *gobject_class; 1128s # GDBusInterfaceSkeletonClass *skeleton_class; 1128s # 1128s # gobject_class = G_OBJECT_CLASS (klass); 1128s # gobject_class->finalize = good_types_skeleton_finalize; 1128s # gobject_class->get_property = good_types_skeleton_get_property; 1128s # gobject_class->set_property = good_types_skeleton_set_property; 1128s # gobject_class->notify = good_types_skeleton_notify; 1128s # 1128s # 1128s # good_types_override_properties (gobject_class, 1); 1128s # 1128s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1128s # skeleton_class->get_info = good_types_skeleton_dbus_interface_get_info; 1128s # skeleton_class->get_properties = good_types_skeleton_dbus_interface_get_properties; 1128s # skeleton_class->flush = good_types_skeleton_dbus_interface_flush; 1128s # skeleton_class->get_vtable = good_types_skeleton_dbus_interface_get_vtable; 1128s # 1128s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1128s # g_type_class_add_private (klass, sizeof (GoodTypesSkeletonPrivate)); 1128s # #endif 1128s # } 1128s # 1128s # static void 1128s # good_types_skeleton_iface_init (GoodTypesIface *iface) 1128s # { 1128s # iface->get_good_property_type = good_types_skeleton_get_good_property_type; 1128s # } 1128s # 1128s # /** 1128s # * good_types_skeleton_new: 1128s # * 1128s # * Creates a skeleton object for the D-Bus interface GoodTypes. 1128s # * 1128s # * Returns: (transfer full) (type GoodTypesSkeleton): The skeleton object. 1128s # */ 1128s # GoodTypes * 1128s # good_types_skeleton_new (void) 1128s # { 1128s # return GOOD_TYPES (g_object_new (TYPE_GOOD_TYPES_SKELETON, NULL)); 1128s # } 1128s # Error: 1128s ok 3 __main__.TestCodegen.test_empty_interface_body 1128s # gdbus-codegen: /usr/bin/gdbus-codegen 1128s # tmpdir: /tmp/tmpyz7w5fbk 1128s # /tmp/tmpyz7w5fbk/tmpeyp3vlkz.xml: 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpyz7w5fbk/tmpeyp3vlkz.xml', '--output', '-', '--body'] 1128s # Return code: 0 1128s # Output: 1128s # /* 1128s # * This file is generated by gdbus-codegen, do not modify it. 1128s # * 1128s # * The license of this code is the same as for the D-Bus interface description 1128s # * it was derived from. Note that it links to GLib, so must comply with the 1128s # * LGPL linking clauses. 1128s # */ 1128s # 1128s # #ifdef HAVE_CONFIG_H 1128s # # include "config.h" 1128s # #endif 1128s # 1128s # #include 1128s # #ifdef G_OS_UNIX 1128s # # include 1128s # #endif 1128s # 1128s # #ifdef G_ENABLE_DEBUG 1128s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1128s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1128s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1128s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1128s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1128s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1128s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1128s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1128s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1128s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1128s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1128s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1128s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1128s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1128s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1128s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1128s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1128s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1128s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1128s # #else /* !G_ENABLE_DEBUG */ 1128s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1128s # * Do not access GValues directly in your code. Instead, use the 1128s # * g_value_get_*() functions 1128s # */ 1128s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1128s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1128s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1128s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1128s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1128s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1128s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1128s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1128s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1128s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1128s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1128s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1128s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1128s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1128s # #endif /* !G_ENABLE_DEBUG */ 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusArgInfo parent_struct; 1128s # gboolean use_gvariant; 1128s # } _ExtendedGDBusArgInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusMethodInfo parent_struct; 1128s # const gchar *signal_name; 1128s # gboolean pass_fdlist; 1128s # } _ExtendedGDBusMethodInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusSignalInfo parent_struct; 1128s # const gchar *signal_name; 1128s # } _ExtendedGDBusSignalInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusPropertyInfo parent_struct; 1128s # const gchar *hyphen_name; 1128s # guint use_gvariant : 1; 1128s # guint emits_changed_signal : 1; 1128s # } _ExtendedGDBusPropertyInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusInterfaceInfo parent_struct; 1128s # const gchar *hyphen_name; 1128s # } _ExtendedGDBusInterfaceInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info; 1128s # guint prop_id; 1128s # GValue orig_value; /* the value before the change */ 1128s # } ChangedProperty; 1128s # 1128s # static void 1128s # _changed_property_free (ChangedProperty *data) 1128s # { 1128s # g_value_unset (&data->orig_value); 1128s # g_free (data); 1128s # } 1128s # 1128s # static gboolean 1128s # _g_strv_equal0 (gchar **a, gchar **b) 1128s # { 1128s # gboolean ret = FALSE; 1128s # guint n; 1128s # if (a == NULL && b == NULL) 1128s # { 1128s # ret = TRUE; 1128s # goto out; 1128s # } 1128s # if (a == NULL || b == NULL) 1128s # goto out; 1128s # if (g_strv_length (a) != g_strv_length (b)) 1128s # goto out; 1128s # for (n = 0; a[n] != NULL; n++) 1128s # if (g_strcmp0 (a[n], b[n]) != 0) 1128s # goto out; 1128s # ret = TRUE; 1128s # out: 1128s # return ret; 1128s # } 1128s # 1128s # static gboolean 1128s # _g_variant_equal0 (GVariant *a, GVariant *b) 1128s # { 1128s # gboolean ret = FALSE; 1128s # if (a == NULL && b == NULL) 1128s # { 1128s # ret = TRUE; 1128s # goto out; 1128s # } 1128s # if (a == NULL || b == NULL) 1128s # goto out; 1128s # ret = g_variant_equal (a, b); 1128s # out: 1128s # return ret; 1128s # } 1128s # 1128s # G_GNUC_UNUSED static gboolean 1128s # _g_value_equal (const GValue *a, const GValue *b) 1128s # { 1128s # gboolean ret = FALSE; 1128s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1128s # switch (G_VALUE_TYPE (a)) 1128s # { 1128s # case G_TYPE_BOOLEAN: 1128s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1128s # break; 1128s # case G_TYPE_UCHAR: 1128s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1128s # break; 1128s # case G_TYPE_INT: 1128s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1128s # break; 1128s # case G_TYPE_UINT: 1128s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1128s # break; 1128s # case G_TYPE_INT64: 1128s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1128s # break; 1128s # case G_TYPE_UINT64: 1128s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1128s # break; 1128s # case G_TYPE_DOUBLE: 1128s # { 1128s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1128s # gdouble da = g_value_get_double (a); 1128s # gdouble db = g_value_get_double (b); 1128s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1128s # } 1128s # break; 1128s # case G_TYPE_STRING: 1128s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1128s # break; 1128s # case G_TYPE_VARIANT: 1128s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1128s # break; 1128s # default: 1128s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1128s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1128s # else 1128s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1128s # break; 1128s # } 1128s # return ret; 1128s # } 1128s # Error: 1128s ok 4 __main__.TestCodegen.test_empty_interface_header 1128s # gdbus-codegen: /usr/bin/gdbus-codegen 1128s # tmpdir: /tmp/tmpxxzmssyh 1128s # /tmp/tmpxxzmssyh/tmpefif1e_7.xml: 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpxxzmssyh/tmpefif1e_7.xml', '--output', '-', '--header'] 1128s # Return code: 0 1128s # Output: 1128s # /* 1128s # * This file is generated by gdbus-codegen, do not modify it. 1128s # * 1128s # * The license of this code is the same as for the D-Bus interface description 1128s # * it was derived from. Note that it links to GLib, so must comply with the 1128s # * LGPL linking clauses. 1128s # */ 1128s # 1128s # #ifndef __STDOUT__ 1128s # #define __STDOUT__ 1128s # 1128s # #include 1128s # 1128s # G_BEGIN_DECLS 1128s # 1128s # 1128s # G_END_DECLS 1128s # 1128s # #endif /* __STDOUT__ */ 1128s # Error: 1128s ok 5 __main__.TestCodegen.test_empty_interface_info_body 1128s # gdbus-codegen: /usr/bin/gdbus-codegen 1128s # tmpdir: /tmp/tmpv8hu9nyu 1128s # /tmp/tmpv8hu9nyu/tmp0zj59rlr.xml: 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv8hu9nyu/tmp0zj59rlr.xml', '--output', '-', '--interface-info-body'] 1128s # Return code: 0 1128s # Output: 1128s # /* 1128s # * This file is generated by gdbus-codegen, do not modify it. 1128s # * 1128s # * The license of this code is the same as for the D-Bus interface description 1128s # * it was derived from. Note that it links to GLib, so must comply with the 1128s # * LGPL linking clauses. 1128s # */ 1128s # 1128s # #ifdef HAVE_CONFIG_H 1128s # # include "config.h" 1128s # #endif 1128s # 1128s # #include 1128s # Error: 1128s ok 6 __main__.TestCodegen.test_empty_interface_info_header 1128s # gdbus-codegen: /usr/bin/gdbus-codegen 1128s # tmpdir: /tmp/tmpv5m_qoxm 1128s # /tmp/tmpv5m_qoxm/tmpac8zxs5d.xml: 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpv5m_qoxm/tmpac8zxs5d.xml', '--output', '-', '--interface-info-header'] 1128s # Return code: 0 1128s # Output: 1128s # /* 1128s # * This file is generated by gdbus-codegen, do not modify it. 1128s # * 1128s # * The license of this code is the same as for the D-Bus interface description 1128s # * it was derived from. Note that it links to GLib, so must comply with the 1128s # * LGPL linking clauses. 1128s # */ 1128s # 1128s # #ifndef __STDOUT__ 1128s # #define __STDOUT__ 1128s # 1128s # #include 1128s # 1128s # G_BEGIN_DECLS 1128s # 1128s # 1128s # G_END_DECLS 1128s # 1128s # #endif /* __STDOUT__ */ 1128s # Error: 1128s ok 7 __main__.TestCodegen.test_generate_docbook 1128s # gdbus-codegen: /usr/bin/gdbus-codegen 1128s # tmpdir: /tmp/tmpt7ot7qu6 1128s # /tmp/tmpt7ot7qu6/tmp_er65dc9.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpt7ot7qu6/tmp_er65dc9.xml', '--generate-docbook', 'test'] 1128s # Return code: 0 1128s # Output: 1128s # 1128s # Error: 1128s ok 8 __main__.TestCodegen.test_generate_md 1128s # gdbus-codegen: /usr/bin/gdbus-codegen 1128s # tmpdir: /tmp/tmpgr0fbnh4 1128s # /tmp/tmpgr0fbnh4/tmptn2zxd52.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgr0fbnh4/tmptn2zxd52.xml', '--generate-md', 'test'] 1128s # Return code: 0 1128s # Output: 1128s # 1128s # Error: 1128s ok 9 __main__.TestCodegen.test_generate_methods_marshaller_simple_method 1128s # gdbus-codegen: /usr/bin/gdbus-codegen 1128s # tmpdir: /tmp/tmpj3oo2dzy 1128s # /tmp/tmpj3oo2dzy/tmptwxpfv1t.xml: 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # 1128s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpj3oo2dzy/tmptwxpfv1t.xml', '--output', '-', '--body'] 1128s # Return code: 0 1128s # Output: 1128s # /* 1128s # * This file is generated by gdbus-codegen, do not modify it. 1128s # * 1128s # * The license of this code is the same as for the D-Bus interface description 1128s # * it was derived from. Note that it links to GLib, so must comply with the 1128s # * LGPL linking clauses. 1128s # */ 1128s # 1128s # #ifdef HAVE_CONFIG_H 1128s # # include "config.h" 1128s # #endif 1128s # 1128s # #include 1128s # #ifdef G_OS_UNIX 1128s # # include 1128s # #endif 1128s # 1128s # #ifdef G_ENABLE_DEBUG 1128s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1128s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1128s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1128s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1128s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1128s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1128s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1128s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1128s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1128s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1128s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1128s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1128s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1128s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1128s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1128s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1128s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1128s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1128s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1128s # #else /* !G_ENABLE_DEBUG */ 1128s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1128s # * Do not access GValues directly in your code. Instead, use the 1128s # * g_value_get_*() functions 1128s # */ 1128s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1128s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1128s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1128s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1128s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1128s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1128s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1128s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1128s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1128s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1128s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1128s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1128s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1128s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1128s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1128s # #endif /* !G_ENABLE_DEBUG */ 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusArgInfo parent_struct; 1128s # gboolean use_gvariant; 1128s # } _ExtendedGDBusArgInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusMethodInfo parent_struct; 1128s # const gchar *signal_name; 1128s # gboolean pass_fdlist; 1128s # } _ExtendedGDBusMethodInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusSignalInfo parent_struct; 1128s # const gchar *signal_name; 1128s # } _ExtendedGDBusSignalInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusPropertyInfo parent_struct; 1128s # const gchar *hyphen_name; 1128s # guint use_gvariant : 1; 1128s # guint emits_changed_signal : 1; 1128s # } _ExtendedGDBusPropertyInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # GDBusInterfaceInfo parent_struct; 1128s # const gchar *hyphen_name; 1128s # } _ExtendedGDBusInterfaceInfo; 1128s # 1128s # typedef struct 1128s # { 1128s # const _ExtendedGDBusPropertyInfo *info; 1128s # guint prop_id; 1128s # GValue orig_value; /* the value before the change */ 1128s # } ChangedProperty; 1128s # 1128s # static void 1128s # _changed_property_free (ChangedProperty *data) 1128s # { 1128s # g_value_unset (&data->orig_value); 1128s # g_free (data); 1128s # } 1128s # 1128s # static gboolean 1128s # _g_strv_equal0 (gchar **a, gchar **b) 1128s # { 1128s # gboolean ret = FALSE; 1128s # guint n; 1128s # if (a == NULL && b == NULL) 1128s # { 1128s # ret = TRUE; 1128s # goto out; 1128s # } 1128s # if (a == NULL || b == NULL) 1128s # goto out; 1128s # if (g_strv_length (a) != g_strv_length (b)) 1128s # goto out; 1128s # for (n = 0; a[n] != NULL; n++) 1128s # if (g_strcmp0 (a[n], b[n]) != 0) 1128s # goto out; 1128s # ret = TRUE; 1128s # out: 1128s # return ret; 1128s # } 1128s # 1128s # static gboolean 1128s # _g_variant_equal0 (GVariant *a, GVariant *b) 1128s # { 1128s # gboolean ret = FALSE; 1128s # if (a == NULL && b == NULL) 1128s # { 1128s # ret = TRUE; 1128s # goto out; 1128s # } 1128s # if (a == NULL || b == NULL) 1128s # goto out; 1128s # ret = g_variant_equal (a, b); 1128s # out: 1128s # return ret; 1128s # } 1128s # 1128s # G_GNUC_UNUSED static gboolean 1128s # _g_value_equal (const GValue *a, const GValue *b) 1128s # { 1128s # gboolean ret = FALSE; 1128s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1128s # switch (G_VALUE_TYPE (a)) 1128s # { 1128s # case G_TYPE_BOOLEAN: 1128s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1128s # break; 1128s # case G_TYPE_UCHAR: 1128s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1128s # break; 1128s # case G_TYPE_INT: 1128s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1128s # break; 1128s # case G_TYPE_UINT: 1128s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1128s # break; 1128s # case G_TYPE_INT64: 1128s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1128s # break; 1128s # case G_TYPE_UINT64: 1128s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1128s # break; 1128s # case G_TYPE_DOUBLE: 1128s # { 1128s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1128s # gdouble da = g_value_get_double (a); 1128s # gdouble db = g_value_get_double (b); 1128s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1128s # } 1128s # break; 1128s # case G_TYPE_STRING: 1128s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1128s # break; 1128s # case G_TYPE_VARIANT: 1128s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1128s # break; 1128s # default: 1128s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1128s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1128s # else 1128s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1128s # break; 1128s # } 1128s # return ret; 1128s # } 1128s # 1128s # static void 1128s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1128s # GClosure *closure, 1128s # GValue *return_value, 1128s # unsigned int n_param_values, 1128s # const GValue *param_values, 1128s # void *invocation_hint G_GNUC_UNUSED, 1128s # void *marshal_data) 1128s # { 1128s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1128s # (void *data1, 1128s # GDBusMethodInvocation *arg_method_invocation, 1128s # void *data2); 1128s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1128s # GCClosure *cc = (GCClosure*) closure; 1128s # void *data1, *data2; 1128s # gboolean v_return; 1128s # 1128s # g_return_if_fail (return_value != NULL); 1128s # g_return_if_fail (n_param_values == 2); 1128s # 1128s # if (G_CCLOSURE_SWAP_DATA (closure)) 1128s # { 1128s # data1 = closure->data; 1128s # data2 = g_value_peek_pointer (param_values + 0); 1128s # } 1128s # else 1128s # { 1128s # data1 = g_value_peek_pointer (param_values + 0); 1128s # data2 = closure->data; 1128s # } 1128s # 1128s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1128s # (marshal_data ? marshal_data : cc->callback); 1128s # 1128s # v_return = 1128s # callback (data1, 1128s # g_marshal_value_peek_object (param_values + 1), 1128s # data2); 1128s # 1128s # g_value_set_boolean (return_value, v_return); 1128s # } 1128s # 1128s # /* ------------------------------------------------------------------------ 1128s # * Code for interface org.project.CallableIface 1128s # * ------------------------------------------------------------------------ 1128s # */ 1128s # 1128s # /** 1128s # * SECTION:OrgProjectCallableIface 1128s # * @title: OrgProjectCallableIface 1128s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1128s # * 1128s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1128s # */ 1128s # 1128s # /* ---- Introspection data for org.project.CallableIface ---- */ 1128s # 1128s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_simple_method = 1128s # { 1128s # { 1128s # -1, 1128s # (gchar *) "SimpleMethod", 1128s # NULL, 1128s # NULL, 1128s # NULL 1128s # }, 1128s # "handle-simple-method", 1128s # FALSE 1128s # }; 1128s # 1128s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1128s # { 1128s # &_org_project_callable_iface_method_info_simple_method.parent_struct, 1128s # NULL 1128s # }; 1128s # 1128s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1128s # { 1128s # { 1128s # -1, 1128s # (gchar *) "org.project.CallableIface", 1128s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1128s # NULL, 1128s # NULL, 1128s # NULL 1128s # }, 1128s # "org-project-callable-iface", 1128s # }; 1128s # 1128s # 1128s # /** 1128s # * org_project_callable_iface_interface_info: 1128s # * 1128s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1128s # * 1128s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1128s # */ 1128s # GDBusInterfaceInfo * 1128s # org_project_callable_iface_interface_info (void) 1128s # { 1128s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1128s # } 1128s # 1128s # /** 1128s # * org_project_callable_iface_override_properties: 1128s # * @klass: The class structure for a #GObject derived class. 1128s # * @property_id_begin: The property id to assign to the first overridden property. 1128s # * 1128s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1128s # * The properties are overridden in the order they are defined. 1128s # * 1128s # * Returns: The last property id. 1128s # */ 1128s # guint 1128s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1128s # { 1128s # return property_id_begin - 1; 1128s # } 1128s # 1128s # 1128s # inline static void 1128s # org_project_callable_iface_method_marshal_simple_method ( 1128s # GClosure *closure, 1128s # GValue *return_value, 1128s # unsigned int n_param_values, 1128s # const GValue *param_values, 1128s # void *invocation_hint, 1128s # void *marshal_data) 1128s # { 1128s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1128s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1128s # } 1128s # 1128s # 1128s # /** 1128s # * OrgProjectCallableIface: 1128s # * 1128s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1128s # */ 1128s # 1128s # /** 1128s # * OrgProjectCallableIfaceIface: 1128s # * @parent_iface: The parent interface. 1128s # * @handle_simple_method: Handler for the #OrgProjectCallableIface::handle-simple-method signal. 1128s # * 1128s # * Virtual table for the D-Bus interface org.project.CallableIface. 1128s # */ 1128s # 1128s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1128s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1128s # 1128s # static void 1128s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1128s # { 1128s # /* GObject signals for incoming D-Bus method calls: */ 1128s # /** 1128s # * OrgProjectCallableIface::handle-simple-method: 1128s # * @object: A #OrgProjectCallableIface. 1128s # * @invocation: A #GDBusMethodInvocation. 1128s # * 1128s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1128s # * 1128s # * 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. 1128s # * 1128s # * 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. 1128s # */ 1128s # g_signal_new ("handle-simple-method", 1128s # G_TYPE_FROM_INTERFACE (iface), 1128s # G_SIGNAL_RUN_LAST, 1128s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_simple_method), 1128s # g_signal_accumulator_true_handled, 1128s # NULL, 1128s # org_project_callable_iface_method_marshal_simple_method, 1128s # G_TYPE_BOOLEAN, 1128s # 1, 1128s # G_TYPE_DBUS_METHOD_INVOCATION); 1128s # 1128s # } 1128s # 1128s # /** 1128s # * org_project_callable_iface_call_simple_method: 1128s # * @proxy: A #OrgProjectCallableIfaceProxy. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1128s # * @user_data: User data to pass to @callback. 1128s # * 1128s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1128s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1128s # * You can then call org_project_callable_iface_call_simple_method_finish() to get the result of the operation. 1128s # * 1128s # * See org_project_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1128s # */ 1128s # void 1128s # org_project_callable_iface_call_simple_method ( 1128s # OrgProjectCallableIface *proxy, 1128s # GCancellable *cancellable, 1128s # GAsyncReadyCallback callback, 1128s # gpointer user_data) 1128s # { 1128s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1128s # "SimpleMethod", 1128s # g_variant_new ("()"), 1128s # G_DBUS_CALL_FLAGS_NONE, 1128s # -1, 1128s # cancellable, 1128s # callback, 1128s # user_data); 1128s # } 1128s # 1128s # /** 1128s # * org_project_callable_iface_call_simple_method_finish: 1128s # * @proxy: A #OrgProjectCallableIfaceProxy. 1128s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_simple_method(). 1128s # * @error: Return location for error or %NULL. 1128s # * 1128s # * Finishes an operation started with org_project_callable_iface_call_simple_method(). 1128s # * 1128s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1128s # */ 1128s # gboolean 1128s # org_project_callable_iface_call_simple_method_finish ( 1128s # OrgProjectCallableIface *proxy, 1128s # GAsyncResult *res, 1128s # GError **error) 1128s # { 1128s # GVariant *_ret; 1128s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1128s # if (_ret == NULL) 1128s # goto _out; 1128s # g_variant_get (_ret, 1128s # "()"); 1128s # g_variant_unref (_ret); 1128s # _out: 1128s # return _ret != NULL; 1128s # } 1128s # 1128s # /** 1128s # * org_project_callable_iface_call_simple_method_sync: 1128s # * @proxy: A #OrgProjectCallableIfaceProxy. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @error: Return location for error or %NULL. 1128s # * 1128s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1128s # * 1128s # * See org_project_callable_iface_call_simple_method() for the asynchronous version of this method. 1128s # * 1128s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1128s # */ 1128s # gboolean 1128s # org_project_callable_iface_call_simple_method_sync ( 1128s # OrgProjectCallableIface *proxy, 1128s # GCancellable *cancellable, 1128s # GError **error) 1128s # { 1128s # GVariant *_ret; 1128s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1128s # "SimpleMethod", 1128s # g_variant_new ("()"), 1128s # G_DBUS_CALL_FLAGS_NONE, 1128s # -1, 1128s # cancellable, 1128s # error); 1128s # if (_ret == NULL) 1128s # goto _out; 1128s # g_variant_get (_ret, 1128s # "()"); 1128s # g_variant_unref (_ret); 1128s # _out: 1128s # return _ret != NULL; 1128s # } 1128s # 1128s # /** 1128s # * org_project_callable_iface_complete_simple_method: 1128s # * @object: A #OrgProjectCallableIface. 1128s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1128s # * 1128s # * 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. 1128s # * 1128s # * This method will free @invocation, you cannot use it afterwards. 1128s # */ 1128s # void 1128s # org_project_callable_iface_complete_simple_method ( 1128s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1128s # GDBusMethodInvocation *invocation) 1128s # { 1128s # g_dbus_method_invocation_return_value (invocation, 1128s # g_variant_new ("()")); 1128s # } 1128s # 1128s # /* ------------------------------------------------------------------------ */ 1128s # 1128s # /** 1128s # * OrgProjectCallableIfaceProxy: 1128s # * 1128s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1128s # */ 1128s # 1128s # /** 1128s # * OrgProjectCallableIfaceProxyClass: 1128s # * @parent_class: The parent class. 1128s # * 1128s # * Class structure for #OrgProjectCallableIfaceProxy. 1128s # */ 1128s # 1128s # struct _OrgProjectCallableIfaceProxyPrivate 1128s # { 1128s # GData *qdata; 1128s # }; 1128s # 1128s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1128s # 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1128s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1128s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1128s # 1128s # #else 1128s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1128s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1128s # 1128s # #endif 1128s # static void 1128s # org_project_callable_iface_proxy_finalize (GObject *object) 1128s # { 1128s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1128s # g_datalist_clear (&proxy->priv->qdata); 1128s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1128s # } 1128s # 1128s # static void 1128s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1128s # guint prop_id G_GNUC_UNUSED, 1128s # GValue *value G_GNUC_UNUSED, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # } 1128s # 1128s # static void 1128s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1128s # guint prop_id G_GNUC_UNUSED, 1128s # const GValue *value G_GNUC_UNUSED, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # } 1128s # 1128s # static void 1128s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1128s # const gchar *sender_name G_GNUC_UNUSED, 1128s # const gchar *signal_name, 1128s # GVariant *parameters) 1128s # { 1128s # _ExtendedGDBusSignalInfo *info; 1128s # GVariantIter iter; 1128s # GVariant *child; 1128s # GValue *paramv; 1128s # gsize num_params; 1128s # gsize n; 1128s # guint signal_id; 1128s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1128s # if (info == NULL) 1128s # return; 1128s # num_params = g_variant_n_children (parameters); 1128s # paramv = g_new0 (GValue, num_params + 1); 1128s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1128s # g_value_set_object (¶mv[0], proxy); 1128s # g_variant_iter_init (&iter, parameters); 1128s # n = 1; 1128s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1128s # { 1128s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1128s # if (arg_info->use_gvariant) 1128s # { 1128s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1128s # g_value_set_variant (¶mv[n], child); 1128s # n++; 1128s # } 1128s # else 1128s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1128s # g_variant_unref (child); 1128s # } 1128s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1128s # g_signal_emitv (paramv, signal_id, 0, NULL); 1128s # for (n = 0; n < num_params + 1; n++) 1128s # g_value_unset (¶mv[n]); 1128s # g_free (paramv); 1128s # } 1128s # 1128s # static void 1128s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1128s # GVariant *changed_properties, 1128s # const gchar *const *invalidated_properties) 1128s # { 1128s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1128s # guint n; 1128s # const gchar *key; 1128s # GVariantIter *iter; 1128s # _ExtendedGDBusPropertyInfo *info; 1128s # g_variant_get (changed_properties, "a{sv}", &iter); 1128s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1128s # { 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1128s # g_datalist_remove_data (&proxy->priv->qdata, key); 1128s # if (info != NULL) 1128s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1128s # } 1128s # g_variant_iter_free (iter); 1128s # for (n = 0; invalidated_properties[n] != NULL; n++) 1128s # { 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1128s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1128s # if (info != NULL) 1128s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1128s # } 1128s # } 1128s # 1128s # static void 1128s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1128s # { 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1128s # #else 1128s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1128s # #endif 1128s # 1128s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1128s # } 1128s # 1128s # static void 1128s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1128s # { 1128s # GObjectClass *gobject_class; 1128s # GDBusProxyClass *proxy_class; 1128s # 1128s # gobject_class = G_OBJECT_CLASS (klass); 1128s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1128s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1128s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1128s # 1128s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1128s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1128s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1128s # 1128s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1128s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1128s # #endif 1128s # } 1128s # 1128s # static void 1128s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1128s # { 1128s # } 1128s # 1128s # /** 1128s # * org_project_callable_iface_proxy_new: 1128s # * @connection: A #GDBusConnection. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1128s # * @user_data: User data to pass to @callback. 1128s # * 1128s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1128s # * 1128s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1128s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1128s # * 1128s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1128s # */ 1128s # void 1128s # org_project_callable_iface_proxy_new ( 1128s # GDBusConnection *connection, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GAsyncReadyCallback callback, 1128s # gpointer user_data) 1128s # { 1128s # 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); 1128s # } 1128s # 1128s # /** 1128s # * org_project_callable_iface_proxy_new_finish: 1128s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1128s # * 1128s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # OrgProjectCallableIface * 1128s # org_project_callable_iface_proxy_new_finish ( 1128s # GAsyncResult *res, 1128s # GError **error) 1128s # { 1128s # GObject *ret; 1128s # GObject *source_object; 1128s # source_object = g_async_result_get_source_object (res); 1128s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1128s # g_object_unref (source_object); 1128s # if (ret != NULL) 1128s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # /** 1128s # * org_project_callable_iface_proxy_new_sync: 1128s # * @connection: A #GDBusConnection. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1128s # * 1128s # * The calling thread is blocked until a reply is received. 1128s # * 1128s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1128s # * 1128s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # OrgProjectCallableIface * 1128s # org_project_callable_iface_proxy_new_sync ( 1128s # GDBusConnection *connection, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GError **error) 1128s # { 1128s # GInitable *ret; 1128s # 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); 1128s # if (ret != NULL) 1128s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # 1128s # /** 1128s # * org_project_callable_iface_proxy_new_for_bus: 1128s # * @bus_type: A #GBusType. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: A bus name (well-known or unique). 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1128s # * @user_data: User data to pass to @callback. 1128s # * 1128s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1128s # * 1128s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1128s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1128s # * 1128s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1128s # */ 1128s # void 1128s # org_project_callable_iface_proxy_new_for_bus ( 1128s # GBusType bus_type, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GAsyncReadyCallback callback, 1128s # gpointer user_data) 1128s # { 1128s # 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); 1128s # } 1128s # 1128s # /** 1128s # * org_project_callable_iface_proxy_new_for_bus_finish: 1128s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1128s # * 1128s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # OrgProjectCallableIface * 1128s # org_project_callable_iface_proxy_new_for_bus_finish ( 1128s # GAsyncResult *res, 1128s # GError **error) 1128s # { 1128s # GObject *ret; 1128s # GObject *source_object; 1128s # source_object = g_async_result_get_source_object (res); 1128s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1128s # g_object_unref (source_object); 1128s # if (ret != NULL) 1128s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # /** 1128s # * org_project_callable_iface_proxy_new_for_bus_sync: 1128s # * @bus_type: A #GBusType. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: A bus name (well-known or unique). 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1128s # * 1128s # * The calling thread is blocked until a reply is received. 1128s # * 1128s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1128s # * 1128s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # OrgProjectCallableIface * 1128s # org_project_callable_iface_proxy_new_for_bus_sync ( 1128s # GBusType bus_type, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GError **error) 1128s # { 1128s # GInitable *ret; 1128s # 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); 1128s # if (ret != NULL) 1128s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # 1128s # /* ------------------------------------------------------------------------ */ 1128s # 1128s # /** 1128s # * OrgProjectCallableIfaceSkeleton: 1128s # * 1128s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1128s # */ 1128s # 1128s # /** 1128s # * OrgProjectCallableIfaceSkeletonClass: 1128s # * @parent_class: The parent class. 1128s # * 1128s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1128s # */ 1128s # 1128s # struct _OrgProjectCallableIfaceSkeletonPrivate 1128s # { 1128s # GValue *properties; 1128s # GList *changed_properties; 1128s # GSource *changed_properties_idle_source; 1128s # GMainContext *context; 1128s # GMutex lock; 1128s # }; 1128s # 1128s # static void 1128s # _org_project_callable_iface_skeleton_handle_method_call ( 1128s # GDBusConnection *connection G_GNUC_UNUSED, 1128s # const gchar *sender G_GNUC_UNUSED, 1128s # const gchar *object_path G_GNUC_UNUSED, 1128s # const gchar *interface_name, 1128s # const gchar *method_name, 1128s # GVariant *parameters, 1128s # GDBusMethodInvocation *invocation, 1128s # gpointer user_data) 1128s # { 1128s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1128s # _ExtendedGDBusMethodInfo *info; 1128s # GVariantIter iter; 1128s # GVariant *child; 1128s # GValue *paramv; 1128s # gsize num_params; 1128s # guint num_extra; 1128s # gsize n; 1128s # guint signal_id; 1128s # GValue return_value = G_VALUE_INIT; 1128s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1128s # g_assert (info != NULL); 1128s # num_params = g_variant_n_children (parameters); 1128s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1128s # n = 0; 1128s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1128s # g_value_set_object (¶mv[n++], skeleton); 1128s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1128s # g_value_set_object (¶mv[n++], invocation); 1128s # if (info->pass_fdlist) 1128s # { 1128s # #ifdef G_OS_UNIX 1128s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1128s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1128s # #else 1128s # g_assert_not_reached (); 1128s # #endif 1128s # } 1128s # g_variant_iter_init (&iter, parameters); 1128s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1128s # { 1128s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1128s # if (arg_info->use_gvariant) 1128s # { 1128s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1128s # g_value_set_variant (¶mv[n], child); 1128s # n++; 1128s # } 1128s # else 1128s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1128s # g_variant_unref (child); 1128s # } 1128s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1128s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1128s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1128s # if (!g_value_get_boolean (&return_value)) 1128s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1128s # g_value_unset (&return_value); 1128s # for (n = 0; n < num_params + num_extra; n++) 1128s # g_value_unset (¶mv[n]); 1128s # g_free (paramv); 1128s # } 1128s # 1128s # static GVariant * 1128s # _org_project_callable_iface_skeleton_handle_get_property ( 1128s # GDBusConnection *connection G_GNUC_UNUSED, 1128s # const gchar *sender G_GNUC_UNUSED, 1128s # const gchar *object_path G_GNUC_UNUSED, 1128s # const gchar *interface_name G_GNUC_UNUSED, 1128s # const gchar *property_name, 1128s # GError **error, 1128s # gpointer user_data) 1128s # { 1128s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1128s # GValue value = G_VALUE_INIT; 1128s # GParamSpec *pspec; 1128s # _ExtendedGDBusPropertyInfo *info; 1128s # GVariant *ret; 1128s # ret = NULL; 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1128s # g_assert (info != NULL); 1128s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1128s # if (pspec == NULL) 1128s # { 1128s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1128s # } 1128s # else 1128s # { 1128s # g_value_init (&value, pspec->value_type); 1128s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1128s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1128s # g_value_unset (&value); 1128s # } 1128s # return ret; 1128s # } 1128s # 1128s # static gboolean 1128s # _org_project_callable_iface_skeleton_handle_set_property ( 1128s # GDBusConnection *connection G_GNUC_UNUSED, 1128s # const gchar *sender G_GNUC_UNUSED, 1128s # const gchar *object_path G_GNUC_UNUSED, 1128s # const gchar *interface_name G_GNUC_UNUSED, 1128s # const gchar *property_name, 1128s # GVariant *variant, 1128s # GError **error, 1128s # gpointer user_data) 1128s # { 1128s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1128s # GValue value = G_VALUE_INIT; 1128s # GParamSpec *pspec; 1128s # _ExtendedGDBusPropertyInfo *info; 1128s # gboolean ret; 1128s # ret = FALSE; 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1128s # g_assert (info != NULL); 1128s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1128s # if (pspec == NULL) 1128s # { 1128s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1128s # } 1128s # else 1128s # { 1128s # if (info->use_gvariant) 1128s # g_value_set_variant (&value, variant); 1128s # else 1128s # g_dbus_gvariant_to_gvalue (variant, &value); 1128s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1128s # g_value_unset (&value); 1128s # ret = TRUE; 1128s # } 1128s # return ret; 1128s # } 1128s # 1128s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1128s # { 1128s # _org_project_callable_iface_skeleton_handle_method_call, 1128s # _org_project_callable_iface_skeleton_handle_get_property, 1128s # _org_project_callable_iface_skeleton_handle_set_property, 1128s # {NULL} 1128s # }; 1128s # 1128s # static GDBusInterfaceInfo * 1128s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1128s # { 1128s # return org_project_callable_iface_interface_info (); 1128s # } 1128s # 1128s # static GDBusInterfaceVTable * 1128s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1128s # { 1128s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1128s # } 1128s # 1128s # static GVariant * 1128s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1128s # { 1128s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1128s # 1128s # GVariantBuilder builder; 1128s # guint n; 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1128s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # #else 1128s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # #endif 1128s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1128s # goto out; 1128s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1128s # { 1128s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1128s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1128s # { 1128s # GVariant *value; 1128s # 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); 1128s # if (value != NULL) 1128s # { 1128s # g_variant_take_ref (value); 1128s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1128s # g_variant_unref (value); 1128s # } 1128s # } 1128s # } 1128s # out: 1128s # return g_variant_builder_end (&builder); 1128s # } 1128s # 1128s # static void 1128s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1128s # { 1128s # } 1128s # 1128s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1128s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1128s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1128s # 1128s # #else 1128s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1128s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1128s # 1128s # #endif 1128s # static void 1128s # org_project_callable_iface_skeleton_finalize (GObject *object) 1128s # { 1128s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1128s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1128s # if (skeleton->priv->changed_properties_idle_source != NULL) 1128s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1128s # g_main_context_unref (skeleton->priv->context); 1128s # g_mutex_clear (&skeleton->priv->lock); 1128s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1128s # } 1128s # 1128s # static void 1128s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1128s # { 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1128s # #else 1128s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1128s # #endif 1128s # 1128s # g_mutex_init (&skeleton->priv->lock); 1128s # skeleton->priv->context = g_main_context_ref_thread_default (); 1128s # } 1128s # 1128s # static void 1128s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1128s # { 1128s # GObjectClass *gobject_class; 1128s # GDBusInterfaceSkeletonClass *skeleton_class; 1128s # 1128s # gobject_class = G_OBJECT_CLASS (klass); 1128s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1128s # 1128s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1128s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1128s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1128s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1128s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1128s # 1128s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1128s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1128s # #endif 1128s # } 1128s # 1128s # static void 1128s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1128s # { 1128s # } 1128s # 1128s # /** 1128s # * org_project_callable_iface_skeleton_new: 1128s # * 1128s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1128s # * 1128s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1128s # */ 1128s # OrgProjectCallableIface * 1128s # org_project_callable_iface_skeleton_new (void) 1128s # { 1128s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1128s # } 1128s # 1128s # /* ------------------------------------------------------------------------ 1128s # * Code for interface org.project.OtherCallableIface 1128s # * ------------------------------------------------------------------------ 1128s # */ 1128s # 1128s # /** 1128s # * SECTION:OrgProjectOtherCallableIface 1128s # * @title: OrgProjectOtherCallableIface 1128s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1128s # * 1128s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1128s # */ 1128s # 1128s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1128s # 1128s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_simple_method = 1128s # { 1128s # { 1128s # -1, 1128s # (gchar *) "SimpleMethod", 1128s # NULL, 1128s # NULL, 1128s # NULL 1128s # }, 1128s # "handle-simple-method", 1128s # FALSE 1128s # }; 1128s # 1128s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1128s # { 1128s # &_org_project_other_callable_iface_method_info_simple_method.parent_struct, 1128s # NULL 1128s # }; 1128s # 1128s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1128s # { 1128s # { 1128s # -1, 1128s # (gchar *) "org.project.OtherCallableIface", 1128s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1128s # NULL, 1128s # NULL, 1128s # NULL 1128s # }, 1128s # "org-project-other-callable-iface", 1128s # }; 1128s # 1128s # 1128s # /** 1128s # * org_project_other_callable_iface_interface_info: 1128s # * 1128s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1128s # * 1128s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1128s # */ 1128s # GDBusInterfaceInfo * 1128s # org_project_other_callable_iface_interface_info (void) 1128s # { 1128s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1128s # } 1128s # 1128s # /** 1128s # * org_project_other_callable_iface_override_properties: 1128s # * @klass: The class structure for a #GObject derived class. 1128s # * @property_id_begin: The property id to assign to the first overridden property. 1128s # * 1128s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1128s # * The properties are overridden in the order they are defined. 1128s # * 1128s # * Returns: The last property id. 1128s # */ 1128s # guint 1128s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1128s # { 1128s # return property_id_begin - 1; 1128s # } 1128s # 1128s # 1128s # inline static void 1128s # org_project_other_callable_iface_method_marshal_simple_method ( 1128s # GClosure *closure, 1128s # GValue *return_value, 1128s # unsigned int n_param_values, 1128s # const GValue *param_values, 1128s # void *invocation_hint, 1128s # void *marshal_data) 1128s # { 1128s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1128s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1128s # } 1128s # 1128s # 1128s # /** 1128s # * OrgProjectOtherCallableIface: 1128s # * 1128s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1128s # */ 1128s # 1128s # /** 1128s # * OrgProjectOtherCallableIfaceIface: 1128s # * @parent_iface: The parent interface. 1128s # * @handle_simple_method: Handler for the #OrgProjectOtherCallableIface::handle-simple-method signal. 1128s # * 1128s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1128s # */ 1128s # 1128s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1128s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1128s # 1128s # static void 1128s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1128s # { 1128s # /* GObject signals for incoming D-Bus method calls: */ 1128s # /** 1128s # * OrgProjectOtherCallableIface::handle-simple-method: 1128s # * @object: A #OrgProjectOtherCallableIface. 1128s # * @invocation: A #GDBusMethodInvocation. 1128s # * 1128s # * Signal emitted when a remote caller is invoking the SimpleMethod() D-Bus method. 1128s # * 1128s # * 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. 1128s # * 1128s # * 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. 1128s # */ 1128s # g_signal_new ("handle-simple-method", 1128s # G_TYPE_FROM_INTERFACE (iface), 1128s # G_SIGNAL_RUN_LAST, 1128s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_simple_method), 1128s # g_signal_accumulator_true_handled, 1128s # NULL, 1128s # org_project_other_callable_iface_method_marshal_simple_method, 1128s # G_TYPE_BOOLEAN, 1128s # 1, 1128s # G_TYPE_DBUS_METHOD_INVOCATION); 1128s # 1128s # } 1128s # 1128s # /** 1128s # * org_project_other_callable_iface_call_simple_method: 1128s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1128s # * @user_data: User data to pass to @callback. 1128s # * 1128s # * Asynchronously invokes the SimpleMethod() D-Bus method on @proxy. 1128s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1128s # * You can then call org_project_other_callable_iface_call_simple_method_finish() to get the result of the operation. 1128s # * 1128s # * See org_project_other_callable_iface_call_simple_method_sync() for the synchronous, blocking version of this method. 1128s # */ 1128s # void 1128s # org_project_other_callable_iface_call_simple_method ( 1128s # OrgProjectOtherCallableIface *proxy, 1128s # GCancellable *cancellable, 1128s # GAsyncReadyCallback callback, 1128s # gpointer user_data) 1128s # { 1128s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1128s # "SimpleMethod", 1128s # g_variant_new ("()"), 1128s # G_DBUS_CALL_FLAGS_NONE, 1128s # -1, 1128s # cancellable, 1128s # callback, 1128s # user_data); 1128s # } 1128s # 1128s # /** 1128s # * org_project_other_callable_iface_call_simple_method_finish: 1128s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1128s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_simple_method(). 1128s # * @error: Return location for error or %NULL. 1128s # * 1128s # * Finishes an operation started with org_project_other_callable_iface_call_simple_method(). 1128s # * 1128s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1128s # */ 1128s # gboolean 1128s # org_project_other_callable_iface_call_simple_method_finish ( 1128s # OrgProjectOtherCallableIface *proxy, 1128s # GAsyncResult *res, 1128s # GError **error) 1128s # { 1128s # GVariant *_ret; 1128s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1128s # if (_ret == NULL) 1128s # goto _out; 1128s # g_variant_get (_ret, 1128s # "()"); 1128s # g_variant_unref (_ret); 1128s # _out: 1128s # return _ret != NULL; 1128s # } 1128s # 1128s # /** 1128s # * org_project_other_callable_iface_call_simple_method_sync: 1128s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @error: Return location for error or %NULL. 1128s # * 1128s # * Synchronously invokes the SimpleMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1128s # * 1128s # * See org_project_other_callable_iface_call_simple_method() for the asynchronous version of this method. 1128s # * 1128s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1128s # */ 1128s # gboolean 1128s # org_project_other_callable_iface_call_simple_method_sync ( 1128s # OrgProjectOtherCallableIface *proxy, 1128s # GCancellable *cancellable, 1128s # GError **error) 1128s # { 1128s # GVariant *_ret; 1128s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1128s # "SimpleMethod", 1128s # g_variant_new ("()"), 1128s # G_DBUS_CALL_FLAGS_NONE, 1128s # -1, 1128s # cancellable, 1128s # error); 1128s # if (_ret == NULL) 1128s # goto _out; 1128s # g_variant_get (_ret, 1128s # "()"); 1128s # g_variant_unref (_ret); 1128s # _out: 1128s # return _ret != NULL; 1128s # } 1128s # 1128s # /** 1128s # * org_project_other_callable_iface_complete_simple_method: 1128s # * @object: A #OrgProjectOtherCallableIface. 1128s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1128s # * 1128s # * 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. 1128s # * 1128s # * This method will free @invocation, you cannot use it afterwards. 1128s # */ 1128s # void 1128s # org_project_other_callable_iface_complete_simple_method ( 1128s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1128s # GDBusMethodInvocation *invocation) 1128s # { 1128s # g_dbus_method_invocation_return_value (invocation, 1128s # g_variant_new ("()")); 1128s # } 1128s # 1128s # /* ------------------------------------------------------------------------ */ 1128s # 1128s # /** 1128s # * OrgProjectOtherCallableIfaceProxy: 1128s # * 1128s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1128s # */ 1128s # 1128s # /** 1128s # * OrgProjectOtherCallableIfaceProxyClass: 1128s # * @parent_class: The parent class. 1128s # * 1128s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1128s # */ 1128s # 1128s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1128s # { 1128s # GData *qdata; 1128s # }; 1128s # 1128s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1128s # 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1128s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1128s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1128s # 1128s # #else 1128s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1128s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1128s # 1128s # #endif 1128s # static void 1128s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1128s # { 1128s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1128s # g_datalist_clear (&proxy->priv->qdata); 1128s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1128s # } 1128s # 1128s # static void 1128s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1128s # guint prop_id G_GNUC_UNUSED, 1128s # GValue *value G_GNUC_UNUSED, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # } 1128s # 1128s # static void 1128s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1128s # guint prop_id G_GNUC_UNUSED, 1128s # const GValue *value G_GNUC_UNUSED, 1128s # GParamSpec *pspec G_GNUC_UNUSED) 1128s # { 1128s # } 1128s # 1128s # static void 1128s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1128s # const gchar *sender_name G_GNUC_UNUSED, 1128s # const gchar *signal_name, 1128s # GVariant *parameters) 1128s # { 1128s # _ExtendedGDBusSignalInfo *info; 1128s # GVariantIter iter; 1128s # GVariant *child; 1128s # GValue *paramv; 1128s # gsize num_params; 1128s # gsize n; 1128s # guint signal_id; 1128s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1128s # if (info == NULL) 1128s # return; 1128s # num_params = g_variant_n_children (parameters); 1128s # paramv = g_new0 (GValue, num_params + 1); 1128s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1128s # g_value_set_object (¶mv[0], proxy); 1128s # g_variant_iter_init (&iter, parameters); 1128s # n = 1; 1128s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1128s # { 1128s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1128s # if (arg_info->use_gvariant) 1128s # { 1128s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1128s # g_value_set_variant (¶mv[n], child); 1128s # n++; 1128s # } 1128s # else 1128s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1128s # g_variant_unref (child); 1128s # } 1128s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1128s # g_signal_emitv (paramv, signal_id, 0, NULL); 1128s # for (n = 0; n < num_params + 1; n++) 1128s # g_value_unset (¶mv[n]); 1128s # g_free (paramv); 1128s # } 1128s # 1128s # static void 1128s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1128s # GVariant *changed_properties, 1128s # const gchar *const *invalidated_properties) 1128s # { 1128s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1128s # guint n; 1128s # const gchar *key; 1128s # GVariantIter *iter; 1128s # _ExtendedGDBusPropertyInfo *info; 1128s # g_variant_get (changed_properties, "a{sv}", &iter); 1128s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1128s # { 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1128s # g_datalist_remove_data (&proxy->priv->qdata, key); 1128s # if (info != NULL) 1128s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1128s # } 1128s # g_variant_iter_free (iter); 1128s # for (n = 0; invalidated_properties[n] != NULL; n++) 1128s # { 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1128s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1128s # if (info != NULL) 1128s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1128s # } 1128s # } 1128s # 1128s # static void 1128s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1128s # { 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1128s # #else 1128s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1128s # #endif 1128s # 1128s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1128s # } 1128s # 1128s # static void 1128s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1128s # { 1128s # GObjectClass *gobject_class; 1128s # GDBusProxyClass *proxy_class; 1128s # 1128s # gobject_class = G_OBJECT_CLASS (klass); 1128s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1128s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1128s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1128s # 1128s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1128s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1128s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1128s # 1128s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1128s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1128s # #endif 1128s # } 1128s # 1128s # static void 1128s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1128s # { 1128s # } 1128s # 1128s # /** 1128s # * org_project_other_callable_iface_proxy_new: 1128s # * @connection: A #GDBusConnection. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1128s # * @user_data: User data to pass to @callback. 1128s # * 1128s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1128s # * 1128s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1128s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1128s # * 1128s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1128s # */ 1128s # void 1128s # org_project_other_callable_iface_proxy_new ( 1128s # GDBusConnection *connection, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GAsyncReadyCallback callback, 1128s # gpointer user_data) 1128s # { 1128s # 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); 1128s # } 1128s # 1128s # /** 1128s # * org_project_other_callable_iface_proxy_new_finish: 1128s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1128s # * 1128s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # OrgProjectOtherCallableIface * 1128s # org_project_other_callable_iface_proxy_new_finish ( 1128s # GAsyncResult *res, 1128s # GError **error) 1128s # { 1128s # GObject *ret; 1128s # GObject *source_object; 1128s # source_object = g_async_result_get_source_object (res); 1128s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1128s # g_object_unref (source_object); 1128s # if (ret != NULL) 1128s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # /** 1128s # * org_project_other_callable_iface_proxy_new_sync: 1128s # * @connection: A #GDBusConnection. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1128s # * 1128s # * The calling thread is blocked until a reply is received. 1128s # * 1128s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1128s # * 1128s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # OrgProjectOtherCallableIface * 1128s # org_project_other_callable_iface_proxy_new_sync ( 1128s # GDBusConnection *connection, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GError **error) 1128s # { 1128s # GInitable *ret; 1128s # 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); 1128s # if (ret != NULL) 1128s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # 1128s # /** 1128s # * org_project_other_callable_iface_proxy_new_for_bus: 1128s # * @bus_type: A #GBusType. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: A bus name (well-known or unique). 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1128s # * @user_data: User data to pass to @callback. 1128s # * 1128s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1128s # * 1128s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1128s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1128s # * 1128s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1128s # */ 1128s # void 1128s # org_project_other_callable_iface_proxy_new_for_bus ( 1128s # GBusType bus_type, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GAsyncReadyCallback callback, 1128s # gpointer user_data) 1128s # { 1128s # 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); 1128s # } 1128s # 1128s # /** 1128s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1128s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1128s # * 1128s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # OrgProjectOtherCallableIface * 1128s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1128s # GAsyncResult *res, 1128s # GError **error) 1128s # { 1128s # GObject *ret; 1128s # GObject *source_object; 1128s # source_object = g_async_result_get_source_object (res); 1128s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1128s # g_object_unref (source_object); 1128s # if (ret != NULL) 1128s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # /** 1128s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1128s # * @bus_type: A #GBusType. 1128s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1128s # * @name: A bus name (well-known or unique). 1128s # * @object_path: An object path. 1128s # * @cancellable: (nullable): A #GCancellable or %NULL. 1128s # * @error: Return location for error or %NULL 1128s # * 1128s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1128s # * 1128s # * The calling thread is blocked until a reply is received. 1128s # * 1128s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1128s # * 1128s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1128s # */ 1128s # OrgProjectOtherCallableIface * 1128s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1128s # GBusType bus_type, 1128s # GDBusProxyFlags flags, 1128s # const gchar *name, 1128s # const gchar *object_path, 1128s # GCancellable *cancellable, 1128s # GError **error) 1128s # { 1128s # GInitable *ret; 1128s # 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); 1128s # if (ret != NULL) 1128s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1128s # else 1128s # return NULL; 1128s # } 1128s # 1128s # 1128s # /* ------------------------------------------------------------------------ */ 1128s # 1128s # /** 1128s # * OrgProjectOtherCallableIfaceSkeleton: 1128s # * 1128s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1128s # */ 1128s # 1128s # /** 1128s # * OrgProjectOtherCallableIfaceSkeletonClass: 1128s # * @parent_class: The parent class. 1128s # * 1128s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1128s # */ 1128s # 1128s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1128s # { 1128s # GValue *properties; 1128s # GList *changed_properties; 1128s # GSource *changed_properties_idle_source; 1128s # GMainContext *context; 1128s # GMutex lock; 1128s # }; 1128s # 1128s # static void 1128s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1128s # GDBusConnection *connection G_GNUC_UNUSED, 1128s # const gchar *sender G_GNUC_UNUSED, 1128s # const gchar *object_path G_GNUC_UNUSED, 1128s # const gchar *interface_name, 1128s # const gchar *method_name, 1128s # GVariant *parameters, 1128s # GDBusMethodInvocation *invocation, 1128s # gpointer user_data) 1128s # { 1128s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1128s # _ExtendedGDBusMethodInfo *info; 1128s # GVariantIter iter; 1128s # GVariant *child; 1128s # GValue *paramv; 1128s # gsize num_params; 1128s # guint num_extra; 1128s # gsize n; 1128s # guint signal_id; 1128s # GValue return_value = G_VALUE_INIT; 1128s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1128s # g_assert (info != NULL); 1128s # num_params = g_variant_n_children (parameters); 1128s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1128s # n = 0; 1128s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1128s # g_value_set_object (¶mv[n++], skeleton); 1128s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1128s # g_value_set_object (¶mv[n++], invocation); 1128s # if (info->pass_fdlist) 1128s # { 1128s # #ifdef G_OS_UNIX 1128s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1128s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1128s # #else 1128s # g_assert_not_reached (); 1128s # #endif 1128s # } 1128s # g_variant_iter_init (&iter, parameters); 1128s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1128s # { 1128s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1128s # if (arg_info->use_gvariant) 1128s # { 1128s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1128s # g_value_set_variant (¶mv[n], child); 1128s # n++; 1128s # } 1128s # else 1128s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1128s # g_variant_unref (child); 1128s # } 1128s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1128s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1128s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1128s # if (!g_value_get_boolean (&return_value)) 1128s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1128s # g_value_unset (&return_value); 1128s # for (n = 0; n < num_params + num_extra; n++) 1128s # g_value_unset (¶mv[n]); 1128s # g_free (paramv); 1128s # } 1128s # 1128s # static GVariant * 1128s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1128s # GDBusConnection *connection G_GNUC_UNUSED, 1128s # const gchar *sender G_GNUC_UNUSED, 1128s # const gchar *object_path G_GNUC_UNUSED, 1128s # const gchar *interface_name G_GNUC_UNUSED, 1128s # const gchar *property_name, 1128s # GError **error, 1128s # gpointer user_data) 1128s # { 1128s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1128s # GValue value = G_VALUE_INIT; 1128s # GParamSpec *pspec; 1128s # _ExtendedGDBusPropertyInfo *info; 1128s # GVariant *ret; 1128s # ret = NULL; 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1128s # g_assert (info != NULL); 1128s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1128s # if (pspec == NULL) 1128s # { 1128s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1128s # } 1128s # else 1128s # { 1128s # g_value_init (&value, pspec->value_type); 1128s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1128s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1128s # g_value_unset (&value); 1128s # } 1128s # return ret; 1128s # } 1128s # 1128s # static gboolean 1128s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1128s # GDBusConnection *connection G_GNUC_UNUSED, 1128s # const gchar *sender G_GNUC_UNUSED, 1128s # const gchar *object_path G_GNUC_UNUSED, 1128s # const gchar *interface_name G_GNUC_UNUSED, 1128s # const gchar *property_name, 1128s # GVariant *variant, 1128s # GError **error, 1128s # gpointer user_data) 1128s # { 1128s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1128s # GValue value = G_VALUE_INIT; 1128s # GParamSpec *pspec; 1128s # _ExtendedGDBusPropertyInfo *info; 1128s # gboolean ret; 1128s # ret = FALSE; 1128s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1128s # g_assert (info != NULL); 1128s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1128s # if (pspec == NULL) 1128s # { 1128s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1128s # } 1128s # else 1128s # { 1128s # if (info->use_gvariant) 1128s # g_value_set_variant (&value, variant); 1128s # else 1128s # g_dbus_gvariant_to_gvalue (variant, &value); 1128s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1128s # g_value_unset (&value); 1128s # ret = TRUE; 1128s # } 1128s # return ret; 1128s # } 1128s # 1128s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1128s # { 1128s # _org_project_other_callable_iface_skeleton_handle_method_call, 1128s # _org_project_other_callable_iface_skeleton_handle_get_property, 1128s # _org_project_other_callable_iface_skeleton_handle_set_property, 1128s # {NULL} 1128s # }; 1128s # 1128s # static GDBusInterfaceInfo * 1128s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1128s # { 1128s # return org_project_other_callable_iface_interface_info (); 1128s # } 1128s # 1128s # static GDBusInterfaceVTable * 1128s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1128s # { 1128s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1128s # } 1128s # 1128s # static GVariant * 1128s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1128s # { 1128s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1128s # 1128s # GVariantBuilder builder; 1128s # guint n; 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1128s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # #else 1128s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1128s # #endif 1128s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1128s # goto out; 1128s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1128s # { 1128s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1128s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1128s # { 1128s # GVariant *value; 1128s # 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); 1128s # if (value != NULL) 1128s # { 1128s # g_variant_take_ref (value); 1128s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1128s # g_variant_unref (value); 1128s # } 1128s # } 1128s # } 1128s # out: 1128s # return g_variant_builder_end (&builder); 1128s # } 1128s # 1128s # static void 1128s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1128s # { 1128s # } 1128s # 1128s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1128s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1128s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1128s # 1128s # #else 1128s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1128s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1128s # 1128s # #endif 1128s # static void 1128s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1128s # { 1128s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1128s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1128s # if (skeleton->priv->changed_properties_idle_source != NULL) 1128s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1128s # g_main_context_unref (skeleton->priv->context); 1128s # g_mutex_clear (&skeleton->priv->lock); 1128s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1128s # } 1128s # 1128s # static void 1128s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1128s # { 1128s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1128s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1128s # #else 1128s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1128s # #endif 1128s # 1128s # g_mutex_init (&skeleton->priv->lock); 1128s # skeleton->priv->context = g_main_context_ref_thread_default (); 1128s # } 1128s # 1128s # static void 1128s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1128s # { 1128s # GObjectClass *gobject_class; 1128s # GDBusInterfaceSkeletonClass *skeleton_class; 1128s # 1128s # gobject_class = G_OBJECT_CLASS (klass); 1128s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1128s # 1128s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1128s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1128s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1128s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1128s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1128s # 1128s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1128s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1128s # #endif 1128s # } 1128s # 1128s # static void 1128s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1128s # { 1128s # } 1128s # 1128s # /** 1128s # * org_project_other_callable_iface_skeleton_new: 1128s # * 1128s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1128s # * 1128s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1128s # */ 1128s # OrgProjectOtherCallableIface * 1128s # org_project_other_callable_iface_skeleton_new (void) 1128s # { 1128s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1128s # } 1128s # Error: 1128s ok 10 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_in_args 1129s # gdbus-codegen: /usr/bin/gdbus-codegen 1129s # tmpdir: /tmp/tmpy79ge7k7 1129s # /tmp/tmpy79ge7k7/tmpj763x0f0.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmpj763x0f0.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # gboolean arg_arg_b, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectBooleanFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_boolean (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_b", 1129s # (gchar *) "b", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_arg_b.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodB", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-b", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_b: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-b", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_b, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_BOOLEAN); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_b: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_b: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_b ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gboolean arg_arg_b, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodB", 1129s # g_variant_new ("(b)", 1129s # arg_arg_b), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_b_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_b_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_b_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_b: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_b_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gboolean arg_arg_b, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodB", 1129s # g_variant_new ("(b)", 1129s # arg_arg_b), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_b: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_b ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmp2zpqv6a4.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmp2zpqv6a4.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # guchar arg_arg_y, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectUcharFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectUcharFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_uchar (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_y", 1129s # (gchar *) "y", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_arg_y.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodY", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-y", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UCHAR (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_y: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-y", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_y, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UCHAR); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_y: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_y: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_y ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guchar arg_arg_y, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodY", 1129s # g_variant_new ("(y)", 1129s # arg_arg_y), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_y_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_y_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_y_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_y: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_y_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guchar arg_arg_y, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodY", 1129s # g_variant_new ("(y)", 1129s # arg_arg_y), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_y: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_y ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmp9m5shpfe.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmp9m5shpfe.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # gint16 arg_arg_n, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_int (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_n", 1129s # (gchar *) "n", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_arg_n.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodN", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-n", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_n: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-n", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_n, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_n: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_n: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_n ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gint16 arg_arg_n, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodN", 1129s # g_variant_new ("(n)", 1129s # arg_arg_n), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_n_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_n_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_n_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_n: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_n_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gint16 arg_arg_n, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodN", 1129s # g_variant_new ("(n)", 1129s # arg_arg_n), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_n: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_n ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmp1q0e17sk.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmp1q0e17sk.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # guint16 arg_arg_q, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_uint (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_q", 1129s # (gchar *) "q", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_arg_q.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodQ", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-q", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_q: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-q", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_q, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_q: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_q: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_q ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guint16 arg_arg_q, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodQ", 1129s # g_variant_new ("(q)", 1129s # arg_arg_q), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_q_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_q_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_q_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_q: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_q_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guint16 arg_arg_q, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodQ", 1129s # g_variant_new ("(q)", 1129s # arg_arg_q), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_q: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_q ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmpefh_nwtm.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmpefh_nwtm.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # gint arg_arg_i, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectIntFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectIntFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_int (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_i", 1129s # (gchar *) "i", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_arg_i.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodI", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-i", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_i: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-i", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_i, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_i: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_i: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_i ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gint arg_arg_i, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodI", 1129s # g_variant_new ("(i)", 1129s # arg_arg_i), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_i_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_i_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_i_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_i: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_i_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gint arg_arg_i, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodI", 1129s # g_variant_new ("(i)", 1129s # arg_arg_i), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_i: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_i ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmpk0qggqdx.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmpk0qggqdx.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # guint arg_arg_u, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectUintFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectUintFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_uint (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_u", 1129s # (gchar *) "u", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_arg_u.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodU", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-u", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_u: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-u", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_u, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_u: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_u: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_u ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guint arg_arg_u, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodU", 1129s # g_variant_new ("(u)", 1129s # arg_arg_u), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_u_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_u_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_u_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_u: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_u_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guint arg_arg_u, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodU", 1129s # g_variant_new ("(u)", 1129s # arg_arg_u), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_u: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_u ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmpz0be7km7.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmpz0be7km7.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # gint64 arg_arg_x, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectInt64Func callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectInt64Func) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_int64 (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_x", 1129s # (gchar *) "x", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_arg_x.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodX", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-x", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_INT64 (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_x: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-x", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_x, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_INT64); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_x: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_x: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_x ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gint64 arg_arg_x, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodX", 1129s # g_variant_new ("(x)", 1129s # arg_arg_x), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_x_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_x_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_x_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_x: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_x_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gint64 arg_arg_x, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodX", 1129s # g_variant_new ("(x)", 1129s # arg_arg_x), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_x: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_x ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmpyjlj1l2k.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmpyjlj1l2k.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # guint64 arg_arg_t, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectUint64Func callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectUint64Func) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_uint64 (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_t", 1129s # (gchar *) "t", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_arg_t.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodT", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-t", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_UINT64 (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_t: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-t", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_t, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UINT64); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_t: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_t: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_t ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guint64 arg_arg_t, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodT", 1129s # g_variant_new ("(t)", 1129s # arg_arg_t), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_t_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_t_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_t_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_t: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_t_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guint64 arg_arg_t, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodT", 1129s # g_variant_new ("(t)", 1129s # arg_arg_t), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_t: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_t ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmphe4_wxus.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmphe4_wxus.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # gdouble arg_arg_d, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectDoubleFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectDoubleFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_double (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_d", 1129s # (gchar *) "d", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_arg_d.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodD", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-d", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_DOUBLE (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_d: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-d", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_d, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_DOUBLE); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_d: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_d: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_d ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gdouble arg_arg_d, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodD", 1129s # g_variant_new ("(d)", 1129s # arg_arg_d), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_d_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_d_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_d_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_d: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_d_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gdouble arg_arg_d, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodD", 1129s # g_variant_new ("(d)", 1129s # arg_arg_d), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_d: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_d ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmphnyaq1fo.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmphnyaq1fo.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # const gchar *arg_arg_s, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_string (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_s", 1129s # (gchar *) "s", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_arg_s.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodS", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-s", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_s: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-s", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_s, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_s: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_s: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_s ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # const gchar *arg_arg_s, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodS", 1129s # g_variant_new ("(s)", 1129s # arg_arg_s), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_s_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_s_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_s_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_s: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_s_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # const gchar *arg_arg_s, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodS", 1129s # g_variant_new ("(s)", 1129s # arg_arg_s), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_s: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_s ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmpn477kic7.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmpn477kic7.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # const gchar *arg_arg_o, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_string (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_o", 1129s # (gchar *) "o", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_arg_o.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodO", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-o", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_o: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-o", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_o, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_o: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_o: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_o ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # const gchar *arg_arg_o, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodO", 1129s # g_variant_new ("(o)", 1129s # arg_arg_o), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_o_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_o_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_o_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_o: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_o_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # const gchar *arg_arg_o, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodO", 1129s # g_variant_new ("(o)", 1129s # arg_arg_o), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_o: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_o ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmpvmdzp684.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmpvmdzp684.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # const gchar *arg_arg_g, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_string (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_g", 1129s # (gchar *) "g", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_arg_g.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodG", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-g", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_g: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-g", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_g, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_g: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_g: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_g ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # const gchar *arg_arg_g, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodG", 1129s # g_variant_new ("(g)", 1129s # arg_arg_g), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_g_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_g_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_g_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_g: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_g_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # const gchar *arg_arg_g, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodG", 1129s # g_variant_new ("(g)", 1129s # arg_arg_g), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_g: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_g ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmpz2ljozwk.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmpz2ljozwk.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # GVariant *arg_arg_h, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_variant (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_h", 1129s # (gchar *) "h", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_arg_h.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodH", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-h", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_h: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-h", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_h, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_h: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_h: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_h ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GVariant *arg_arg_h, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodH", 1129s # g_variant_new ("(@h)", 1129s # arg_arg_h), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_h_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_h_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_h_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_h: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_h_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GVariant *arg_arg_h, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodH", 1129s # g_variant_new ("(@h)", 1129s # arg_arg_h), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_h: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_h ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmp2o3gzrx1.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmp2o3gzrx1.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # const gchar *arg_arg_ay, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectStringFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectStringFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_string (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_ay", 1129s # (gchar *) "ay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_arg_ay.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodAy", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-ay", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_STRING (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_ay: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-ay", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRING); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_ay: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_ay: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_ay ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # const gchar *arg_arg_ay, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAy", 1129s # g_variant_new ("(^ay)", 1129s # arg_arg_ay), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_ay: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # const gchar *arg_arg_ay, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAy", 1129s # g_variant_new ("(^ay)", 1129s # arg_arg_ay), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_ay: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_ay ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmpbhyepc2u.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmpbhyepc2u.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # const gchar *const *arg_arg_as, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_boxed (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_as", 1129s # (gchar *) "as", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_arg_as.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodAs", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-as", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_as: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-as", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_as, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_as: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_as: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_as ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # const gchar *const *arg_arg_as, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAs", 1129s # g_variant_new ("(^as)", 1129s # arg_arg_as), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_as_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_as_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_as_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_as: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_as_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # const gchar *const *arg_arg_as, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAs", 1129s # g_variant_new ("(^as)", 1129s # arg_arg_as), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_as: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_as ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmpcsxdegiu.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmpcsxdegiu.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # const gchar *const *arg_arg_ao, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_boxed (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_ao", 1129s # (gchar *) "ao", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_arg_ao.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodAo", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-ao", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_ao: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-ao", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_ao: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_ao: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_ao ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # const gchar *const *arg_arg_ao, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAo", 1129s # g_variant_new ("(^ao)", 1129s # arg_arg_ao), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_ao: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # const gchar *const *arg_arg_ao, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAo", 1129s # g_variant_new ("(^ao)", 1129s # arg_arg_ao), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_ao: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_ao ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmps4kz7sf0.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmps4kz7sf0.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # const gchar *const *arg_arg_aay, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectBoxedFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectBoxedFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_boxed (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_aay", 1129s # (gchar *) "aay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_arg_aay.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodAay", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-aay", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOXED (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_aay: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-aay", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_STRV); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_aay: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_aay: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_aay ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # const gchar *const *arg_arg_aay, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAay", 1129s # g_variant_new ("(^aay)", 1129s # arg_arg_aay), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_aay: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # const gchar *const *arg_arg_aay, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAay", 1129s # g_variant_new ("(^aay)", 1129s # arg_arg_aay), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_aay: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_aay ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmpy79ge7k7/tmpwx37s2sx.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpy79ge7k7/tmpwx37s2sx.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # GVariant *arg_arg_asv, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectVariantFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 3); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectVariantFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_variant (param_values + 2), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_asv", 1129s # (gchar *) "a{sv}", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_arg_asv.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodAsv", 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-asv", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_VARIANT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_arg_asv: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-asv", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1129s # G_TYPE_BOOLEAN, 1129s # 2, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_VARIANT); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_asv: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_asv: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_asv ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GVariant *arg_arg_asv, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAsv", 1129s # g_variant_new ("(@a{sv})", 1129s # arg_arg_asv), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @arg_arg_asv: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GVariant *arg_arg_asv, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAsv", 1129s # g_variant_new ("(@a{sv})", 1129s # arg_arg_asv), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_asv: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_asv ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s ok 11 __main__.TestCodegen.test_generate_methods_marshaller_single_typed_out_args 1129s # gdbus-codegen: /usr/bin/gdbus-codegen 1129s # tmpdir: /tmp/tmp8ha0j4ps 1129s # /tmp/tmp8ha0j4ps/tmpq13n0uo3.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmpq13n0uo3.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_b", 1129s # (gchar *) "b", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_arg_b.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_b = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodB", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_b_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-b", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_b.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_b ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_b: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-b signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-b: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodB() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-b", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_b), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_b, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_b: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodB() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_b_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_b_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_b ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodB", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_b_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_b(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_b(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_b_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gboolean *out_arg_b, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(b)", 1129s # out_arg_b); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_b_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodB() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_b() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_b_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gboolean *out_arg_b, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodB", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(b)", 1129s # out_arg_b); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_b: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_b: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_b ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # gboolean arg_b) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(b)", 1129s # arg_b)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmpb68u4my2.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmpb68u4my2.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_y", 1129s # (gchar *) "y", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_arg_y.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_y = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodY", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_y_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-y", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_y.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_y ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_y: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-y signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-y: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodY() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-y", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_y), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_y, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_y: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodY() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_y_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_y_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_y ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodY", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_y_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_y(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_y(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_y_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guchar *out_arg_y, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(y)", 1129s # out_arg_y); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_y_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodY() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_y() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_y_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guchar *out_arg_y, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodY", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(y)", 1129s # out_arg_y); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_y: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_y: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_y ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # guchar arg_y) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(y)", 1129s # arg_y)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmpjx_bc_g8.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmpjx_bc_g8.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_n", 1129s # (gchar *) "n", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_arg_n.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_n = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodN", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_n_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-n", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_n.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_n ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_n: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-n signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-n: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodN() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-n", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_n), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_n, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_n: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodN() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_n_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_n_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_n ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodN", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_n_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_n(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_n(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_n_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gint16 *out_arg_n, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(n)", 1129s # out_arg_n); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_n_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodN() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_n() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_n_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gint16 *out_arg_n, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodN", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(n)", 1129s # out_arg_n); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_n: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_n: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_n ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # gint16 arg_n) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(n)", 1129s # arg_n)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmpzayzxtio.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmpzayzxtio.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_q", 1129s # (gchar *) "q", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_arg_q.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_q = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodQ", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_q_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-q", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_q.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_q ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_q: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-q signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-q: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodQ() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-q", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_q), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_q, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_q: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_q_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_q_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_q ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodQ", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_q_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_q(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_q(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_q_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guint16 *out_arg_q, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(q)", 1129s # out_arg_q); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_q_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodQ() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_q() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_q_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guint16 *out_arg_q, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodQ", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(q)", 1129s # out_arg_q); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_q: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_q: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_q ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # guint16 arg_q) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(q)", 1129s # arg_q)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmp2anv9eqy.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmp2anv9eqy.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_i", 1129s # (gchar *) "i", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_arg_i.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_i = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodI", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_i_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-i", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_i.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_i ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_i: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-i signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-i: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodI() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-i", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_i), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_i, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_i: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodI() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_i_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_i_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_i ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodI", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_i_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_i(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_i(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_i_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gint *out_arg_i, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(i)", 1129s # out_arg_i); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_i_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodI() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_i() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_i_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gint *out_arg_i, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodI", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(i)", 1129s # out_arg_i); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_i: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_i: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_i ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # gint arg_i) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(i)", 1129s # arg_i)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmpz97fxznk.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmpz97fxznk.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_u", 1129s # (gchar *) "u", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_arg_u.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_u = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodU", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_u_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-u", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_u.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_u ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_u: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-u signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-u: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodU() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-u", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_u), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_u, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_u: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodU() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_u_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_u_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_u ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodU", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_u_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_u(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_u(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_u_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guint *out_arg_u, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(u)", 1129s # out_arg_u); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_u_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodU() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_u() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_u_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guint *out_arg_u, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodU", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(u)", 1129s # out_arg_u); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_u: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_u: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_u ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # guint arg_u) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(u)", 1129s # arg_u)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmp3xtcwb16.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmp3xtcwb16.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_x", 1129s # (gchar *) "x", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_arg_x.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_x = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodX", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_x_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-x", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_x.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_x ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_x: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-x signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-x: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodX() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-x", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_x), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_x, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_x: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodX() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_x_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_x_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_x ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodX", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_x_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_x(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_x(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_x_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gint64 *out_arg_x, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(x)", 1129s # out_arg_x); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_x_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodX() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_x() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_x_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gint64 *out_arg_x, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodX", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(x)", 1129s # out_arg_x); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_x: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_x: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_x ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # gint64 arg_x) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(x)", 1129s # arg_x)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmpkm5jutl6.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmpkm5jutl6.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_t", 1129s # (gchar *) "t", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_arg_t.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_t = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodT", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_t_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-t", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_t.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_t ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_t: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-t signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-t: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodT() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-t", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_t), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_t, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_t: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodT() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_t_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_t_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_t ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodT", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_t_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_t(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_t(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_t_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guint64 *out_arg_t, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(t)", 1129s # out_arg_t); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_t_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodT() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_t() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_t_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # guint64 *out_arg_t, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodT", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(t)", 1129s # out_arg_t); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_t: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_t: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_t ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # guint64 arg_t) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(t)", 1129s # arg_t)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmpjvx1ipua.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmpjvx1ipua.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_d", 1129s # (gchar *) "d", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_arg_d.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_d = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodD", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_d_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-d", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_d.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_d ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_d: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-d signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-d: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodD() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-d", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_d), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_d, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_d: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodD() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_d_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_d_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_d ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodD", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_d_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_d(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_d(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_d_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gdouble *out_arg_d, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(d)", 1129s # out_arg_d); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_d_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_d() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_d_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gdouble *out_arg_d, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodD", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(d)", 1129s # out_arg_d); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_d: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_d: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_d ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # gdouble arg_d) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(d)", 1129s # arg_d)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmp6mkis7hb.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmp6mkis7hb.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_s", 1129s # (gchar *) "s", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_arg_s.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_s = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodS", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_s_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-s", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_s.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_s ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_s: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-s signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-s: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodS() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-s", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_s), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_s, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_s: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodS() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_s_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_s_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_s ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodS", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_s_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_s(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_s(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_s_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gchar **out_arg_s, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(s)", 1129s # out_arg_s); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_s_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodS() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_s() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_s_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gchar **out_arg_s, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodS", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(s)", 1129s # out_arg_s); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_s: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_s: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_s ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # const gchar *arg_s) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(s)", 1129s # arg_s)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmpwm8daflt.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmpwm8daflt.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_o", 1129s # (gchar *) "o", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_arg_o.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_o = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodO", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_o_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-o", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_o.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_o ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_o: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-o signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-o: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodO() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-o", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_o), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_o, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_o: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodO() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_o_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_o_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_o ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodO", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_o_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_o(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_o(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_o_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gchar **out_arg_o, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(o)", 1129s # out_arg_o); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_o_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodO() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_o() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_o_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gchar **out_arg_o, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodO", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(o)", 1129s # out_arg_o); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_o: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_o: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_o ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # const gchar *arg_o) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(o)", 1129s # arg_o)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmp9du4y3z2.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmp9du4y3z2.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_g", 1129s # (gchar *) "g", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_arg_g.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_g = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodG", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_g_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-g", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_g.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_g ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_g: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-g signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-g: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodG() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-g", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_g), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_g, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_g: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodG() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_g_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_g_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_g ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodG", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_g_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_g(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_g(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_g_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gchar **out_arg_g, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(g)", 1129s # out_arg_g); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_g_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodG() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_g() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_g_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gchar **out_arg_g, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodG", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(g)", 1129s # out_arg_g); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_g: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_g: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_g ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # const gchar *arg_g) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(g)", 1129s # arg_g)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmpvh_4t7vk.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmpvh_4t7vk.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_h", 1129s # (gchar *) "h", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_arg_h.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_h = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodH", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_h_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-h", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_h.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_h ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_h: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-h signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-h: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodH() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-h", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_h), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_h, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_h: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodH() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_h_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_h_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_h ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodH", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_h_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_h(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_h(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_h_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GVariant **out_arg_h, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(@h)", 1129s # out_arg_h); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_h_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodH() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_h() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_h_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GVariant **out_arg_h, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodH", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(@h)", 1129s # out_arg_h); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_h: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_h: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_h ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # GVariant *arg_h) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(@h)", 1129s # arg_h)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmpevbq4_o8.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmpevbq4_o8.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_ay", 1129s # (gchar *) "ay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_arg_ay.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodAy", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ay_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-ay", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_ay.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_ay ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_ay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ay signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-ay: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodAy() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-ay", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ay), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_ay, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_ay: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_ay_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_ay_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_ay ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAy", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_ay_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ay(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ay(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_ay_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gchar **out_arg_ay, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(^ay)", 1129s # out_arg_ay); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_ay_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodAy() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_ay() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_ay_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gchar **out_arg_ay, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAy", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(^ay)", 1129s # out_arg_ay); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_ay: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_ay: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_ay ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # const gchar *arg_ay) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(^ay)", 1129s # arg_ay)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmpaepx4lfl.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmpaepx4lfl.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_as", 1129s # (gchar *) "as", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_arg_as.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_as = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodAs", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_as_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-as", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_as.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_as ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_as: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-as signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-as: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodAs() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-as", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_as), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_as, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_as: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_as_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_as_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_as ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAs", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_as_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_as(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_as(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_as_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gchar ***out_arg_as, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(^as)", 1129s # out_arg_as); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_as_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodAs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_as() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_as_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gchar ***out_arg_as, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAs", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(^as)", 1129s # out_arg_as); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_as: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_as: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_as ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # const gchar *const *arg_as) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(^as)", 1129s # arg_as)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmpu3n92wnn.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmpu3n92wnn.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_ao", 1129s # (gchar *) "ao", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_arg_ao.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_ao = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodAo", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_ao_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-ao", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_ao.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_ao ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_ao: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-ao signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-ao: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodAo() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-ao", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_ao), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_ao, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_ao: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_ao_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_ao_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_ao ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAo", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_ao_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_ao(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_ao(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_ao_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gchar ***out_arg_ao, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(^ao)", 1129s # out_arg_ao); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_ao_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodAo() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_ao() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_ao_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gchar ***out_arg_ao, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAo", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(^ao)", 1129s # out_arg_ao); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_ao: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_ao: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_ao ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # const gchar *const *arg_ao) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(^ao)", 1129s # arg_ao)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmpc_v78cnf.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmpc_v78cnf.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_aay", 1129s # (gchar *) "aay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_arg_aay.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_aay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodAay", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_aay_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-aay", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_aay.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_aay ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_aay: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-aay signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-aay: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodAay() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-aay", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_aay), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_aay, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_aay: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_aay_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_aay_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_aay ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAay", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_aay_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_aay(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_aay(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_aay_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gchar ***out_arg_aay, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(^aay)", 1129s # out_arg_aay); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_aay_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodAay() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_aay() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_aay_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # gchar ***out_arg_aay, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAay", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(^aay)", 1129s # out_arg_aay); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_aay: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_aay: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_aay ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # const gchar *const *arg_aay) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(^aay)", 1129s # arg_aay)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s # 1129s # /tmp/tmp8ha0j4ps/tmp6vge2t_t.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8ha0j4ps/tmp6vge2t_t.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "arg_asv", 1129s # (gchar *) "a{sv}", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_arg_asv.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_useful_interface_method_info_single_arg_method_asv = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgMethodAsv", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_useful_interface_method_info_single_arg_method_asv_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-single-arg-method-asv", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_useful_interface_method_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_method_info_single_arg_method_asv.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # (GDBusMethodInfo **) &_org_project_useful_interface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_method_marshal_single_arg_method_asv ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_single_arg_method_asv: Handler for the #OrgProjectUsefulInterface::handle-single-arg-method-asv signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::handle-single-arg-method-asv: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SingleArgMethodAsv() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-single-arg-method-asv", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, handle_single_arg_method_asv), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_useful_interface_method_marshal_single_arg_method_asv, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_asv: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_call_single_arg_method_asv_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_asv_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_useful_interface_call_single_arg_method_asv ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAsv", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_asv_finish: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_call_single_arg_method_asv(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_call_single_arg_method_asv(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_asv_finish ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GVariant **out_arg_asv, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(@a{sv})", 1129s # out_arg_asv); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_call_single_arg_method_asv_sync: 1129s # * @proxy: A #OrgProjectUsefulInterfaceProxy. 1129s # * @out_arg_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SingleArgMethodAsv() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_call_single_arg_method_asv() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_useful_interface_call_single_arg_method_asv_sync ( 1129s # OrgProjectUsefulInterface *proxy, 1129s # GVariant **out_arg_asv, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SingleArgMethodAsv", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(@a{sv})", 1129s # out_arg_asv); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_complete_single_arg_method_asv: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @arg_asv: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_useful_interface_complete_single_arg_method_asv ( 1129s # OrgProjectUsefulInterface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # GVariant *arg_asv) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(@a{sv})", 1129s # arg_asv)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s ok 12 __main__.TestCodegen.test_generate_methods_marshallers_multiple_in_args 1129s # gdbus-codegen: /usr/bin/gdbus-codegen 1129s # tmpdir: /tmp/tmphvwmkzif 1129s # /tmp/tmphvwmkzif/tmplbn1_tgp.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmphvwmkzif/tmplbn1_tgp.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # gboolean arg_an_b, 1129s # guchar arg_an_y, 1129s # gint16 arg_an_n, 1129s # guint16 arg_an_q, 1129s # gint arg_an_i, 1129s # guint arg_an_u, 1129s # gint64 arg_an_x, 1129s # guint64 arg_an_t, 1129s # gdouble arg_an_d, 1129s # const gchar *arg_an_s, 1129s # const gchar *arg_an_o, 1129s # const gchar *arg_an_g, 1129s # GVariant *arg_an_h, 1129s # const gchar *arg_an_ay, 1129s # const gchar *const *arg_an_as, 1129s # const gchar *const *arg_an_ao, 1129s # const gchar *const *arg_an_aay, 1129s # GVariant *arg_an_asv, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 20); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectBooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_boolean (param_values + 2), 1129s # g_marshal_value_peek_uchar (param_values + 3), 1129s # g_marshal_value_peek_int (param_values + 4), 1129s # g_marshal_value_peek_uint (param_values + 5), 1129s # g_marshal_value_peek_int (param_values + 6), 1129s # g_marshal_value_peek_uint (param_values + 7), 1129s # g_marshal_value_peek_int64 (param_values + 8), 1129s # g_marshal_value_peek_uint64 (param_values + 9), 1129s # g_marshal_value_peek_double (param_values + 10), 1129s # g_marshal_value_peek_string (param_values + 11), 1129s # g_marshal_value_peek_string (param_values + 12), 1129s # g_marshal_value_peek_string (param_values + 13), 1129s # g_marshal_value_peek_variant (param_values + 14), 1129s # g_marshal_value_peek_string (param_values + 15), 1129s # g_marshal_value_peek_boxed (param_values + 16), 1129s # g_marshal_value_peek_boxed (param_values + 17), 1129s # g_marshal_value_peek_boxed (param_values + 18), 1129s # g_marshal_value_peek_variant (param_values + 19), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.CallableIface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectCallableIface 1129s # * @title: OrgProjectCallableIface 1129s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.CallableIface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_b", 1129s # (gchar *) "b", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_y", 1129s # (gchar *) "y", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_n", 1129s # (gchar *) "n", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_q", 1129s # (gchar *) "q", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_i", 1129s # (gchar *) "i", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_u", 1129s # (gchar *) "u", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_x", 1129s # (gchar *) "x", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_t", 1129s # (gchar *) "t", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_d", 1129s # (gchar *) "d", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_s", 1129s # (gchar *) "s", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_o", 1129s # (gchar *) "o", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_g", 1129s # (gchar *) "g", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_h", 1129s # (gchar *) "h", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_ay", 1129s # (gchar *) "ay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_as", 1129s # (gchar *) "as", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_ao", 1129s # (gchar *) "ao", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_aay", 1129s # (gchar *) "aay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_asv", 1129s # (gchar *) "a{sv}", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "MethodWithManyArgs", 1129s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-method-with-many-args", 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_b", 1129s # (gchar *) "b", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_y", 1129s # (gchar *) "y", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_n", 1129s # (gchar *) "n", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_q", 1129s # (gchar *) "q", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_i", 1129s # (gchar *) "i", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_u", 1129s # (gchar *) "u", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_x", 1129s # (gchar *) "x", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_t", 1129s # (gchar *) "t", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_d", 1129s # (gchar *) "d", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_s", 1129s # (gchar *) "s", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_o", 1129s # (gchar *) "o", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_g", 1129s # (gchar *) "g", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_h", 1129s # (gchar *) "h", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_ay", 1129s # (gchar *) "ay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_as", 1129s # (gchar *) "as", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_ao", 1129s # (gchar *) "ao", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_aay", 1129s # (gchar *) "aay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_asv", 1129s # (gchar *) "a{sv}", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_b.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_y.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_n.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_q.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_i.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_u.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_x.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_t.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_d.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_s.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_o.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_g.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_h.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ay.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_as.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_ao.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_aay.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_an_asv.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_same_method_with_many_args = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SameMethodWithManyArgs", 1129s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_same_method_with_many_args_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-same-method-with-many-args", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1129s # { 1129s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1129s # &_org_project_callable_iface_method_info_same_method_with_many_args.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.CallableIface", 1129s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-callable-iface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_callable_iface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_callable_iface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_callable_iface_method_marshal_method_with_many_args ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _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, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_callable_iface_method_marshal_same_method_with_many_args ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _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, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectCallableIface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectCallableIfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1129s # * @handle_same_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-same-method-with-many-args signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.CallableIface. 1129s # */ 1129s # 1129s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectCallableIface::handle-method-with-many-args: 1129s # * @object: A #OrgProjectCallableIface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_an_b: Argument passed by remote caller. 1129s # * @arg_an_y: Argument passed by remote caller. 1129s # * @arg_an_n: Argument passed by remote caller. 1129s # * @arg_an_q: Argument passed by remote caller. 1129s # * @arg_an_i: Argument passed by remote caller. 1129s # * @arg_an_u: Argument passed by remote caller. 1129s # * @arg_an_x: Argument passed by remote caller. 1129s # * @arg_an_t: Argument passed by remote caller. 1129s # * @arg_an_d: Argument passed by remote caller. 1129s # * @arg_an_s: Argument passed by remote caller. 1129s # * @arg_an_o: Argument passed by remote caller. 1129s # * @arg_an_g: Argument passed by remote caller. 1129s # * @arg_an_h: Argument passed by remote caller. 1129s # * @arg_an_ay: Argument passed by remote caller. 1129s # * @arg_an_as: Argument passed by remote caller. 1129s # * @arg_an_ao: Argument passed by remote caller. 1129s # * @arg_an_aay: Argument passed by remote caller. 1129s # * @arg_an_asv: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-method-with-many-args", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_callable_iface_method_marshal_method_with_many_args, 1129s # G_TYPE_BOOLEAN, 1129s # 19, 1129s # 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); 1129s # 1129s # /** 1129s # * OrgProjectCallableIface::handle-same-method-with-many-args: 1129s # * @object: A #OrgProjectCallableIface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_an_b: Argument passed by remote caller. 1129s # * @arg_an_y: Argument passed by remote caller. 1129s # * @arg_an_n: Argument passed by remote caller. 1129s # * @arg_an_q: Argument passed by remote caller. 1129s # * @arg_an_i: Argument passed by remote caller. 1129s # * @arg_an_u: Argument passed by remote caller. 1129s # * @arg_an_x: Argument passed by remote caller. 1129s # * @arg_an_t: Argument passed by remote caller. 1129s # * @arg_an_d: Argument passed by remote caller. 1129s # * @arg_an_s: Argument passed by remote caller. 1129s # * @arg_an_o: Argument passed by remote caller. 1129s # * @arg_an_g: Argument passed by remote caller. 1129s # * @arg_an_h: Argument passed by remote caller. 1129s # * @arg_an_ay: Argument passed by remote caller. 1129s # * @arg_an_as: Argument passed by remote caller. 1129s # * @arg_an_ao: Argument passed by remote caller. 1129s # * @arg_an_aay: Argument passed by remote caller. 1129s # * @arg_an_asv: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the SameMethodWithManyArgs() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-same-method-with-many-args", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_same_method_with_many_args), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_callable_iface_method_marshal_same_method_with_many_args, 1129s # G_TYPE_BOOLEAN, 1129s # 19, 1129s # 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); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_call_method_with_many_args: 1129s # * @proxy: A #OrgProjectCallableIfaceProxy. 1129s # * @arg_an_b: Argument to pass with the method invocation. 1129s # * @arg_an_y: Argument to pass with the method invocation. 1129s # * @arg_an_n: Argument to pass with the method invocation. 1129s # * @arg_an_q: Argument to pass with the method invocation. 1129s # * @arg_an_i: Argument to pass with the method invocation. 1129s # * @arg_an_u: Argument to pass with the method invocation. 1129s # * @arg_an_x: Argument to pass with the method invocation. 1129s # * @arg_an_t: Argument to pass with the method invocation. 1129s # * @arg_an_d: Argument to pass with the method invocation. 1129s # * @arg_an_s: Argument to pass with the method invocation. 1129s # * @arg_an_o: Argument to pass with the method invocation. 1129s # * @arg_an_g: Argument to pass with the method invocation. 1129s # * @arg_an_h: Argument to pass with the method invocation. 1129s # * @arg_an_ay: Argument to pass with the method invocation. 1129s # * @arg_an_as: Argument to pass with the method invocation. 1129s # * @arg_an_ao: Argument to pass with the method invocation. 1129s # * @arg_an_aay: Argument to pass with the method invocation. 1129s # * @arg_an_asv: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_callable_iface_call_method_with_many_args ( 1129s # OrgProjectCallableIface *proxy, 1129s # gboolean arg_an_b, 1129s # guchar arg_an_y, 1129s # gint16 arg_an_n, 1129s # guint16 arg_an_q, 1129s # gint arg_an_i, 1129s # guint arg_an_u, 1129s # gint64 arg_an_x, 1129s # guint64 arg_an_t, 1129s # gdouble arg_an_d, 1129s # const gchar *arg_an_s, 1129s # const gchar *arg_an_o, 1129s # const gchar *arg_an_g, 1129s # GVariant *arg_an_h, 1129s # const gchar *arg_an_ay, 1129s # const gchar *const *arg_an_as, 1129s # const gchar *const *arg_an_ao, 1129s # const gchar *const *arg_an_aay, 1129s # GVariant *arg_an_asv, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "MethodWithManyArgs", 1129s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1129s # arg_an_b, 1129s # arg_an_y, 1129s # arg_an_n, 1129s # arg_an_q, 1129s # arg_an_i, 1129s # arg_an_u, 1129s # arg_an_x, 1129s # arg_an_t, 1129s # arg_an_d, 1129s # arg_an_s, 1129s # arg_an_o, 1129s # arg_an_g, 1129s # arg_an_h, 1129s # arg_an_ay, 1129s # arg_an_as, 1129s # arg_an_ao, 1129s # arg_an_aay, 1129s # arg_an_asv), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_call_method_with_many_args_finish: 1129s # * @proxy: A #OrgProjectCallableIfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_callable_iface_call_method_with_many_args_finish ( 1129s # OrgProjectCallableIface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_call_method_with_many_args_sync: 1129s # * @proxy: A #OrgProjectCallableIfaceProxy. 1129s # * @arg_an_b: Argument to pass with the method invocation. 1129s # * @arg_an_y: Argument to pass with the method invocation. 1129s # * @arg_an_n: Argument to pass with the method invocation. 1129s # * @arg_an_q: Argument to pass with the method invocation. 1129s # * @arg_an_i: Argument to pass with the method invocation. 1129s # * @arg_an_u: Argument to pass with the method invocation. 1129s # * @arg_an_x: Argument to pass with the method invocation. 1129s # * @arg_an_t: Argument to pass with the method invocation. 1129s # * @arg_an_d: Argument to pass with the method invocation. 1129s # * @arg_an_s: Argument to pass with the method invocation. 1129s # * @arg_an_o: Argument to pass with the method invocation. 1129s # * @arg_an_g: Argument to pass with the method invocation. 1129s # * @arg_an_h: Argument to pass with the method invocation. 1129s # * @arg_an_ay: Argument to pass with the method invocation. 1129s # * @arg_an_as: Argument to pass with the method invocation. 1129s # * @arg_an_ao: Argument to pass with the method invocation. 1129s # * @arg_an_aay: Argument to pass with the method invocation. 1129s # * @arg_an_asv: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_callable_iface_call_method_with_many_args_sync ( 1129s # OrgProjectCallableIface *proxy, 1129s # gboolean arg_an_b, 1129s # guchar arg_an_y, 1129s # gint16 arg_an_n, 1129s # guint16 arg_an_q, 1129s # gint arg_an_i, 1129s # guint arg_an_u, 1129s # gint64 arg_an_x, 1129s # guint64 arg_an_t, 1129s # gdouble arg_an_d, 1129s # const gchar *arg_an_s, 1129s # const gchar *arg_an_o, 1129s # const gchar *arg_an_g, 1129s # GVariant *arg_an_h, 1129s # const gchar *arg_an_ay, 1129s # const gchar *const *arg_an_as, 1129s # const gchar *const *arg_an_ao, 1129s # const gchar *const *arg_an_aay, 1129s # GVariant *arg_an_asv, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "MethodWithManyArgs", 1129s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1129s # arg_an_b, 1129s # arg_an_y, 1129s # arg_an_n, 1129s # arg_an_q, 1129s # arg_an_i, 1129s # arg_an_u, 1129s # arg_an_x, 1129s # arg_an_t, 1129s # arg_an_d, 1129s # arg_an_s, 1129s # arg_an_o, 1129s # arg_an_g, 1129s # arg_an_h, 1129s # arg_an_ay, 1129s # arg_an_as, 1129s # arg_an_ao, 1129s # arg_an_aay, 1129s # arg_an_asv), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_call_same_method_with_many_args: 1129s # * @proxy: A #OrgProjectCallableIfaceProxy. 1129s # * @arg_an_b: Argument to pass with the method invocation. 1129s # * @arg_an_y: Argument to pass with the method invocation. 1129s # * @arg_an_n: Argument to pass with the method invocation. 1129s # * @arg_an_q: Argument to pass with the method invocation. 1129s # * @arg_an_i: Argument to pass with the method invocation. 1129s # * @arg_an_u: Argument to pass with the method invocation. 1129s # * @arg_an_x: Argument to pass with the method invocation. 1129s # * @arg_an_t: Argument to pass with the method invocation. 1129s # * @arg_an_d: Argument to pass with the method invocation. 1129s # * @arg_an_s: Argument to pass with the method invocation. 1129s # * @arg_an_o: Argument to pass with the method invocation. 1129s # * @arg_an_g: Argument to pass with the method invocation. 1129s # * @arg_an_h: Argument to pass with the method invocation. 1129s # * @arg_an_ay: Argument to pass with the method invocation. 1129s # * @arg_an_as: Argument to pass with the method invocation. 1129s # * @arg_an_ao: Argument to pass with the method invocation. 1129s # * @arg_an_aay: Argument to pass with the method invocation. 1129s # * @arg_an_asv: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_callable_iface_call_same_method_with_many_args_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_callable_iface_call_same_method_with_many_args_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_callable_iface_call_same_method_with_many_args ( 1129s # OrgProjectCallableIface *proxy, 1129s # gboolean arg_an_b, 1129s # guchar arg_an_y, 1129s # gint16 arg_an_n, 1129s # guint16 arg_an_q, 1129s # gint arg_an_i, 1129s # guint arg_an_u, 1129s # gint64 arg_an_x, 1129s # guint64 arg_an_t, 1129s # gdouble arg_an_d, 1129s # const gchar *arg_an_s, 1129s # const gchar *arg_an_o, 1129s # const gchar *arg_an_g, 1129s # GVariant *arg_an_h, 1129s # const gchar *arg_an_ay, 1129s # const gchar *const *arg_an_as, 1129s # const gchar *const *arg_an_ao, 1129s # const gchar *const *arg_an_aay, 1129s # GVariant *arg_an_asv, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "SameMethodWithManyArgs", 1129s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1129s # arg_an_b, 1129s # arg_an_y, 1129s # arg_an_n, 1129s # arg_an_q, 1129s # arg_an_i, 1129s # arg_an_u, 1129s # arg_an_x, 1129s # arg_an_t, 1129s # arg_an_d, 1129s # arg_an_s, 1129s # arg_an_o, 1129s # arg_an_g, 1129s # arg_an_h, 1129s # arg_an_ay, 1129s # arg_an_as, 1129s # arg_an_ao, 1129s # arg_an_aay, 1129s # arg_an_asv), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_call_same_method_with_many_args_finish: 1129s # * @proxy: A #OrgProjectCallableIfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_same_method_with_many_args(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_callable_iface_call_same_method_with_many_args(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_callable_iface_call_same_method_with_many_args_finish ( 1129s # OrgProjectCallableIface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_call_same_method_with_many_args_sync: 1129s # * @proxy: A #OrgProjectCallableIfaceProxy. 1129s # * @arg_an_b: Argument to pass with the method invocation. 1129s # * @arg_an_y: Argument to pass with the method invocation. 1129s # * @arg_an_n: Argument to pass with the method invocation. 1129s # * @arg_an_q: Argument to pass with the method invocation. 1129s # * @arg_an_i: Argument to pass with the method invocation. 1129s # * @arg_an_u: Argument to pass with the method invocation. 1129s # * @arg_an_x: Argument to pass with the method invocation. 1129s # * @arg_an_t: Argument to pass with the method invocation. 1129s # * @arg_an_d: Argument to pass with the method invocation. 1129s # * @arg_an_s: Argument to pass with the method invocation. 1129s # * @arg_an_o: Argument to pass with the method invocation. 1129s # * @arg_an_g: Argument to pass with the method invocation. 1129s # * @arg_an_h: Argument to pass with the method invocation. 1129s # * @arg_an_ay: Argument to pass with the method invocation. 1129s # * @arg_an_as: Argument to pass with the method invocation. 1129s # * @arg_an_ao: Argument to pass with the method invocation. 1129s # * @arg_an_aay: Argument to pass with the method invocation. 1129s # * @arg_an_asv: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the SameMethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_callable_iface_call_same_method_with_many_args() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_callable_iface_call_same_method_with_many_args_sync ( 1129s # OrgProjectCallableIface *proxy, 1129s # gboolean arg_an_b, 1129s # guchar arg_an_y, 1129s # gint16 arg_an_n, 1129s # guint16 arg_an_q, 1129s # gint arg_an_i, 1129s # guint arg_an_u, 1129s # gint64 arg_an_x, 1129s # guint64 arg_an_t, 1129s # gdouble arg_an_d, 1129s # const gchar *arg_an_s, 1129s # const gchar *arg_an_o, 1129s # const gchar *arg_an_g, 1129s # GVariant *arg_an_h, 1129s # const gchar *arg_an_ay, 1129s # const gchar *const *arg_an_as, 1129s # const gchar *const *arg_an_ao, 1129s # const gchar *const *arg_an_aay, 1129s # GVariant *arg_an_asv, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "SameMethodWithManyArgs", 1129s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1129s # arg_an_b, 1129s # arg_an_y, 1129s # arg_an_n, 1129s # arg_an_q, 1129s # arg_an_i, 1129s # arg_an_u, 1129s # arg_an_x, 1129s # arg_an_t, 1129s # arg_an_d, 1129s # arg_an_s, 1129s # arg_an_o, 1129s # arg_an_g, 1129s # arg_an_h, 1129s # arg_an_ay, 1129s # arg_an_as, 1129s # arg_an_ao, 1129s # arg_an_aay, 1129s # arg_an_asv), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_complete_method_with_many_args: 1129s # * @object: A #OrgProjectCallableIface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_callable_iface_complete_method_with_many_args ( 1129s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_complete_same_method_with_many_args: 1129s # * @object: A #OrgProjectCallableIface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_callable_iface_complete_same_method_with_many_args ( 1129s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectCallableIfaceProxy: 1129s # * 1129s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectCallableIfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectCallableIfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectCallableIfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_callable_iface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1129s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1129s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_callable_iface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectCallableIface * 1129s # org_project_callable_iface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectCallableIface * 1129s # org_project_callable_iface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_callable_iface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_callable_iface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectCallableIface * 1129s # org_project_callable_iface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectCallableIface * 1129s # org_project_callable_iface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectCallableIfaceSkeleton: 1129s # * 1129s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectCallableIfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectCallableIfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_callable_iface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_callable_iface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_callable_iface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1129s # { 1129s # _org_project_callable_iface_skeleton_handle_method_call, 1129s # _org_project_callable_iface_skeleton_handle_get_property, 1129s # _org_project_callable_iface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_callable_iface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_callable_iface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectCallableIface * 1129s # org_project_callable_iface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.OtherCallableIface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectOtherCallableIface 1129s # * @title: OrgProjectOtherCallableIface 1129s # * @short_description: Generated C code for the org.project.OtherCallableIface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.OtherCallableIface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.OtherCallableIface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_b", 1129s # (gchar *) "b", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_y", 1129s # (gchar *) "y", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_n", 1129s # (gchar *) "n", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_q", 1129s # (gchar *) "q", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_i", 1129s # (gchar *) "i", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_u", 1129s # (gchar *) "u", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_x", 1129s # (gchar *) "x", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_t", 1129s # (gchar *) "t", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_d", 1129s # (gchar *) "d", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_s", 1129s # (gchar *) "s", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_o", 1129s # (gchar *) "o", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_g", 1129s # (gchar *) "g", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_h", 1129s # (gchar *) "h", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_ay", 1129s # (gchar *) "ay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_as", 1129s # (gchar *) "as", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_ao", 1129s # (gchar *) "ao", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_aay", 1129s # (gchar *) "aay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_asv", 1129s # (gchar *) "a{sv}", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers[] = 1129s # { 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_b.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_y.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_n.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_q.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_i.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_u.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_x.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_t.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_d.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_s.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_o.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_g.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_h.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ay.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_as.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_ao.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_aay.parent_struct, 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_an_asv.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_other_callable_iface_method_info_method_with_many_args = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "MethodWithManyArgs", 1129s # (GDBusArgInfo **) &_org_project_other_callable_iface_method_info_method_with_many_args_IN_ARG_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "handle-method-with-many-args", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_other_callable_iface_method_info_pointers[] = 1129s # { 1129s # &_org_project_other_callable_iface_method_info_method_with_many_args.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_other_callable_iface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.OtherCallableIface", 1129s # (GDBusMethodInfo **) &_org_project_other_callable_iface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-other-callable-iface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_other_callable_iface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.OtherCallableIface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_other_callable_iface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_callable_iface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectOtherCallableIface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_other_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_other_callable_iface_method_marshal_method_with_many_args ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _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, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectOtherCallableIface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.OtherCallableIface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectOtherCallableIfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_method_with_many_args: Handler for the #OrgProjectOtherCallableIface::handle-method-with-many-args signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.OtherCallableIface. 1129s # */ 1129s # 1129s # typedef OrgProjectOtherCallableIfaceIface OrgProjectOtherCallableIfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectOtherCallableIface, org_project_other_callable_iface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_other_callable_iface_default_init (OrgProjectOtherCallableIfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectOtherCallableIface::handle-method-with-many-args: 1129s # * @object: A #OrgProjectOtherCallableIface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @arg_an_b: Argument passed by remote caller. 1129s # * @arg_an_y: Argument passed by remote caller. 1129s # * @arg_an_n: Argument passed by remote caller. 1129s # * @arg_an_q: Argument passed by remote caller. 1129s # * @arg_an_i: Argument passed by remote caller. 1129s # * @arg_an_u: Argument passed by remote caller. 1129s # * @arg_an_x: Argument passed by remote caller. 1129s # * @arg_an_t: Argument passed by remote caller. 1129s # * @arg_an_d: Argument passed by remote caller. 1129s # * @arg_an_s: Argument passed by remote caller. 1129s # * @arg_an_o: Argument passed by remote caller. 1129s # * @arg_an_g: Argument passed by remote caller. 1129s # * @arg_an_h: Argument passed by remote caller. 1129s # * @arg_an_ay: Argument passed by remote caller. 1129s # * @arg_an_as: Argument passed by remote caller. 1129s # * @arg_an_ao: Argument passed by remote caller. 1129s # * @arg_an_aay: Argument passed by remote caller. 1129s # * @arg_an_asv: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-method-with-many-args", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectOtherCallableIfaceIface, handle_method_with_many_args), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_other_callable_iface_method_marshal_method_with_many_args, 1129s # G_TYPE_BOOLEAN, 1129s # 19, 1129s # 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); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_callable_iface_call_method_with_many_args: 1129s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1129s # * @arg_an_b: Argument to pass with the method invocation. 1129s # * @arg_an_y: Argument to pass with the method invocation. 1129s # * @arg_an_n: Argument to pass with the method invocation. 1129s # * @arg_an_q: Argument to pass with the method invocation. 1129s # * @arg_an_i: Argument to pass with the method invocation. 1129s # * @arg_an_u: Argument to pass with the method invocation. 1129s # * @arg_an_x: Argument to pass with the method invocation. 1129s # * @arg_an_t: Argument to pass with the method invocation. 1129s # * @arg_an_d: Argument to pass with the method invocation. 1129s # * @arg_an_s: Argument to pass with the method invocation. 1129s # * @arg_an_o: Argument to pass with the method invocation. 1129s # * @arg_an_g: Argument to pass with the method invocation. 1129s # * @arg_an_h: Argument to pass with the method invocation. 1129s # * @arg_an_ay: Argument to pass with the method invocation. 1129s # * @arg_an_as: Argument to pass with the method invocation. 1129s # * @arg_an_ao: Argument to pass with the method invocation. 1129s # * @arg_an_aay: Argument to pass with the method invocation. 1129s # * @arg_an_asv: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_other_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_other_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_other_callable_iface_call_method_with_many_args ( 1129s # OrgProjectOtherCallableIface *proxy, 1129s # gboolean arg_an_b, 1129s # guchar arg_an_y, 1129s # gint16 arg_an_n, 1129s # guint16 arg_an_q, 1129s # gint arg_an_i, 1129s # guint arg_an_u, 1129s # gint64 arg_an_x, 1129s # guint64 arg_an_t, 1129s # gdouble arg_an_d, 1129s # const gchar *arg_an_s, 1129s # const gchar *arg_an_o, 1129s # const gchar *arg_an_g, 1129s # GVariant *arg_an_h, 1129s # const gchar *arg_an_ay, 1129s # const gchar *const *arg_an_as, 1129s # const gchar *const *arg_an_ao, 1129s # const gchar *const *arg_an_aay, 1129s # GVariant *arg_an_asv, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "MethodWithManyArgs", 1129s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1129s # arg_an_b, 1129s # arg_an_y, 1129s # arg_an_n, 1129s # arg_an_q, 1129s # arg_an_i, 1129s # arg_an_u, 1129s # arg_an_x, 1129s # arg_an_t, 1129s # arg_an_d, 1129s # arg_an_s, 1129s # arg_an_o, 1129s # arg_an_g, 1129s # arg_an_h, 1129s # arg_an_ay, 1129s # arg_an_as, 1129s # arg_an_ao, 1129s # arg_an_aay, 1129s # arg_an_asv), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_callable_iface_call_method_with_many_args_finish: 1129s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_call_method_with_many_args(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_other_callable_iface_call_method_with_many_args(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_other_callable_iface_call_method_with_many_args_finish ( 1129s # OrgProjectOtherCallableIface *proxy, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_callable_iface_call_method_with_many_args_sync: 1129s # * @proxy: A #OrgProjectOtherCallableIfaceProxy. 1129s # * @arg_an_b: Argument to pass with the method invocation. 1129s # * @arg_an_y: Argument to pass with the method invocation. 1129s # * @arg_an_n: Argument to pass with the method invocation. 1129s # * @arg_an_q: Argument to pass with the method invocation. 1129s # * @arg_an_i: Argument to pass with the method invocation. 1129s # * @arg_an_u: Argument to pass with the method invocation. 1129s # * @arg_an_x: Argument to pass with the method invocation. 1129s # * @arg_an_t: Argument to pass with the method invocation. 1129s # * @arg_an_d: Argument to pass with the method invocation. 1129s # * @arg_an_s: Argument to pass with the method invocation. 1129s # * @arg_an_o: Argument to pass with the method invocation. 1129s # * @arg_an_g: Argument to pass with the method invocation. 1129s # * @arg_an_h: Argument to pass with the method invocation. 1129s # * @arg_an_ay: Argument to pass with the method invocation. 1129s # * @arg_an_as: Argument to pass with the method invocation. 1129s # * @arg_an_ao: Argument to pass with the method invocation. 1129s # * @arg_an_aay: Argument to pass with the method invocation. 1129s # * @arg_an_asv: Argument to pass with the method invocation. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_other_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_other_callable_iface_call_method_with_many_args_sync ( 1129s # OrgProjectOtherCallableIface *proxy, 1129s # gboolean arg_an_b, 1129s # guchar arg_an_y, 1129s # gint16 arg_an_n, 1129s # guint16 arg_an_q, 1129s # gint arg_an_i, 1129s # guint arg_an_u, 1129s # gint64 arg_an_x, 1129s # guint64 arg_an_t, 1129s # gdouble arg_an_d, 1129s # const gchar *arg_an_s, 1129s # const gchar *arg_an_o, 1129s # const gchar *arg_an_g, 1129s # GVariant *arg_an_h, 1129s # const gchar *arg_an_ay, 1129s # const gchar *const *arg_an_as, 1129s # const gchar *const *arg_an_ao, 1129s # const gchar *const *arg_an_aay, 1129s # GVariant *arg_an_asv, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "MethodWithManyArgs", 1129s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1129s # arg_an_b, 1129s # arg_an_y, 1129s # arg_an_n, 1129s # arg_an_q, 1129s # arg_an_i, 1129s # arg_an_u, 1129s # arg_an_x, 1129s # arg_an_t, 1129s # arg_an_d, 1129s # arg_an_s, 1129s # arg_an_o, 1129s # arg_an_g, 1129s # arg_an_h, 1129s # arg_an_ay, 1129s # arg_an_as, 1129s # arg_an_ao, 1129s # arg_an_aay, 1129s # arg_an_asv), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "()"); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_callable_iface_complete_method_with_many_args: 1129s # * @object: A #OrgProjectOtherCallableIface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_other_callable_iface_complete_method_with_many_args ( 1129s # OrgProjectOtherCallableIface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("()")); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectOtherCallableIfaceProxy: 1129s # * 1129s # * The #OrgProjectOtherCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectOtherCallableIfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectOtherCallableIfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectOtherCallableIfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceProxy, org_project_other_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_other_callable_iface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_other_callable_iface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_other_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_other_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_other_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_other_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectOtherCallableIfaceProxy *proxy = ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_other_callable_iface_proxy_init (OrgProjectOtherCallableIfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_other_callable_iface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_PROXY, OrgProjectOtherCallableIfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_callable_iface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_other_callable_iface_proxy_class_init (OrgProjectOtherCallableIfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_other_callable_iface_proxy_finalize; 1129s # gobject_class->get_property = org_project_other_callable_iface_proxy_get_property; 1129s # gobject_class->set_property = org_project_other_callable_iface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_other_callable_iface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_other_callable_iface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_other_callable_iface_proxy_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_callable_iface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_other_callable_iface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_other_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_other_callable_iface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_callable_iface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_other_callable_iface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectOtherCallableIface * 1129s # org_project_other_callable_iface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_callable_iface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherCallableIface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_other_callable_iface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectOtherCallableIface * 1129s # org_project_other_callable_iface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_other_callable_iface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_other_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_other_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_other_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_other_callable_iface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_callable_iface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_callable_iface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_other_callable_iface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectOtherCallableIface * 1129s # org_project_other_callable_iface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_callable_iface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_other_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_other_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectOtherCallableIface * 1129s # org_project_other_callable_iface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectOtherCallableIfaceSkeleton: 1129s # * 1129s # * The #OrgProjectOtherCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectOtherCallableIfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectOtherCallableIfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectOtherCallableIfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_other_callable_iface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_other_callable_iface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_other_callable_iface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_callable_iface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_other_callable_iface_skeleton_vtable = 1129s # { 1129s # _org_project_other_callable_iface_skeleton_handle_method_call, 1129s # _org_project_other_callable_iface_skeleton_handle_get_property, 1129s # _org_project_other_callable_iface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_other_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_other_callable_iface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_other_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_other_callable_iface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_other_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_other_callable_iface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_other_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_other_callable_iface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_other_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectOtherCallableIfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherCallableIfaceSkeleton, org_project_other_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE, org_project_other_callable_iface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_other_callable_iface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectOtherCallableIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_other_callable_iface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_other_callable_iface_skeleton_init (OrgProjectOtherCallableIfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_other_callable_iface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, OrgProjectOtherCallableIfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_other_callable_iface_skeleton_class_init (OrgProjectOtherCallableIfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_other_callable_iface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_other_callable_iface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_other_callable_iface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_other_callable_iface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_other_callable_iface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectOtherCallableIfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_other_callable_iface_skeleton_iface_init (OrgProjectOtherCallableIfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_callable_iface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.OtherCallableIface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectOtherCallableIfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectOtherCallableIface * 1129s # org_project_other_callable_iface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_OTHER_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_CALLABLE_IFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s ok 13 __main__.TestCodegen.test_generate_methods_marshallers_multiple_out_args 1129s # gdbus-codegen: /usr/bin/gdbus-codegen 1129s # tmpdir: /tmp/tmpc2x6l9rf 1129s # /tmp/tmpc2x6l9rf/tmppqa03l6s.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpc2x6l9rf/tmppqa03l6s.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.CallableIface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectCallableIface 1129s # * @title: OrgProjectCallableIface 1129s # * @short_description: Generated C code for the org.project.CallableIface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.CallableIface D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for org.project.CallableIface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_b", 1129s # (gchar *) "b", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_y", 1129s # (gchar *) "y", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_n", 1129s # (gchar *) "n", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_q", 1129s # (gchar *) "q", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_i", 1129s # (gchar *) "i", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_u", 1129s # (gchar *) "u", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_x", 1129s # (gchar *) "x", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_t", 1129s # (gchar *) "t", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_d", 1129s # (gchar *) "d", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_s", 1129s # (gchar *) "s", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_o", 1129s # (gchar *) "o", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_g", 1129s # (gchar *) "g", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_h", 1129s # (gchar *) "h", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_ay", 1129s # (gchar *) "ay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_as", 1129s # (gchar *) "as", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_ao", 1129s # (gchar *) "ao", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_aay", 1129s # (gchar *) "aay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_asv", 1129s # (gchar *) "a{sv}", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers[] = 1129s # { 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_b.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_y.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_n.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_q.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_i.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_u.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_x.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_t.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_d.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_s.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_o.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_g.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_h.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ay.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_as.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_ao.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_aay.parent_struct, 1129s # &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_an_asv.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _org_project_callable_iface_method_info_method_with_many_args = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "MethodWithManyArgs", 1129s # NULL, 1129s # (GDBusArgInfo **) &_org_project_callable_iface_method_info_method_with_many_args_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-method-with-many-args", 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _org_project_callable_iface_method_info_pointers[] = 1129s # { 1129s # &_org_project_callable_iface_method_info_method_with_many_args.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_callable_iface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.CallableIface", 1129s # (GDBusMethodInfo **) &_org_project_callable_iface_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-callable-iface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_callable_iface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.CallableIface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_callable_iface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectCallableIface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_callable_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_callable_iface_method_marshal_method_with_many_args ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectCallableIface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.CallableIface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectCallableIfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_method_with_many_args: Handler for the #OrgProjectCallableIface::handle-method-with-many-args signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.CallableIface. 1129s # */ 1129s # 1129s # typedef OrgProjectCallableIfaceIface OrgProjectCallableIfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectCallableIface, org_project_callable_iface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_callable_iface_default_init (OrgProjectCallableIfaceIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * OrgProjectCallableIface::handle-method-with-many-args: 1129s # * @object: A #OrgProjectCallableIface. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the MethodWithManyArgs() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-method-with-many-args", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectCallableIfaceIface, handle_method_with_many_args), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # org_project_callable_iface_method_marshal_method_with_many_args, 1129s # G_TYPE_BOOLEAN, 1129s # 1, 1129s # G_TYPE_DBUS_METHOD_INVOCATION); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_call_method_with_many_args: 1129s # * @proxy: A #OrgProjectCallableIfaceProxy. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_callable_iface_call_method_with_many_args_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_callable_iface_call_method_with_many_args_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # org_project_callable_iface_call_method_with_many_args ( 1129s # OrgProjectCallableIface *proxy, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1129s # "MethodWithManyArgs", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_call_method_with_many_args_finish: 1129s # * @proxy: A #OrgProjectCallableIfaceProxy. 1129s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_call_method_with_many_args(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with org_project_callable_iface_call_method_with_many_args(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_callable_iface_call_method_with_many_args_finish ( 1129s # OrgProjectCallableIface *proxy, 1129s # gboolean *out_an_b, 1129s # guchar *out_an_y, 1129s # gint16 *out_an_n, 1129s # guint16 *out_an_q, 1129s # gint *out_an_i, 1129s # guint *out_an_u, 1129s # gint64 *out_an_x, 1129s # guint64 *out_an_t, 1129s # gdouble *out_an_d, 1129s # gchar **out_an_s, 1129s # gchar **out_an_o, 1129s # gchar **out_an_g, 1129s # GVariant **out_an_h, 1129s # gchar **out_an_ay, 1129s # gchar ***out_an_as, 1129s # gchar ***out_an_ao, 1129s # gchar ***out_an_aay, 1129s # GVariant **out_an_asv, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1129s # out_an_b, 1129s # out_an_y, 1129s # out_an_n, 1129s # out_an_q, 1129s # out_an_i, 1129s # out_an_u, 1129s # out_an_x, 1129s # out_an_t, 1129s # out_an_d, 1129s # out_an_s, 1129s # out_an_o, 1129s # out_an_g, 1129s # out_an_h, 1129s # out_an_ay, 1129s # out_an_as, 1129s # out_an_ao, 1129s # out_an_aay, 1129s # out_an_asv); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_call_method_with_many_args_sync: 1129s # * @proxy: A #OrgProjectCallableIfaceProxy. 1129s # * @out_an_b: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_y: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_n: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_q: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_i: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_u: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_x: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_t: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_d: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_s: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_o: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_g: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_h: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_ay: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_as: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_ao: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_aay: (out) (optional) (array zero-terminated=1): Return location for return parameter or %NULL to ignore. 1129s # * @out_an_asv: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the MethodWithManyArgs() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_callable_iface_call_method_with_many_args() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # org_project_callable_iface_call_method_with_many_args_sync ( 1129s # OrgProjectCallableIface *proxy, 1129s # gboolean *out_an_b, 1129s # guchar *out_an_y, 1129s # gint16 *out_an_n, 1129s # guint16 *out_an_q, 1129s # gint *out_an_i, 1129s # guint *out_an_u, 1129s # gint64 *out_an_x, 1129s # guint64 *out_an_t, 1129s # gdouble *out_an_d, 1129s # gchar **out_an_s, 1129s # gchar **out_an_o, 1129s # gchar **out_an_g, 1129s # GVariant **out_an_h, 1129s # gchar **out_an_ay, 1129s # gchar ***out_an_as, 1129s # gchar ***out_an_ao, 1129s # gchar ***out_an_aay, 1129s # GVariant **out_an_asv, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1129s # "MethodWithManyArgs", 1129s # g_variant_new ("()"), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1129s # out_an_b, 1129s # out_an_y, 1129s # out_an_n, 1129s # out_an_q, 1129s # out_an_i, 1129s # out_an_u, 1129s # out_an_x, 1129s # out_an_t, 1129s # out_an_d, 1129s # out_an_s, 1129s # out_an_o, 1129s # out_an_g, 1129s # out_an_h, 1129s # out_an_ay, 1129s # out_an_as, 1129s # out_an_ao, 1129s # out_an_aay, 1129s # out_an_asv); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_complete_method_with_many_args: 1129s # * @object: A #OrgProjectCallableIface. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @an_b: Parameter to return. 1129s # * @an_y: Parameter to return. 1129s # * @an_n: Parameter to return. 1129s # * @an_q: Parameter to return. 1129s # * @an_i: Parameter to return. 1129s # * @an_u: Parameter to return. 1129s # * @an_x: Parameter to return. 1129s # * @an_t: Parameter to return. 1129s # * @an_d: Parameter to return. 1129s # * @an_s: Parameter to return. 1129s # * @an_o: Parameter to return. 1129s # * @an_g: Parameter to return. 1129s # * @an_h: Parameter to return. 1129s # * @an_ay: Parameter to return. 1129s # * @an_as: Parameter to return. 1129s # * @an_ao: Parameter to return. 1129s # * @an_aay: Parameter to return. 1129s # * @an_asv: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # org_project_callable_iface_complete_method_with_many_args ( 1129s # OrgProjectCallableIface *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # gboolean an_b, 1129s # guchar an_y, 1129s # gint16 an_n, 1129s # guint16 an_q, 1129s # gint an_i, 1129s # guint an_u, 1129s # gint64 an_x, 1129s # guint64 an_t, 1129s # gdouble an_d, 1129s # const gchar *an_s, 1129s # const gchar *an_o, 1129s # const gchar *an_g, 1129s # GVariant *an_h, 1129s # const gchar *an_ay, 1129s # const gchar *const *an_as, 1129s # const gchar *const *an_ao, 1129s # const gchar *const *an_aay, 1129s # GVariant *an_asv) 1129s # { 1129s # g_dbus_method_invocation_return_value (invocation, 1129s # g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1129s # an_b, 1129s # an_y, 1129s # an_n, 1129s # an_q, 1129s # an_i, 1129s # an_u, 1129s # an_x, 1129s # an_t, 1129s # an_d, 1129s # an_s, 1129s # an_o, 1129s # an_g, 1129s # an_h, 1129s # an_ay, 1129s # an_as, 1129s # an_ao, 1129s # an_aay, 1129s # an_asv)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectCallableIfaceProxy: 1129s # * 1129s # * The #OrgProjectCallableIfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectCallableIfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectCallableIfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectCallableIfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectCallableIfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceProxy, org_project_callable_iface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_callable_iface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_callable_iface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectCallableIfaceProxy *proxy = ORG_PROJECT_CALLABLE_IFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_proxy_init (OrgProjectCallableIfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_callable_iface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_CALLABLE_IFACE_PROXY, OrgProjectCallableIfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_callable_iface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_proxy_class_init (OrgProjectCallableIfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_callable_iface_proxy_finalize; 1129s # gobject_class->get_property = org_project_callable_iface_proxy_get_property; 1129s # gobject_class->set_property = org_project_callable_iface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_callable_iface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_callable_iface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_proxy_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_callable_iface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_callable_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_callable_iface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_callable_iface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectCallableIface * 1129s # org_project_callable_iface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.CallableIface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_callable_iface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectCallableIface * 1129s # org_project_callable_iface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_callable_iface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_callable_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_callable_iface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_callable_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_callable_iface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_callable_iface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_callable_iface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectCallableIface * 1129s # org_project_callable_iface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_callable_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_callable_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectCallableIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectCallableIface * 1129s # org_project_callable_iface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_CALLABLE_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectCallableIfaceSkeleton: 1129s # * 1129s # * The #OrgProjectCallableIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectCallableIfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectCallableIfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectCallableIfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_callable_iface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_CALLABLE_IFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_CALLABLE_IFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_callable_iface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_callable_iface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_callable_iface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_callable_iface_skeleton_vtable = 1129s # { 1129s # _org_project_callable_iface_skeleton_handle_method_call, 1129s # _org_project_callable_iface_skeleton_handle_get_property, 1129s # _org_project_callable_iface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_callable_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_callable_iface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_callable_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_callable_iface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_callable_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_callable_iface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_callable_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_callable_iface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectCallableIfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectCallableIfaceSkeleton, org_project_callable_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_CALLABLE_IFACE, org_project_callable_iface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_callable_iface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectCallableIfaceSkeleton *skeleton = ORG_PROJECT_CALLABLE_IFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_callable_iface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_skeleton_init (OrgProjectCallableIfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_callable_iface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, OrgProjectCallableIfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_skeleton_class_init (OrgProjectCallableIfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_callable_iface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_callable_iface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_callable_iface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_callable_iface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_callable_iface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectCallableIfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_callable_iface_skeleton_iface_init (OrgProjectCallableIfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_callable_iface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.CallableIface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectCallableIfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectCallableIface * 1129s # org_project_callable_iface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_CALLABLE_IFACE (g_object_new (TYPE_ORG_PROJECT_CALLABLE_IFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s ok 14 __main__.TestCodegen.test_generate_methods_marshallers_with_unix_fds 1129s # gdbus-codegen: /usr/bin/gdbus-codegen 1129s # tmpdir: /tmp/tmpspdj7m3v 1129s # /tmp/tmpspdj7m3v/tmpxvrlna9b.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpspdj7m3v/tmpxvrlna9b.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1129s # (void *data1, 1129s # GDBusMethodInvocation *arg_method_invocation, 1129s # GUnixFDList *arg_fd_list, 1129s # const gchar *arg_greeting, 1129s # void *data2); 1129s # _GDbusCodegenMarshalBoolean_ObjectObjectStringFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # gboolean v_return; 1129s # 1129s # g_return_if_fail (return_value != NULL); 1129s # g_return_if_fail (n_param_values == 4); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalBoolean_ObjectObjectStringFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # v_return = 1129s # callback (data1, 1129s # g_marshal_value_peek_object (param_values + 1), 1129s # g_marshal_value_peek_object (param_values + 2), 1129s # g_marshal_value_peek_string (param_values + 3), 1129s # data2); 1129s # 1129s # g_value_set_boolean (return_value, v_return); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface test.FDPassing 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:TestFDPassing 1129s # * @title: TestFDPassing 1129s # * @short_description: Generated C code for the test.FDPassing D-Bus interface 1129s # * 1129s # * This section contains code for working with the test.FDPassing D-Bus interface in C. 1129s # */ 1129s # 1129s # /* ---- Introspection data for test.FDPassing ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_IN_ARG_greeting = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "greeting", 1129s # (gchar *) "s", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_IN_ARG_pointers[] = 1129s # { 1129s # &_test_fdpassing_method_info_hello_fd_IN_ARG_greeting.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _test_fdpassing_method_info_hello_fd_OUT_ARG_response = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "response", 1129s # (gchar *) "s", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _test_fdpassing_method_info_hello_fd_OUT_ARG_pointers[] = 1129s # { 1129s # &_test_fdpassing_method_info_hello_fd_OUT_ARG_response.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusMethodInfo _test_fdpassing_method_info_hello_fd = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "HelloFD", 1129s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_IN_ARG_pointers, 1129s # (GDBusArgInfo **) &_test_fdpassing_method_info_hello_fd_OUT_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "handle-hello-fd", 1129s # TRUE 1129s # }; 1129s # 1129s # static const GDBusMethodInfo * const _test_fdpassing_method_info_pointers[] = 1129s # { 1129s # &_test_fdpassing_method_info_hello_fd.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _test_fdpassing_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "test.FDPassing", 1129s # (GDBusMethodInfo **) &_test_fdpassing_method_info_pointers, 1129s # NULL, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "test-fdpassing", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * test_fdpassing_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the test.FDPassing D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # test_fdpassing_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * test_fdpassing_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #TestFDPassing interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # test_fdpassing_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # test_fdpassing_method_marshal_hello_fd ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT_OBJECT_STRING (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * TestFDPassing: 1129s # * 1129s # * Abstract interface type for the D-Bus interface test.FDPassing. 1129s # */ 1129s # 1129s # /** 1129s # * TestFDPassingIface: 1129s # * @parent_iface: The parent interface. 1129s # * @handle_hello_fd: Handler for the #TestFDPassing::handle-hello-fd signal. 1129s # * 1129s # * Virtual table for the D-Bus interface test.FDPassing. 1129s # */ 1129s # 1129s # typedef TestFDPassingIface TestFDPassingInterface; 1129s # G_DEFINE_INTERFACE (TestFDPassing, test_fdpassing, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # test_fdpassing_default_init (TestFDPassingIface *iface) 1129s # { 1129s # /* GObject signals for incoming D-Bus method calls: */ 1129s # /** 1129s # * TestFDPassing::handle-hello-fd: 1129s # * @object: A #TestFDPassing. 1129s # * @invocation: A #GDBusMethodInvocation. 1129s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1129s # * @arg_greeting: Argument passed by remote caller. 1129s # * 1129s # * Signal emitted when a remote caller is invoking the HelloFD() D-Bus method. 1129s # * 1129s # * 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. 1129s # * 1129s # * 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. 1129s # */ 1129s # g_signal_new ("handle-hello-fd", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (TestFDPassingIface, handle_hello_fd), 1129s # g_signal_accumulator_true_handled, 1129s # NULL, 1129s # test_fdpassing_method_marshal_hello_fd, 1129s # G_TYPE_BOOLEAN, 1129s # 3, 1129s # G_TYPE_DBUS_METHOD_INVOCATION, G_TYPE_UNIX_FD_LIST, G_TYPE_STRING); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * test_fdpassing_call_hello_fd: 1129s # * @proxy: A #TestFDPassingProxy. 1129s # * @arg_greeting: Argument to pass with the method invocation. 1129s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously invokes the HelloFD() D-Bus method on @proxy. 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call test_fdpassing_call_hello_fd_finish() to get the result of the operation. 1129s # * 1129s # * See test_fdpassing_call_hello_fd_sync() for the synchronous, blocking version of this method. 1129s # */ 1129s # void 1129s # test_fdpassing_call_hello_fd ( 1129s # TestFDPassing *proxy, 1129s # const gchar *arg_greeting, 1129s # GUnixFDList *fd_list, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_dbus_proxy_call_with_unix_fd_list (G_DBUS_PROXY (proxy), 1129s # "HelloFD", 1129s # g_variant_new ("(s)", 1129s # arg_greeting), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # fd_list, 1129s # cancellable, 1129s # callback, 1129s # user_data); 1129s # } 1129s # 1129s # /** 1129s # * test_fdpassing_call_hello_fd_finish: 1129s # * @proxy: A #TestFDPassingProxy. 1129s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL to ignore. 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_call_hello_fd(). 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Finishes an operation started with test_fdpassing_call_hello_fd(). 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # test_fdpassing_call_hello_fd_finish ( 1129s # TestFDPassing *proxy, 1129s # gchar **out_response, 1129s # GUnixFDList **out_fd_list, 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_with_unix_fd_list_finish (G_DBUS_PROXY (proxy), out_fd_list, res, error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(s)", 1129s # out_response); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * test_fdpassing_call_hello_fd_sync: 1129s # * @proxy: A #TestFDPassingProxy. 1129s # * @arg_greeting: Argument to pass with the method invocation. 1129s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1129s # * @out_response: (out) (optional): Return location for return parameter or %NULL to ignore. 1129s # * @out_fd_list: (out) (optional) (nullable): Return location for a #GUnixFDList or %NULL. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL. 1129s # * 1129s # * Synchronously invokes the HelloFD() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1129s # * 1129s # * See test_fdpassing_call_hello_fd() for the asynchronous version of this method. 1129s # * 1129s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1129s # */ 1129s # gboolean 1129s # test_fdpassing_call_hello_fd_sync ( 1129s # TestFDPassing *proxy, 1129s # const gchar *arg_greeting, 1129s # GUnixFDList *fd_list, 1129s # gchar **out_response, 1129s # GUnixFDList **out_fd_list, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GVariant *_ret; 1129s # _ret = g_dbus_proxy_call_with_unix_fd_list_sync (G_DBUS_PROXY (proxy), 1129s # "HelloFD", 1129s # g_variant_new ("(s)", 1129s # arg_greeting), 1129s # G_DBUS_CALL_FLAGS_NONE, 1129s # -1, 1129s # fd_list, 1129s # out_fd_list, 1129s # cancellable, 1129s # error); 1129s # if (_ret == NULL) 1129s # goto _out; 1129s # g_variant_get (_ret, 1129s # "(s)", 1129s # out_response); 1129s # g_variant_unref (_ret); 1129s # _out: 1129s # return _ret != NULL; 1129s # } 1129s # 1129s # /** 1129s # * test_fdpassing_complete_hello_fd: 1129s # * @object: A #TestFDPassing. 1129s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1129s # * @fd_list: (nullable): A #GUnixFDList or %NULL. 1129s # * @response: Parameter to return. 1129s # * 1129s # * 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. 1129s # * 1129s # * This method will free @invocation, you cannot use it afterwards. 1129s # */ 1129s # void 1129s # test_fdpassing_complete_hello_fd ( 1129s # TestFDPassing *object G_GNUC_UNUSED, 1129s # GDBusMethodInvocation *invocation, 1129s # GUnixFDList *fd_list, 1129s # const gchar *response) 1129s # { 1129s # g_dbus_method_invocation_return_value_with_unix_fd_list (invocation, 1129s # g_variant_new ("(s)", 1129s # response), 1129s # fd_list); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * TestFDPassingProxy: 1129s # * 1129s # * The #TestFDPassingProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * TestFDPassingProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #TestFDPassingProxy. 1129s # */ 1129s # 1129s # struct _TestFDPassingProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void test_fdpassing_proxy_iface_init (TestFDPassingIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (TestFDPassingProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingProxy, test_fdpassing_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # test_fdpassing_proxy_finalize (GObject *object) 1129s # { 1129s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (test_fdpassing_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # test_fdpassing_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # test_fdpassing_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # test_fdpassing_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_TEST_FDPASSING); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # test_fdpassing_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # TestFDPassingProxy *proxy = TEST_FDPASSING_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # test_fdpassing_proxy_init (TestFDPassingProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = test_fdpassing_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_TEST_FDPASSING_PROXY, TestFDPassingProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), test_fdpassing_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # test_fdpassing_proxy_class_init (TestFDPassingProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = test_fdpassing_proxy_finalize; 1129s # gobject_class->get_property = test_fdpassing_proxy_get_property; 1129s # gobject_class->set_property = test_fdpassing_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = test_fdpassing_proxy_g_signal; 1129s # proxy_class->g_properties_changed = test_fdpassing_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (TestFDPassingProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # test_fdpassing_proxy_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * test_fdpassing_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call test_fdpassing_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See test_fdpassing_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # test_fdpassing_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * test_fdpassing_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with test_fdpassing_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # TestFDPassing * 1129s # test_fdpassing_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return TEST_FDPASSING (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * test_fdpassing_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface test.FDPassing. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See test_fdpassing_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # TestFDPassing * 1129s # test_fdpassing_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return TEST_FDPASSING (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * test_fdpassing_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like test_fdpassing_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call test_fdpassing_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See test_fdpassing_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # test_fdpassing_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * test_fdpassing_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to test_fdpassing_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with test_fdpassing_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # TestFDPassing * 1129s # test_fdpassing_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return TEST_FDPASSING (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * test_fdpassing_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like test_fdpassing_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See test_fdpassing_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type TestFDPassingProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # TestFDPassing * 1129s # test_fdpassing_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return TEST_FDPASSING (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * TestFDPassingSkeleton: 1129s # * 1129s # * The #TestFDPassingSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * TestFDPassingSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #TestFDPassingSkeleton. 1129s # */ 1129s # 1129s # struct _TestFDPassingSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _test_fdpassing_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_TEST_FDPASSING); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_TEST_FDPASSING); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _test_fdpassing_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _test_fdpassing_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_test_fdpassing_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _test_fdpassing_skeleton_vtable = 1129s # { 1129s # _test_fdpassing_skeleton_handle_method_call, 1129s # _test_fdpassing_skeleton_handle_get_property, 1129s # _test_fdpassing_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # test_fdpassing_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return test_fdpassing_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # test_fdpassing_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_test_fdpassing_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # test_fdpassing_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_test_fdpassing_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _test_fdpassing_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _test_fdpassing_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # test_fdpassing_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (TestFDPassingSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (TestFDPassingSkeleton, test_fdpassing_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_TEST_FDPASSING, test_fdpassing_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # test_fdpassing_skeleton_finalize (GObject *object) 1129s # { 1129s # TestFDPassingSkeleton *skeleton = TEST_FDPASSING_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (test_fdpassing_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # test_fdpassing_skeleton_init (TestFDPassingSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = test_fdpassing_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_TEST_FDPASSING_SKELETON, TestFDPassingSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # test_fdpassing_skeleton_class_init (TestFDPassingSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = test_fdpassing_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = test_fdpassing_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = test_fdpassing_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = test_fdpassing_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = test_fdpassing_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (TestFDPassingSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # test_fdpassing_skeleton_iface_init (TestFDPassingIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * test_fdpassing_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface test.FDPassing. 1129s # * 1129s # * Returns: (transfer full) (type TestFDPassingSkeleton): The skeleton object. 1129s # */ 1129s # TestFDPassing * 1129s # test_fdpassing_skeleton_new (void) 1129s # { 1129s # return TEST_FDPASSING (g_object_new (TYPE_TEST_FDPASSING_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s ok 15 __main__.TestCodegen.test_generate_rst 1129s # gdbus-codegen: /usr/bin/gdbus-codegen 1129s # tmpdir: /tmp/tmpp9gdasqk 1129s # /tmp/tmpp9gdasqk/tmp0qgjd4h7.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpp9gdasqk/tmp0qgjd4h7.xml', '--generate-rst', 'test'] 1129s # Return code: 0 1129s # Output: 1129s # 1129s # Error: 1129s ok 16 __main__.TestCodegen.test_generate_rst_method 1129s # gdbus-codegen: /usr/bin/gdbus-codegen 1129s # tmpdir: /tmp/tmpon_p7drm 1129s # /tmp/tmpon_p7drm/tmp0p8_hy_1.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpon_p7drm/tmp0p8_hy_1.xml', '--generate-rst', 'test'] 1129s # Return code: 0 1129s # Output: 1129s # 1129s # Error: 1129s ok 17 __main__.TestCodegen.test_generate_rst_property 1129s # gdbus-codegen: /usr/bin/gdbus-codegen 1129s # tmpdir: /tmp/tmput2t2o44 1129s # /tmp/tmput2t2o44/tmpuujg3gre.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmput2t2o44/tmpuujg3gre.xml', '--generate-rst', 'test'] 1129s # Return code: 0 1129s # Output: 1129s # 1129s # Error: 1129s ok 18 __main__.TestCodegen.test_generate_rst_signal 1129s # gdbus-codegen: /usr/bin/gdbus-codegen 1129s # tmpdir: /tmp/tmpvqowyrag 1129s # /tmp/tmpvqowyrag/tmpn5it55oe.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpvqowyrag/tmpn5it55oe.xml', '--generate-rst', 'test'] 1129s # Return code: 0 1129s # Output: 1129s # 1129s # Error: 1129s ok 19 __main__.TestCodegen.test_generate_signal_id_multiple_signal_args_types 1129s # gdbus-codegen: /usr/bin/gdbus-codegen 1129s # tmpdir: /tmp/tmp3qn7ttd9 1129s # /tmp/tmp3qn7ttd9/tmp2piii5ib.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp3qn7ttd9/tmp2piii5ib.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1129s # GClosure *closure, 1129s # GValue *return_value G_GNUC_UNUSED, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1129s # (void *data1, 1129s # gboolean arg_an_b, 1129s # guchar arg_an_y, 1129s # gint16 arg_an_n, 1129s # guint16 arg_an_q, 1129s # gint arg_an_i, 1129s # guint arg_an_u, 1129s # gint64 arg_an_x, 1129s # guint64 arg_an_t, 1129s # gdouble arg_an_d, 1129s # const gchar *arg_an_s, 1129s # const gchar *arg_an_o, 1129s # const gchar *arg_an_g, 1129s # GVariant *arg_an_h, 1129s # const gchar *arg_an_ay, 1129s # const gchar *const *arg_an_as, 1129s # const gchar *const *arg_an_ao, 1129s # const gchar *const *arg_an_aay, 1129s # GVariant *arg_an_asv, 1129s # void *data2); 1129s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # 1129s # g_return_if_fail (n_param_values == 19); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # callback (data1, 1129s # g_marshal_value_peek_boolean (param_values + 1), 1129s # g_marshal_value_peek_uchar (param_values + 2), 1129s # g_marshal_value_peek_int (param_values + 3), 1129s # g_marshal_value_peek_uint (param_values + 4), 1129s # g_marshal_value_peek_int (param_values + 5), 1129s # g_marshal_value_peek_uint (param_values + 6), 1129s # g_marshal_value_peek_int64 (param_values + 7), 1129s # g_marshal_value_peek_uint64 (param_values + 8), 1129s # g_marshal_value_peek_double (param_values + 9), 1129s # g_marshal_value_peek_string (param_values + 10), 1129s # g_marshal_value_peek_string (param_values + 11), 1129s # g_marshal_value_peek_string (param_values + 12), 1129s # g_marshal_value_peek_variant (param_values + 13), 1129s # g_marshal_value_peek_string (param_values + 14), 1129s # g_marshal_value_peek_boxed (param_values + 15), 1129s # g_marshal_value_peek_boxed (param_values + 16), 1129s # g_marshal_value_peek_boxed (param_values + 17), 1129s # g_marshal_value_peek_variant (param_values + 18), 1129s # data2); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.SignalingIface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectSignalingIface 1129s # * @title: OrgProjectSignalingIface 1129s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1129s # */ 1129s # 1129s # enum 1129s # { 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1129s # }; 1129s # 1129s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1129s # 1129s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_b", 1129s # (gchar *) "b", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_y", 1129s # (gchar *) "y", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_n", 1129s # (gchar *) "n", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_q", 1129s # (gchar *) "q", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_i", 1129s # (gchar *) "i", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_u", 1129s # (gchar *) "u", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_x", 1129s # (gchar *) "x", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_t", 1129s # (gchar *) "t", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_d", 1129s # (gchar *) "d", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_s", 1129s # (gchar *) "s", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_o", 1129s # (gchar *) "o", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_g", 1129s # (gchar *) "g", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_h", 1129s # (gchar *) "h", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_ay", 1129s # (gchar *) "ay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_as", 1129s # (gchar *) "as", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_ao", 1129s # (gchar *) "ao", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_aay", 1129s # (gchar *) "aay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_asv", 1129s # (gchar *) "a{sv}", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SignalWithManyArgs", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "signal-with-many-args" 1129s # }; 1129s # 1129s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.SignalingIface", 1129s # NULL, 1129s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-signaling-iface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_signaling_iface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_signaling_iface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectSignalingIfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1129s # */ 1129s # 1129s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1129s # { 1129s # /* GObject signals for received D-Bus signals: */ 1129s # /** 1129s # * OrgProjectSignalingIface::signal-with-many-args: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_b: Argument. 1129s # * @arg_an_y: Argument. 1129s # * @arg_an_n: Argument. 1129s # * @arg_an_q: Argument. 1129s # * @arg_an_i: Argument. 1129s # * @arg_an_u: Argument. 1129s # * @arg_an_x: Argument. 1129s # * @arg_an_t: Argument. 1129s # * @arg_an_d: Argument. 1129s # * @arg_an_s: Argument. 1129s # * @arg_an_o: Argument. 1129s # * @arg_an_g: Argument. 1129s # * @arg_an_h: Argument. 1129s # * @arg_an_ay: Argument. 1129s # * @arg_an_as: Argument. 1129s # * @arg_an_ao: Argument. 1129s # * @arg_an_aay: Argument. 1129s # * @arg_an_asv: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1129s # g_signal_new ("signal-with-many-args", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1129s # G_TYPE_NONE, 1129s # 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); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_signal_with_many_args: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_b: Argument to pass with the signal. 1129s # * @arg_an_y: Argument to pass with the signal. 1129s # * @arg_an_n: Argument to pass with the signal. 1129s # * @arg_an_q: Argument to pass with the signal. 1129s # * @arg_an_i: Argument to pass with the signal. 1129s # * @arg_an_u: Argument to pass with the signal. 1129s # * @arg_an_x: Argument to pass with the signal. 1129s # * @arg_an_t: Argument to pass with the signal. 1129s # * @arg_an_d: Argument to pass with the signal. 1129s # * @arg_an_s: Argument to pass with the signal. 1129s # * @arg_an_o: Argument to pass with the signal. 1129s # * @arg_an_g: Argument to pass with the signal. 1129s # * @arg_an_h: Argument to pass with the signal. 1129s # * @arg_an_ay: Argument to pass with the signal. 1129s # * @arg_an_as: Argument to pass with the signal. 1129s # * @arg_an_ao: Argument to pass with the signal. 1129s # * @arg_an_aay: Argument to pass with the signal. 1129s # * @arg_an_asv: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SignalWithManyArgs" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_signal_with_many_args ( 1129s # OrgProjectSignalingIface *object, 1129s # gboolean arg_an_b, 1129s # guchar arg_an_y, 1129s # gint16 arg_an_n, 1129s # guint16 arg_an_q, 1129s # gint arg_an_i, 1129s # guint arg_an_u, 1129s # gint64 arg_an_x, 1129s # guint64 arg_an_t, 1129s # gdouble arg_an_d, 1129s # const gchar *arg_an_s, 1129s # const gchar *arg_an_o, 1129s # const gchar *arg_an_g, 1129s # GVariant *arg_an_h, 1129s # const gchar *arg_an_ay, 1129s # const gchar *const *arg_an_as, 1129s # const gchar *const *arg_an_ao, 1129s # const gchar *const *arg_an_aay, 1129s # GVariant *arg_an_asv) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectSignalingIfaceProxy: 1129s # * 1129s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectSignalingIfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectSignalingIfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectSignalingIfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_signaling_iface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1129s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1129s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectSignalingIface * 1129s # org_project_signaling_iface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectSignalingIface * 1129s # org_project_signaling_iface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectSignalingIface * 1129s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectSignalingIface * 1129s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectSignalingIfaceSkeleton: 1129s # * 1129s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectSignalingIfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_signaling_iface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_signaling_iface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_signaling_iface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1129s # { 1129s # _org_project_signaling_iface_skeleton_handle_method_call, 1129s # _org_project_signaling_iface_skeleton_handle_get_property, 1129s # _org_project_signaling_iface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_signaling_iface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1129s # OrgProjectSignalingIface *object, 1129s # gboolean arg_an_b, 1129s # guchar arg_an_y, 1129s # gint16 arg_an_n, 1129s # guint16 arg_an_q, 1129s # gint arg_an_i, 1129s # guint arg_an_u, 1129s # gint64 arg_an_x, 1129s # guint64 arg_an_t, 1129s # gdouble arg_an_d, 1129s # const gchar *arg_an_s, 1129s # const gchar *arg_an_o, 1129s # const gchar *arg_an_g, 1129s # GVariant *arg_an_h, 1129s # const gchar *arg_an_ay, 1129s # const gchar *const *arg_an_as, 1129s # const gchar *const *arg_an_ao, 1129s # const gchar *const *arg_an_aay, 1129s # GVariant *arg_an_asv) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1129s # arg_an_b, 1129s # arg_an_y, 1129s # arg_an_n, 1129s # arg_an_q, 1129s # arg_an_i, 1129s # arg_an_u, 1129s # arg_an_x, 1129s # arg_an_t, 1129s # arg_an_d, 1129s # arg_an_s, 1129s # arg_an_o, 1129s # arg_an_g, 1129s # arg_an_h, 1129s # arg_an_ay, 1129s # arg_an_as, 1129s # arg_an_ao, 1129s # arg_an_aay, 1129s # arg_an_asv)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1129s # { 1129s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectSignalingIface * 1129s # org_project_signaling_iface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s ok 20 __main__.TestCodegen.test_generate_signal_id_multiple_signals_types 1129s # gdbus-codegen: /usr/bin/gdbus-codegen 1129s # tmpdir: /tmp/tmp9mpt_okx 1129s # /tmp/tmp9mpt_okx/tmp3m3ho56r.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp9mpt_okx/tmp3m3ho56r.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_VOID__INT64 ( 1129s # GClosure *closure, 1129s # GValue *return_value G_GNUC_UNUSED, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1129s # (void *data1, 1129s # gint64 arg_an_x, 1129s # void *data2); 1129s # _GDbusCodegenMarshalVoid_Int64Func callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # callback (data1, 1129s # g_marshal_value_peek_int64 (param_values + 1), 1129s # data2); 1129s # } 1129s # 1129s # static void 1129s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1129s # GClosure *closure, 1129s # GValue *return_value G_GNUC_UNUSED, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint G_GNUC_UNUSED, 1129s # void *marshal_data) 1129s # { 1129s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1129s # (void *data1, 1129s # guint64 arg_an_t, 1129s # void *data2); 1129s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1129s # GCClosure *cc = (GCClosure*) closure; 1129s # void *data1, *data2; 1129s # 1129s # g_return_if_fail (n_param_values == 2); 1129s # 1129s # if (G_CCLOSURE_SWAP_DATA (closure)) 1129s # { 1129s # data1 = closure->data; 1129s # data2 = g_value_peek_pointer (param_values + 0); 1129s # } 1129s # else 1129s # { 1129s # data1 = g_value_peek_pointer (param_values + 0); 1129s # data2 = closure->data; 1129s # } 1129s # 1129s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1129s # (marshal_data ? marshal_data : cc->callback); 1129s # 1129s # callback (data1, 1129s # g_marshal_value_peek_uint64 (param_values + 1), 1129s # data2); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.SignalingIface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectSignalingIface 1129s # * @title: OrgProjectSignalingIface 1129s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1129s # */ 1129s # 1129s # enum 1129s # { 1129s # _ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1129s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1129s # }; 1129s # 1129s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[19] = { 0 }; 1129s # 1129s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_no_arg_signal = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "NoArgSignal", 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "no-arg-signal" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_b", 1129s # (gchar *) "b", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_an_b.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalB", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-b" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_y", 1129s # (gchar *) "y", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_an_y.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalY", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-y" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_n", 1129s # (gchar *) "n", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_an_n.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalN", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-n" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_q", 1129s # (gchar *) "q", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_an_q.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalQ", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-q" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_i", 1129s # (gchar *) "i", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_an_i.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalI", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-i" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_u", 1129s # (gchar *) "u", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_an_u.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalU", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-u" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_x", 1129s # (gchar *) "x", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_an_x.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalX", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-x" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_t", 1129s # (gchar *) "t", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_an_t.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalT", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-t" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_d", 1129s # (gchar *) "d", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_an_d.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalD", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-d" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_s", 1129s # (gchar *) "s", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_an_s.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalS", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-s" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_o", 1129s # (gchar *) "o", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_an_o.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalO", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-o" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_g", 1129s # (gchar *) "g", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_an_g.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalG", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-g" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_h", 1129s # (gchar *) "h", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_an_h.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalH", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-h" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_ay", 1129s # (gchar *) "ay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_an_ay.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalAY", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-ay" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_as", 1129s # (gchar *) "as", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_an_as.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalAS", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-as" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_ao", 1129s # (gchar *) "ao", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_an_ao.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalAO", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-ao" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_aay", 1129s # (gchar *) "aay", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_an_aay.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalAAY", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-aay" 1129s # }; 1129s # 1129s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "an_asv", 1129s # (gchar *) "a{sv}", 1129s # NULL 1129s # }, 1129s # FALSE 1129s # }; 1129s # 1129s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_an_asv.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SingleArgSignalASV", 1129s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1129s # NULL 1129s # }, 1129s # "single-arg-signal-asv" 1129s # }; 1129s # 1129s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_no_arg_signal.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1129s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.SignalingIface", 1129s # NULL, 1129s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-signaling-iface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_signaling_iface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_signaling_iface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_no_arg_signal ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__VOID (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__UCHAR (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__INT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__UINT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__INT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__UINT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__DOUBLE (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__STRING (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__STRING (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__STRING (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__VARIANT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__STRING (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__BOXED (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__BOXED (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__BOXED (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__VARIANT (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectSignalingIfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @no_arg_signal: Handler for the #OrgProjectSignalingIface::no-arg-signal signal. 1129s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1129s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1129s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1129s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1129s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1129s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1129s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1129s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1129s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1129s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1129s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1129s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1129s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1129s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1129s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1129s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1129s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1129s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1129s # */ 1129s # 1129s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1129s # { 1129s # /* GObject signals for received D-Bus signals: */ 1129s # /** 1129s # * OrgProjectSignalingIface::no-arg-signal: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "NoArgSignal" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL] = 1129s # g_signal_new ("no-arg-signal", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, no_arg_signal), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_no_arg_signal, 1129s # G_TYPE_NONE, 1129s # 0); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-b: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_b: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1129s # g_signal_new ("single-arg-signal-b", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_BOOLEAN); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-y: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_y: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1129s # g_signal_new ("single-arg-signal-y", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_UCHAR); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-n: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_n: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1129s # g_signal_new ("single-arg-signal-n", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_INT); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-q: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_q: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1129s # g_signal_new ("single-arg-signal-q", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_UINT); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-i: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_i: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1129s # g_signal_new ("single-arg-signal-i", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_INT); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-u: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_u: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1129s # g_signal_new ("single-arg-signal-u", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_UINT); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-x: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_x: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1129s # g_signal_new ("single-arg-signal-x", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_INT64); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-t: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_t: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1129s # g_signal_new ("single-arg-signal-t", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_UINT64); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-d: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_d: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1129s # g_signal_new ("single-arg-signal-d", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_DOUBLE); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-s: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_s: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1129s # g_signal_new ("single-arg-signal-s", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_STRING); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-o: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_o: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1129s # g_signal_new ("single-arg-signal-o", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_STRING); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-g: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_g: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1129s # g_signal_new ("single-arg-signal-g", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_STRING); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-h: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_h: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1129s # g_signal_new ("single-arg-signal-h", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_VARIANT); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-ay: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_ay: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAY" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1129s # g_signal_new ("single-arg-signal-ay", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_STRING); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-as: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_as: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAS" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1129s # g_signal_new ("single-arg-signal-as", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_STRV); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-ao: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_ao: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAO" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1129s # g_signal_new ("single-arg-signal-ao", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_STRV); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-aay: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_aay: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAAY" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1129s # g_signal_new ("single-arg-signal-aay", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_STRV); 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface::single-arg-signal-asv: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_asv: Argument. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalASV" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1129s # g_signal_new ("single-arg-signal-asv", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1129s # G_TYPE_NONE, 1129s # 1, G_TYPE_VARIANT); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_no_arg_signal: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * 1129s # * Emits the "NoArgSignal" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_no_arg_signal ( 1129s # OrgProjectSignalingIface *object) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_NO_ARG_SIGNAL], 0); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_b: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_b: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalB" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_b ( 1129s # OrgProjectSignalingIface *object, 1129s # gboolean arg_an_b) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_an_b); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_y: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_y: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalY" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_y ( 1129s # OrgProjectSignalingIface *object, 1129s # guchar arg_an_y) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_an_y); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_n: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_n: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalN" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_n ( 1129s # OrgProjectSignalingIface *object, 1129s # gint16 arg_an_n) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_an_n); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_q: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_q: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalQ" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_q ( 1129s # OrgProjectSignalingIface *object, 1129s # guint16 arg_an_q) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_an_q); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_i: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_i: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalI" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_i ( 1129s # OrgProjectSignalingIface *object, 1129s # gint arg_an_i) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_an_i); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_u: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_u: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalU" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_u ( 1129s # OrgProjectSignalingIface *object, 1129s # guint arg_an_u) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_an_u); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_x: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_x: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalX" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_x ( 1129s # OrgProjectSignalingIface *object, 1129s # gint64 arg_an_x) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_an_x); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_t: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_t: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalT" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_t ( 1129s # OrgProjectSignalingIface *object, 1129s # guint64 arg_an_t) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_an_t); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_d: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_d: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalD" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_d ( 1129s # OrgProjectSignalingIface *object, 1129s # gdouble arg_an_d) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_an_d); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_s: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_s: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalS" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_s ( 1129s # OrgProjectSignalingIface *object, 1129s # const gchar *arg_an_s) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_an_s); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_o: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_o: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalO" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_o ( 1129s # OrgProjectSignalingIface *object, 1129s # const gchar *arg_an_o) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_an_o); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_g: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_g: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalG" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_g ( 1129s # OrgProjectSignalingIface *object, 1129s # const gchar *arg_an_g) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_an_g); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_h: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_h: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalH" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_h ( 1129s # OrgProjectSignalingIface *object, 1129s # GVariant *arg_an_h) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_an_h); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_ay: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalAY" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1129s # OrgProjectSignalingIface *object, 1129s # const gchar *arg_an_ay) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_an_ay); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_as: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_as: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalAS" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_as ( 1129s # OrgProjectSignalingIface *object, 1129s # const gchar *const *arg_an_as) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_an_as); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_ao: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalAO" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1129s # OrgProjectSignalingIface *object, 1129s # const gchar *const *arg_an_ao) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_an_ao); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_aay: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalAAY" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1129s # OrgProjectSignalingIface *object, 1129s # const gchar *const *arg_an_aay) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_an_aay); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * @arg_an_asv: Argument to pass with the signal. 1129s # * 1129s # * Emits the "SingleArgSignalASV" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1129s # OrgProjectSignalingIface *object, 1129s # GVariant *arg_an_asv) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_an_asv); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectSignalingIfaceProxy: 1129s # * 1129s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectSignalingIfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectSignalingIfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectSignalingIfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_signaling_iface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1129s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1129s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectSignalingIface * 1129s # org_project_signaling_iface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectSignalingIface * 1129s # org_project_signaling_iface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectSignalingIface * 1129s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectSignalingIface * 1129s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectSignalingIfaceSkeleton: 1129s # * 1129s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectSignalingIfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_signaling_iface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_signaling_iface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_signaling_iface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1129s # { 1129s # _org_project_signaling_iface_skeleton_handle_method_call, 1129s # _org_project_signaling_iface_skeleton_handle_get_property, 1129s # _org_project_signaling_iface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_signaling_iface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_no_arg_signal ( 1129s # OrgProjectSignalingIface *object) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "NoArgSignal", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1129s # OrgProjectSignalingIface *object, 1129s # gboolean arg_an_b) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1129s # arg_an_b)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1129s # OrgProjectSignalingIface *object, 1129s # guchar arg_an_y) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1129s # arg_an_y)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1129s # OrgProjectSignalingIface *object, 1129s # gint16 arg_an_n) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1129s # arg_an_n)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1129s # OrgProjectSignalingIface *object, 1129s # guint16 arg_an_q) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1129s # arg_an_q)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1129s # OrgProjectSignalingIface *object, 1129s # gint arg_an_i) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1129s # arg_an_i)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1129s # OrgProjectSignalingIface *object, 1129s # guint arg_an_u) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1129s # arg_an_u)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1129s # OrgProjectSignalingIface *object, 1129s # gint64 arg_an_x) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1129s # arg_an_x)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1129s # OrgProjectSignalingIface *object, 1129s # guint64 arg_an_t) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1129s # arg_an_t)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1129s # OrgProjectSignalingIface *object, 1129s # gdouble arg_an_d) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1129s # arg_an_d)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1129s # OrgProjectSignalingIface *object, 1129s # const gchar *arg_an_s) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1129s # arg_an_s)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1129s # OrgProjectSignalingIface *object, 1129s # const gchar *arg_an_o) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1129s # arg_an_o)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1129s # OrgProjectSignalingIface *object, 1129s # const gchar *arg_an_g) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1129s # arg_an_g)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1129s # OrgProjectSignalingIface *object, 1129s # GVariant *arg_an_h) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1129s # arg_an_h)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1129s # OrgProjectSignalingIface *object, 1129s # const gchar *arg_an_ay) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1129s # arg_an_ay)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAY", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1129s # OrgProjectSignalingIface *object, 1129s # const gchar *const *arg_an_as) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1129s # arg_an_as)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAS", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1129s # OrgProjectSignalingIface *object, 1129s # const gchar *const *arg_an_ao) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1129s # arg_an_ao)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAO", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1129s # OrgProjectSignalingIface *object, 1129s # const gchar *const *arg_an_aay) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1129s # arg_an_aay)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAAY", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void 1129s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1129s # OrgProjectSignalingIface *object, 1129s # GVariant *arg_an_asv) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1129s # arg_an_asv)); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalASV", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1129s # { 1129s # iface->no_arg_signal = _org_project_signaling_iface_on_signal_no_arg_signal; 1129s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1129s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1129s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1129s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1129s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1129s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1129s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1129s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1129s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1129s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1129s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1129s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1129s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1129s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1129s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1129s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1129s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1129s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectSignalingIface * 1129s # org_project_signaling_iface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s ok 21 __main__.TestCodegen.test_generate_signal_id_simple_signal 1129s # gdbus-codegen: /usr/bin/gdbus-codegen 1129s # tmpdir: /tmp/tmp12s93pcq 1129s # /tmp/tmp12s93pcq/tmpddrnzybx.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp12s93pcq/tmpddrnzybx.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.UsefulInterface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectUsefulInterface 1129s # * @title: OrgProjectUsefulInterface 1129s # * @short_description: Generated C code for the org.project.UsefulInterface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.UsefulInterface D-Bus interface in C. 1129s # */ 1129s # 1129s # enum 1129s # { 1129s # _ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL, 1129s # }; 1129s # 1129s # static unsigned _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[1] = { 0 }; 1129s # 1129s # /* ---- Introspection data for org.project.UsefulInterface ---- */ 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_useful_interface_signal_info_simple_signal = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SimpleSignal", 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "simple-signal" 1129s # }; 1129s # 1129s # static const GDBusSignalInfo * const _org_project_useful_interface_signal_info_pointers[] = 1129s # { 1129s # &_org_project_useful_interface_signal_info_simple_signal.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_useful_interface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.UsefulInterface", 1129s # NULL, 1129s # (GDBusSignalInfo **) &_org_project_useful_interface_signal_info_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-useful-interface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.UsefulInterface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_useful_interface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectUsefulInterface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_useful_interface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_useful_interface_signal_marshal_simple_signal ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__VOID (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @simple_signal: Handler for the #OrgProjectUsefulInterface::simple-signal signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.UsefulInterface. 1129s # */ 1129s # 1129s # typedef OrgProjectUsefulInterfaceIface OrgProjectUsefulInterfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectUsefulInterface, org_project_useful_interface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_useful_interface_default_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # /* GObject signals for received D-Bus signals: */ 1129s # /** 1129s # * OrgProjectUsefulInterface::simple-signal: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL] = 1129s # g_signal_new ("simple-signal", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectUsefulInterfaceIface, simple_signal), 1129s # NULL, 1129s # NULL, 1129s # org_project_useful_interface_signal_marshal_simple_signal, 1129s # G_TYPE_NONE, 1129s # 0); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_emit_simple_signal: 1129s # * @object: A #OrgProjectUsefulInterface. 1129s # * 1129s # * Emits the "SimpleSignal" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_useful_interface_emit_simple_signal ( 1129s # OrgProjectUsefulInterface *object) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_USEFUL_INTERFACE_SIGNALS[_ORG_PROJECT_USEFUL_INTERFACE_SIMPLE_SIGNAL], 0); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxy: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceProxy, org_project_useful_interface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_useful_interface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectUsefulInterfaceProxy *proxy = ORG_PROJECT_USEFUL_INTERFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_init (OrgProjectUsefulInterfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_useful_interface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_USEFUL_INTERFACE_PROXY, OrgProjectUsefulInterfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_useful_interface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_class_init (OrgProjectUsefulInterfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_proxy_finalize; 1129s # gobject_class->get_property = org_project_useful_interface_proxy_get_property; 1129s # gobject_class->set_property = org_project_useful_interface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_useful_interface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_useful_interface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_proxy_iface_init (OrgProjectUsefulInterfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.UsefulInterface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_useful_interface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_useful_interface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_useful_interface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # g_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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_useful_interface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_useful_interface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_useful_interface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_useful_interface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_USEFUL_INTERFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeleton: 1129s # * 1129s # * The #OrgProjectUsefulInterfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectUsefulInterfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectUsefulInterfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectUsefulInterfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_useful_interface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_USEFUL_INTERFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_useful_interface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_useful_interface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_useful_interface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_useful_interface_skeleton_vtable = 1129s # { 1129s # _org_project_useful_interface_skeleton_handle_method_call, 1129s # _org_project_useful_interface_skeleton_handle_get_property, 1129s # _org_project_useful_interface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_useful_interface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_useful_interface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_useful_interface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_useful_interface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_useful_interface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_useful_interface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # _org_project_useful_interface_on_signal_simple_signal ( 1129s # OrgProjectUsefulInterface *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.UsefulInterface", "SimpleSignal", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectUsefulInterfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectUsefulInterfaceSkeleton, org_project_useful_interface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_USEFUL_INTERFACE, org_project_useful_interface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_useful_interface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectUsefulInterfaceSkeleton *skeleton = ORG_PROJECT_USEFUL_INTERFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_useful_interface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_init (OrgProjectUsefulInterfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_useful_interface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, OrgProjectUsefulInterfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_class_init (OrgProjectUsefulInterfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_useful_interface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_useful_interface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_useful_interface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_useful_interface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_useful_interface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectUsefulInterfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_useful_interface_skeleton_iface_init (OrgProjectUsefulInterfaceIface *iface) 1129s # { 1129s # iface->simple_signal = _org_project_useful_interface_on_signal_simple_signal; 1129s # } 1129s # 1129s # /** 1129s # * org_project_useful_interface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.UsefulInterface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectUsefulInterfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectUsefulInterface * 1129s # org_project_useful_interface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_USEFUL_INTERFACE (g_object_new (TYPE_ORG_PROJECT_USEFUL_INTERFACE_SKELETON, NULL)); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.OtherIface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectOtherIface 1129s # * @title: OrgProjectOtherIface 1129s # * @short_description: Generated C code for the org.project.OtherIface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.OtherIface D-Bus interface in C. 1129s # */ 1129s # 1129s # enum 1129s # { 1129s # _ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL, 1129s # }; 1129s # 1129s # static unsigned _ORG_PROJECT_OTHER_IFACE_SIGNALS[1] = { 0 }; 1129s # 1129s # /* ---- Introspection data for org.project.OtherIface ---- */ 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_other_iface_signal_info_simple_signal = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SimpleSignal", 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "simple-signal" 1129s # }; 1129s # 1129s # static const GDBusSignalInfo * const _org_project_other_iface_signal_info_pointers[] = 1129s # { 1129s # &_org_project_other_iface_signal_info_simple_signal.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_other_iface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.OtherIface", 1129s # NULL, 1129s # (GDBusSignalInfo **) &_org_project_other_iface_signal_info_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-other-iface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_other_iface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.OtherIface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_other_iface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_iface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectOtherIface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_other_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_other_iface_signal_marshal_simple_signal ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__VOID (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectOtherIface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.OtherIface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectOtherIfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @simple_signal: Handler for the #OrgProjectOtherIface::simple-signal signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.OtherIface. 1129s # */ 1129s # 1129s # typedef OrgProjectOtherIfaceIface OrgProjectOtherIfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectOtherIface, org_project_other_iface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_other_iface_default_init (OrgProjectOtherIfaceIface *iface) 1129s # { 1129s # /* GObject signals for received D-Bus signals: */ 1129s # /** 1129s # * OrgProjectOtherIface::simple-signal: 1129s # * @object: A #OrgProjectOtherIface. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL] = 1129s # g_signal_new ("simple-signal", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectOtherIfaceIface, simple_signal), 1129s # NULL, 1129s # NULL, 1129s # org_project_other_iface_signal_marshal_simple_signal, 1129s # G_TYPE_NONE, 1129s # 0); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_iface_emit_simple_signal: 1129s # * @object: A #OrgProjectOtherIface. 1129s # * 1129s # * Emits the "SimpleSignal" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_other_iface_emit_simple_signal ( 1129s # OrgProjectOtherIface *object) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_OTHER_IFACE_SIGNALS[_ORG_PROJECT_OTHER_IFACE_SIMPLE_SIGNAL], 0); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectOtherIfaceProxy: 1129s # * 1129s # * The #OrgProjectOtherIfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectOtherIfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectOtherIfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectOtherIfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectOtherIfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceProxy, org_project_other_iface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_other_iface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_other_iface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_other_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_other_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_other_iface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_IFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_other_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectOtherIfaceProxy *proxy = ORG_PROJECT_OTHER_IFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_other_iface_proxy_init (OrgProjectOtherIfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_other_iface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_IFACE_PROXY, OrgProjectOtherIfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_iface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_other_iface_proxy_class_init (OrgProjectOtherIfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_other_iface_proxy_finalize; 1129s # gobject_class->get_property = org_project_other_iface_proxy_get_property; 1129s # gobject_class->set_property = org_project_other_iface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_other_iface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_other_iface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_other_iface_proxy_iface_init (OrgProjectOtherIfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_iface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_other_iface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_other_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_other_iface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_iface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_other_iface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectOtherIface * 1129s # org_project_other_iface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_OTHER_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_iface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherIface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_other_iface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectOtherIface * 1129s # org_project_other_iface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_OTHER_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_other_iface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_other_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_other_iface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_other_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_other_iface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_iface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_iface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_other_iface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectOtherIface * 1129s # org_project_other_iface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_OTHER_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_iface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_other_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_other_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectOtherIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectOtherIface * 1129s # org_project_other_iface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_OTHER_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectOtherIfaceSkeleton: 1129s # * 1129s # * The #OrgProjectOtherIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectOtherIfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectOtherIfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectOtherIfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_other_iface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_IFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_IFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_other_iface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # GVariant *ret; 1129s # ret = NULL; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # g_value_init (&value, pspec->value_type); 1129s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1129s # g_value_unset (&value); 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _org_project_other_iface_skeleton_handle_set_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name G_GNUC_UNUSED, 1129s # const gchar *property_name, 1129s # GVariant *variant, 1129s # GError **error, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (user_data); 1129s # GValue value = G_VALUE_INIT; 1129s # GParamSpec *pspec; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # gboolean ret; 1129s # ret = FALSE; 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_iface_interface_info.parent_struct, property_name); 1129s # g_assert (info != NULL); 1129s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1129s # if (pspec == NULL) 1129s # { 1129s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1129s # } 1129s # else 1129s # { 1129s # if (info->use_gvariant) 1129s # g_value_set_variant (&value, variant); 1129s # else 1129s # g_dbus_gvariant_to_gvalue (variant, &value); 1129s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1129s # g_value_unset (&value); 1129s # ret = TRUE; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # static const GDBusInterfaceVTable _org_project_other_iface_skeleton_vtable = 1129s # { 1129s # _org_project_other_iface_skeleton_handle_method_call, 1129s # _org_project_other_iface_skeleton_handle_get_property, 1129s # _org_project_other_iface_skeleton_handle_set_property, 1129s # {NULL} 1129s # }; 1129s # 1129s # static GDBusInterfaceInfo * 1129s # org_project_other_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return org_project_other_iface_interface_info (); 1129s # } 1129s # 1129s # static GDBusInterfaceVTable * 1129s # org_project_other_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1129s # { 1129s # return (GDBusInterfaceVTable *) &_org_project_other_iface_skeleton_vtable; 1129s # } 1129s # 1129s # static GVariant * 1129s # org_project_other_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1129s # { 1129s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (_skeleton); 1129s # 1129s # GVariantBuilder builder; 1129s # guint n; 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1129s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #else 1129s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1129s # #endif 1129s # if (_org_project_other_iface_interface_info.parent_struct.properties == NULL) 1129s # goto out; 1129s # for (n = 0; _org_project_other_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1129s # { 1129s # GDBusPropertyInfo *info = _org_project_other_iface_interface_info.parent_struct.properties[n]; 1129s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1129s # { 1129s # GVariant *value; 1129s # 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); 1129s # if (value != NULL) 1129s # { 1129s # g_variant_take_ref (value); 1129s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1129s # g_variant_unref (value); 1129s # } 1129s # } 1129s # } 1129s # out: 1129s # return g_variant_builder_end (&builder); 1129s # } 1129s # 1129s # static void 1129s # org_project_other_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # _org_project_other_iface_on_signal_simple_signal ( 1129s # OrgProjectOtherIface *object) 1129s # { 1129s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1129s # 1129s # GList *connections, *l; 1129s # GVariant *signal_variant; 1129s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1129s # 1129s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1129s # for (l = connections; l != NULL; l = l->next) 1129s # { 1129s # GDBusConnection *connection = l->data; 1129s # g_dbus_connection_emit_signal (connection, 1129s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherIface", "SimpleSignal", 1129s # signal_variant, NULL); 1129s # } 1129s # g_variant_unref (signal_variant); 1129s # g_list_free_full (connections, g_object_unref); 1129s # } 1129s # 1129s # static void org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface); 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_ADD_PRIVATE (OrgProjectOtherIfaceSkeleton) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherIfaceSkeleton, org_project_other_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_IFACE, org_project_other_iface_skeleton_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_other_iface_skeleton_finalize (GObject *object) 1129s # { 1129s # OrgProjectOtherIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_IFACE_SKELETON (object); 1129s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1129s # if (skeleton->priv->changed_properties_idle_source != NULL) 1129s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1129s # g_main_context_unref (skeleton->priv->context); 1129s # g_mutex_clear (&skeleton->priv->lock); 1129s # G_OBJECT_CLASS (org_project_other_iface_skeleton_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_other_iface_skeleton_init (OrgProjectOtherIfaceSkeleton *skeleton) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # skeleton->priv = org_project_other_iface_skeleton_get_instance_private (skeleton); 1129s # #else 1129s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, OrgProjectOtherIfaceSkeletonPrivate); 1129s # #endif 1129s # 1129s # g_mutex_init (&skeleton->priv->lock); 1129s # skeleton->priv->context = g_main_context_ref_thread_default (); 1129s # } 1129s # 1129s # static void 1129s # org_project_other_iface_skeleton_class_init (OrgProjectOtherIfaceSkeletonClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusInterfaceSkeletonClass *skeleton_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_other_iface_skeleton_finalize; 1129s # 1129s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1129s # skeleton_class->get_info = org_project_other_iface_skeleton_dbus_interface_get_info; 1129s # skeleton_class->get_properties = org_project_other_iface_skeleton_dbus_interface_get_properties; 1129s # skeleton_class->flush = org_project_other_iface_skeleton_dbus_interface_flush; 1129s # skeleton_class->get_vtable = org_project_other_iface_skeleton_dbus_interface_get_vtable; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectOtherIfaceSkeletonPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_other_iface_skeleton_iface_init (OrgProjectOtherIfaceIface *iface) 1129s # { 1129s # iface->simple_signal = _org_project_other_iface_on_signal_simple_signal; 1129s # } 1129s # 1129s # /** 1129s # * org_project_other_iface_skeleton_new: 1129s # * 1129s # * Creates a skeleton object for the D-Bus interface org.project.OtherIface. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectOtherIfaceSkeleton): The skeleton object. 1129s # */ 1129s # OrgProjectOtherIface * 1129s # org_project_other_iface_skeleton_new (void) 1129s # { 1129s # return ORG_PROJECT_OTHER_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_IFACE_SKELETON, NULL)); 1129s # } 1129s # Error: 1129s ok 22 __main__.TestCodegen.test_generate_signals_marshaller_simple_signal 1129s # gdbus-codegen: /usr/bin/gdbus-codegen 1129s # tmpdir: /tmp/tmp8qxc0ux9 1129s # /tmp/tmp8qxc0ux9/tmpdl_1dnes.xml: 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # 1129s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp8qxc0ux9/tmpdl_1dnes.xml', '--output', '-', '--body'] 1129s # Return code: 0 1129s # Output: 1129s # /* 1129s # * This file is generated by gdbus-codegen, do not modify it. 1129s # * 1129s # * The license of this code is the same as for the D-Bus interface description 1129s # * it was derived from. Note that it links to GLib, so must comply with the 1129s # * LGPL linking clauses. 1129s # */ 1129s # 1129s # #ifdef HAVE_CONFIG_H 1129s # # include "config.h" 1129s # #endif 1129s # 1129s # #include 1129s # #ifdef G_OS_UNIX 1129s # # include 1129s # #endif 1129s # 1129s # #ifdef G_ENABLE_DEBUG 1129s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1129s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1129s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1129s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1129s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1129s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1129s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1129s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1129s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1129s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1129s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1129s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1129s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1129s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1129s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1129s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1129s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1129s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1129s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1129s # #else /* !G_ENABLE_DEBUG */ 1129s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1129s # * Do not access GValues directly in your code. Instead, use the 1129s # * g_value_get_*() functions 1129s # */ 1129s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1129s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1129s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1129s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1129s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1129s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1129s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1129s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1129s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1129s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1129s # #endif /* !G_ENABLE_DEBUG */ 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusArgInfo parent_struct; 1129s # gboolean use_gvariant; 1129s # } _ExtendedGDBusArgInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusMethodInfo parent_struct; 1129s # const gchar *signal_name; 1129s # gboolean pass_fdlist; 1129s # } _ExtendedGDBusMethodInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusSignalInfo parent_struct; 1129s # const gchar *signal_name; 1129s # } _ExtendedGDBusSignalInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusPropertyInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # guint use_gvariant : 1; 1129s # guint emits_changed_signal : 1; 1129s # } _ExtendedGDBusPropertyInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # GDBusInterfaceInfo parent_struct; 1129s # const gchar *hyphen_name; 1129s # } _ExtendedGDBusInterfaceInfo; 1129s # 1129s # typedef struct 1129s # { 1129s # const _ExtendedGDBusPropertyInfo *info; 1129s # guint prop_id; 1129s # GValue orig_value; /* the value before the change */ 1129s # } ChangedProperty; 1129s # 1129s # static void 1129s # _changed_property_free (ChangedProperty *data) 1129s # { 1129s # g_value_unset (&data->orig_value); 1129s # g_free (data); 1129s # } 1129s # 1129s # static gboolean 1129s # _g_strv_equal0 (gchar **a, gchar **b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # guint n; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # if (g_strv_length (a) != g_strv_length (b)) 1129s # goto out; 1129s # for (n = 0; a[n] != NULL; n++) 1129s # if (g_strcmp0 (a[n], b[n]) != 0) 1129s # goto out; 1129s # ret = TRUE; 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # static gboolean 1129s # _g_variant_equal0 (GVariant *a, GVariant *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # if (a == NULL && b == NULL) 1129s # { 1129s # ret = TRUE; 1129s # goto out; 1129s # } 1129s # if (a == NULL || b == NULL) 1129s # goto out; 1129s # ret = g_variant_equal (a, b); 1129s # out: 1129s # return ret; 1129s # } 1129s # 1129s # G_GNUC_UNUSED static gboolean 1129s # _g_value_equal (const GValue *a, const GValue *b) 1129s # { 1129s # gboolean ret = FALSE; 1129s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1129s # switch (G_VALUE_TYPE (a)) 1129s # { 1129s # case G_TYPE_BOOLEAN: 1129s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1129s # break; 1129s # case G_TYPE_UCHAR: 1129s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1129s # break; 1129s # case G_TYPE_INT: 1129s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1129s # break; 1129s # case G_TYPE_UINT: 1129s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1129s # break; 1129s # case G_TYPE_INT64: 1129s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1129s # break; 1129s # case G_TYPE_UINT64: 1129s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1129s # break; 1129s # case G_TYPE_DOUBLE: 1129s # { 1129s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1129s # gdouble da = g_value_get_double (a); 1129s # gdouble db = g_value_get_double (b); 1129s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1129s # } 1129s # break; 1129s # case G_TYPE_STRING: 1129s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1129s # break; 1129s # case G_TYPE_VARIANT: 1129s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1129s # break; 1129s # default: 1129s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1129s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1129s # else 1129s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1129s # break; 1129s # } 1129s # return ret; 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ 1129s # * Code for interface org.project.SignalingIface 1129s # * ------------------------------------------------------------------------ 1129s # */ 1129s # 1129s # /** 1129s # * SECTION:OrgProjectSignalingIface 1129s # * @title: OrgProjectSignalingIface 1129s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1129s # * 1129s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1129s # */ 1129s # 1129s # enum 1129s # { 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1129s # }; 1129s # 1129s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1129s # 1129s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1129s # 1129s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "SimpleSignal", 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "simple-signal" 1129s # }; 1129s # 1129s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1129s # { 1129s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1129s # NULL 1129s # }; 1129s # 1129s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1129s # { 1129s # { 1129s # -1, 1129s # (gchar *) "org.project.SignalingIface", 1129s # NULL, 1129s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1129s # NULL, 1129s # NULL 1129s # }, 1129s # "org-project-signaling-iface", 1129s # }; 1129s # 1129s # 1129s # /** 1129s # * org_project_signaling_iface_interface_info: 1129s # * 1129s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1129s # * 1129s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1129s # */ 1129s # GDBusInterfaceInfo * 1129s # org_project_signaling_iface_interface_info (void) 1129s # { 1129s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_override_properties: 1129s # * @klass: The class structure for a #GObject derived class. 1129s # * @property_id_begin: The property id to assign to the first overridden property. 1129s # * 1129s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1129s # * The properties are overridden in the order they are defined. 1129s # * 1129s # * Returns: The last property id. 1129s # */ 1129s # guint 1129s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1129s # { 1129s # return property_id_begin - 1; 1129s # } 1129s # 1129s # 1129s # inline static void 1129s # org_project_signaling_iface_signal_marshal_simple_signal ( 1129s # GClosure *closure, 1129s # GValue *return_value, 1129s # unsigned int n_param_values, 1129s # const GValue *param_values, 1129s # void *invocation_hint, 1129s # void *marshal_data) 1129s # { 1129s # g_cclosure_marshal_VOID__VOID (closure, 1129s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1129s # } 1129s # 1129s # 1129s # /** 1129s # * OrgProjectSignalingIface: 1129s # * 1129s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectSignalingIfaceIface: 1129s # * @parent_iface: The parent interface. 1129s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1129s # * 1129s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1129s # */ 1129s # 1129s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1129s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1129s # 1129s # static void 1129s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1129s # { 1129s # /* GObject signals for received D-Bus signals: */ 1129s # /** 1129s # * OrgProjectSignalingIface::simple-signal: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * 1129s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1129s # * 1129s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1129s # */ 1129s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1129s # g_signal_new ("simple-signal", 1129s # G_TYPE_FROM_INTERFACE (iface), 1129s # G_SIGNAL_RUN_LAST, 1129s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1129s # NULL, 1129s # NULL, 1129s # org_project_signaling_iface_signal_marshal_simple_signal, 1129s # G_TYPE_NONE, 1129s # 0); 1129s # 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_emit_simple_signal: 1129s # * @object: A #OrgProjectSignalingIface. 1129s # * 1129s # * Emits the "SimpleSignal" D-Bus signal. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_emit_simple_signal ( 1129s # OrgProjectSignalingIface *object) 1129s # { 1129s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1129s # } 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectSignalingIfaceProxy: 1129s # * 1129s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectSignalingIfaceProxyClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectSignalingIfaceProxy. 1129s # */ 1129s # 1129s # struct _OrgProjectSignalingIfaceProxyPrivate 1129s # { 1129s # GData *qdata; 1129s # }; 1129s # 1129s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1129s # 1129s # #else 1129s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1129s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1129s # 1129s # #endif 1129s # static void 1129s # org_project_signaling_iface_proxy_finalize (GObject *object) 1129s # { 1129s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1129s # g_datalist_clear (&proxy->priv->qdata); 1129s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1129s # guint prop_id G_GNUC_UNUSED, 1129s # const GValue *value G_GNUC_UNUSED, 1129s # GParamSpec *pspec G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1129s # const gchar *sender_name G_GNUC_UNUSED, 1129s # const gchar *signal_name, 1129s # GVariant *parameters) 1129s # { 1129s # _ExtendedGDBusSignalInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # gsize n; 1129s # guint signal_id; 1129s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1129s # if (info == NULL) 1129s # return; 1129s # num_params = g_variant_n_children (parameters); 1129s # paramv = g_new0 (GValue, num_params + 1); 1129s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1129s # g_value_set_object (¶mv[0], proxy); 1129s # g_variant_iter_init (&iter, parameters); 1129s # n = 1; 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1129s # g_signal_emitv (paramv, signal_id, 0, NULL); 1129s # for (n = 0; n < num_params + 1; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1129s # GVariant *changed_properties, 1129s # const gchar *const *invalidated_properties) 1129s # { 1129s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1129s # guint n; 1129s # const gchar *key; 1129s # GVariantIter *iter; 1129s # _ExtendedGDBusPropertyInfo *info; 1129s # g_variant_get (changed_properties, "a{sv}", &iter); 1129s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1129s # g_datalist_remove_data (&proxy->priv->qdata, key); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # g_variant_iter_free (iter); 1129s # for (n = 0; invalidated_properties[n] != NULL; n++) 1129s # { 1129s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1129s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1129s # if (info != NULL) 1129s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1129s # } 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1129s # { 1129s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1129s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1129s # #else 1129s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1129s # #endif 1129s # 1129s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1129s # { 1129s # GObjectClass *gobject_class; 1129s # GDBusProxyClass *proxy_class; 1129s # 1129s # gobject_class = G_OBJECT_CLASS (klass); 1129s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1129s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1129s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1129s # 1129s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1129s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1129s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1129s # 1129s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1129s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1129s # #endif 1129s # } 1129s # 1129s # static void 1129s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1129s # { 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_proxy_new ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectSignalingIface * 1129s # org_project_signaling_iface_proxy_new_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new_sync: 1129s # * @connection: A #GDBusConnection. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectSignalingIface * 1129s # org_project_signaling_iface_proxy_new_sync ( 1129s # GDBusConnection *connection, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new_for_bus: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1129s # * @user_data: User data to pass to @callback. 1129s # * 1129s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1129s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1129s # * 1129s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1129s # */ 1129s # void 1129s # org_project_signaling_iface_proxy_new_for_bus ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GAsyncReadyCallback callback, 1129s # gpointer user_data) 1129s # { 1129s # 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); 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1129s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectSignalingIface * 1129s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1129s # GAsyncResult *res, 1129s # GError **error) 1129s # { 1129s # GObject *ret; 1129s # GObject *source_object; 1129s # source_object = g_async_result_get_source_object (res); 1129s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1129s # g_object_unref (source_object); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # /** 1129s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1129s # * @bus_type: A #GBusType. 1129s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1129s # * @name: A bus name (well-known or unique). 1129s # * @object_path: An object path. 1129s # * @cancellable: (nullable): A #GCancellable or %NULL. 1129s # * @error: Return location for error or %NULL 1129s # * 1129s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1129s # * 1129s # * The calling thread is blocked until a reply is received. 1129s # * 1129s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1129s # * 1129s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1129s # */ 1129s # OrgProjectSignalingIface * 1129s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1129s # GBusType bus_type, 1129s # GDBusProxyFlags flags, 1129s # const gchar *name, 1129s # const gchar *object_path, 1129s # GCancellable *cancellable, 1129s # GError **error) 1129s # { 1129s # GInitable *ret; 1129s # 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); 1129s # if (ret != NULL) 1129s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1129s # else 1129s # return NULL; 1129s # } 1129s # 1129s # 1129s # /* ------------------------------------------------------------------------ */ 1129s # 1129s # /** 1129s # * OrgProjectSignalingIfaceSkeleton: 1129s # * 1129s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1129s # */ 1129s # 1129s # /** 1129s # * OrgProjectSignalingIfaceSkeletonClass: 1129s # * @parent_class: The parent class. 1129s # * 1129s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1129s # */ 1129s # 1129s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1129s # { 1129s # GValue *properties; 1129s # GList *changed_properties; 1129s # GSource *changed_properties_idle_source; 1129s # GMainContext *context; 1129s # GMutex lock; 1129s # }; 1129s # 1129s # static void 1129s # _org_project_signaling_iface_skeleton_handle_method_call ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1129s # const gchar *sender G_GNUC_UNUSED, 1129s # const gchar *object_path G_GNUC_UNUSED, 1129s # const gchar *interface_name, 1129s # const gchar *method_name, 1129s # GVariant *parameters, 1129s # GDBusMethodInvocation *invocation, 1129s # gpointer user_data) 1129s # { 1129s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1129s # _ExtendedGDBusMethodInfo *info; 1129s # GVariantIter iter; 1129s # GVariant *child; 1129s # GValue *paramv; 1129s # gsize num_params; 1129s # guint num_extra; 1129s # gsize n; 1129s # guint signal_id; 1129s # GValue return_value = G_VALUE_INIT; 1129s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1129s # g_assert (info != NULL); 1129s # num_params = g_variant_n_children (parameters); 1129s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1129s # n = 0; 1129s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1129s # g_value_set_object (¶mv[n++], skeleton); 1129s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1129s # g_value_set_object (¶mv[n++], invocation); 1129s # if (info->pass_fdlist) 1129s # { 1129s # #ifdef G_OS_UNIX 1129s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1129s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1129s # #else 1129s # g_assert_not_reached (); 1129s # #endif 1129s # } 1129s # g_variant_iter_init (&iter, parameters); 1129s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1129s # { 1129s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1129s # if (arg_info->use_gvariant) 1129s # { 1129s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1129s # g_value_set_variant (¶mv[n], child); 1129s # n++; 1129s # } 1129s # else 1129s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1129s # g_variant_unref (child); 1129s # } 1129s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1129s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1129s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1129s # if (!g_value_get_boolean (&return_value)) 1129s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1129s # g_value_unset (&return_value); 1129s # for (n = 0; n < num_params + num_extra; n++) 1129s # g_value_unset (¶mv[n]); 1129s # g_free (paramv); 1129s # } 1129s # 1129s # static GVariant * 1129s # _org_project_signaling_iface_skeleton_handle_get_property ( 1129s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.OtherSignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectOtherSignalingIface 1130s # * @title: OrgProjectOtherSignalingIface 1130s # * @short_description: Generated C code for the org.project.OtherSignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.OtherSignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[1] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.OtherSignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_other_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_other_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_other_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_other_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.OtherSignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_other_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-other-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_other_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.OtherSignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_other_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_other_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectOtherSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_other_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_other_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectOtherSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.OtherSignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectOtherSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectOtherSignalingIface::simple-signal signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.OtherSignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectOtherSignalingIfaceIface OrgProjectOtherSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectOtherSignalingIface, org_project_other_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_other_signaling_iface_default_init (OrgProjectOtherSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectOtherSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectOtherSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectOtherSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_other_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_other_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectOtherSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_other_signaling_iface_emit_simple_signal ( 1130s # OrgProjectOtherSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_OTHER_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_OTHER_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectOtherSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectOtherSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectOtherSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectOtherSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectOtherSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceProxy) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceProxy, org_project_other_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_proxy_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_other_signaling_iface_proxy_finalize (GObject *object) 1130s # { 1130s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (object); 1130s # g_datalist_clear (&proxy->priv->qdata); 1130s # G_OBJECT_CLASS (org_project_other_signaling_iface_proxy_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_other_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_other_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # const GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_other_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1130s # const gchar *sender_name G_GNUC_UNUSED, 1130s # const gchar *signal_name, 1130s # GVariant *parameters) 1130s # { 1130s # _ExtendedGDBusSignalInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # gsize n; 1130s # guint signal_id; 1130s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, signal_name); 1130s # if (info == NULL) 1130s # return; 1130s # num_params = g_variant_n_children (parameters); 1130s # paramv = g_new0 (GValue, num_params + 1); 1130s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[0], proxy); 1130s # g_variant_iter_init (&iter, parameters); 1130s # n = 1; 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1130s # g_signal_emitv (paramv, signal_id, 0, NULL); 1130s # for (n = 0; n < num_params + 1; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static void 1130s # org_project_other_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1130s # GVariant *changed_properties, 1130s # const gchar *const *invalidated_properties) 1130s # { 1130s # OrgProjectOtherSignalingIfaceProxy *proxy = ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY (_proxy); 1130s # guint n; 1130s # const gchar *key; 1130s # GVariantIter *iter; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # g_variant_get (changed_properties, "a{sv}", &iter); 1130s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, key); 1130s # g_datalist_remove_data (&proxy->priv->qdata, key); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # g_variant_iter_free (iter); 1130s # for (n = 0; invalidated_properties[n] != NULL; n++) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1130s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # } 1130s # 1130s # static void 1130s # org_project_other_signaling_iface_proxy_init (OrgProjectOtherSignalingIfaceProxy *proxy) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # proxy->priv = org_project_other_signaling_iface_proxy_get_instance_private (proxy); 1130s # #else 1130s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_PROXY, OrgProjectOtherSignalingIfaceProxyPrivate); 1130s # #endif 1130s # 1130s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_other_signaling_iface_interface_info ()); 1130s # } 1130s # 1130s # static void 1130s # org_project_other_signaling_iface_proxy_class_init (OrgProjectOtherSignalingIfaceProxyClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusProxyClass *proxy_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_other_signaling_iface_proxy_finalize; 1130s # gobject_class->get_property = org_project_other_signaling_iface_proxy_get_property; 1130s # gobject_class->set_property = org_project_other_signaling_iface_proxy_set_property; 1130s # 1130s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1130s # proxy_class->g_signal = org_project_other_signaling_iface_proxy_g_signal; 1130s # proxy_class->g_properties_changed = org_project_other_signaling_iface_proxy_g_properties_changed; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceProxyPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_other_signaling_iface_proxy_iface_init (OrgProjectOtherSignalingIfaceIface *iface G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # /** 1130s # * org_project_other_signaling_iface_proxy_new: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Asynchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new() for more details. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_other_signaling_iface_proxy_new_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_other_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_other_signaling_iface_proxy_new ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_other_signaling_iface_proxy_new_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectOtherSignalingIface * 1130s # org_project_other_signaling_iface_proxy_new_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_other_signaling_iface_proxy_new_sync: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Synchronously creates a proxy for the D-Bus interface org.project.OtherSignalingIface. See g_dbus_proxy_new_sync() for more details. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_other_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectOtherSignalingIface * 1130s # org_project_other_signaling_iface_proxy_new_sync ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /** 1130s # * org_project_other_signaling_iface_proxy_new_for_bus: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Like org_project_other_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_other_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_other_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_other_signaling_iface_proxy_new_for_bus ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_other_signaling_iface_proxy_new_for_bus_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_other_signaling_iface_proxy_new_for_bus(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_other_signaling_iface_proxy_new_for_bus(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectOtherSignalingIface * 1130s # org_project_other_signaling_iface_proxy_new_for_bus_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_other_signaling_iface_proxy_new_for_bus_sync: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Like org_project_other_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_other_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectOtherSignalingIface * 1130s # org_project_other_signaling_iface_proxy_new_for_bus_sync ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectOtherSignalingIfaceSkeleton: 1130s # * 1130s # * The #OrgProjectOtherSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectOtherSignalingIfaceSkeletonClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectOtherSignalingIfaceSkeleton. 1130s # */ 1130s # 1130s # struct _OrgProjectOtherSignalingIfaceSkeletonPrivate 1130s # { 1130s # GValue *properties; 1130s # GList *changed_properties; 1130s # GSource *changed_properties_idle_source; 1130s # GMainContext *context; 1130s # GMutex lock; 1130s # }; 1130s # 1130s # static void 1130s # _org_project_other_signaling_iface_skeleton_handle_method_call ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name, 1130s # const gchar *method_name, 1130s # GVariant *parameters, 1130s # GDBusMethodInvocation *invocation, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1130s # _ExtendedGDBusMethodInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # guint num_extra; 1130s # gsize n; 1130s # guint signal_id; 1130s # GValue return_value = G_VALUE_INIT; 1130s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1130s # g_assert (info != NULL); 1130s # num_params = g_variant_n_children (parameters); 1130s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1130s # n = 0; 1130s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[n++], skeleton); 1130s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1130s # g_value_set_object (¶mv[n++], invocation); 1130s # if (info->pass_fdlist) 1130s # { 1130s # #ifdef G_OS_UNIX 1130s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1130s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1130s # #else 1130s # g_assert_not_reached (); 1130s # #endif 1130s # } 1130s # g_variant_iter_init (&iter, parameters); 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE); 1130s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1130s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1130s # if (!g_value_get_boolean (&return_value)) 1130s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1130s # g_value_unset (&return_value); 1130s # for (n = 0; n < num_params + num_extra; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static GVariant * 1130s # _org_project_other_signaling_iface_skeleton_handle_get_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_other_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_other_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_other_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_other_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_other_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_other_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_other_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_other_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_other_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_other_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_other_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_other_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_other_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_other_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_other_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectOtherSignalingIface *object) 1130s # { 1130s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.OtherSignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectOtherSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectOtherSignalingIfaceSkeleton, org_project_other_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE, org_project_other_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_other_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectOtherSignalingIfaceSkeleton *skeleton = ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_other_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_other_signaling_iface_skeleton_init (OrgProjectOtherSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_other_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, OrgProjectOtherSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_other_signaling_iface_skeleton_class_init (OrgProjectOtherSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_other_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_other_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_other_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_other_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_other_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectOtherSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_other_signaling_iface_skeleton_iface_init (OrgProjectOtherSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_other_signaling_iface_on_signal_simple_signal; 1130s # } 1130s # 1130s # /** 1130s # * org_project_other_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.OtherSignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectOtherSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectOtherSignalingIface * 1130s # org_project_other_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_OTHER_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_OTHER_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # Error: 1130s ok 23 __main__.TestCodegen.test_generate_signals_marshaller_single_typed_args 1130s # gdbus-codegen: /usr/bin/gdbus-codegen 1130s # tmpdir: /tmp/tmp7tgphinq 1130s # /tmp/tmp7tgphinq/tmpgp08dyu4.xml: 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmpgp08dyu4.xml', '--output', '-', '--body'] 1130s # Return code: 0 1130s # Output: 1130s # /* 1130s # * This file is generated by gdbus-codegen, do not modify it. 1130s # * 1130s # * The license of this code is the same as for the D-Bus interface description 1130s # * it was derived from. Note that it links to GLib, so must comply with the 1130s # * LGPL linking clauses. 1130s # */ 1130s # 1130s # #ifdef HAVE_CONFIG_H 1130s # # include "config.h" 1130s # #endif 1130s # 1130s # #include 1130s # #ifdef G_OS_UNIX 1130s # # include 1130s # #endif 1130s # 1130s # #ifdef G_ENABLE_DEBUG 1130s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1130s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1130s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1130s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1130s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1130s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1130s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1130s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1130s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1130s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1130s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1130s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1130s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1130s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1130s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1130s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1130s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1130s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1130s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1130s # #else /* !G_ENABLE_DEBUG */ 1130s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1130s # * Do not access GValues directly in your code. Instead, use the 1130s # * g_value_get_*() functions 1130s # */ 1130s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1130s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1130s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1130s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1130s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1130s # #endif /* !G_ENABLE_DEBUG */ 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusArgInfo parent_struct; 1130s # gboolean use_gvariant; 1130s # } _ExtendedGDBusArgInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusMethodInfo parent_struct; 1130s # const gchar *signal_name; 1130s # gboolean pass_fdlist; 1130s # } _ExtendedGDBusMethodInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusSignalInfo parent_struct; 1130s # const gchar *signal_name; 1130s # } _ExtendedGDBusSignalInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusPropertyInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # guint use_gvariant : 1; 1130s # guint emits_changed_signal : 1; 1130s # } _ExtendedGDBusPropertyInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusInterfaceInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # } _ExtendedGDBusInterfaceInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # const _ExtendedGDBusPropertyInfo *info; 1130s # guint prop_id; 1130s # GValue orig_value; /* the value before the change */ 1130s # } ChangedProperty; 1130s # 1130s # static void 1130s # _changed_property_free (ChangedProperty *data) 1130s # { 1130s # g_value_unset (&data->orig_value); 1130s # g_free (data); 1130s # } 1130s # 1130s # static gboolean 1130s # _g_strv_equal0 (gchar **a, gchar **b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # guint n; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # if (g_strv_length (a) != g_strv_length (b)) 1130s # goto out; 1130s # for (n = 0; a[n] != NULL; n++) 1130s # if (g_strcmp0 (a[n], b[n]) != 0) 1130s # goto out; 1130s # ret = TRUE; 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _g_variant_equal0 (GVariant *a, GVariant *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # ret = g_variant_equal (a, b); 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # G_GNUC_UNUSED static gboolean 1130s # _g_value_equal (const GValue *a, const GValue *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1130s # switch (G_VALUE_TYPE (a)) 1130s # { 1130s # case G_TYPE_BOOLEAN: 1130s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1130s # break; 1130s # case G_TYPE_UCHAR: 1130s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1130s # break; 1130s # case G_TYPE_INT: 1130s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1130s # break; 1130s # case G_TYPE_UINT: 1130s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1130s # break; 1130s # case G_TYPE_INT64: 1130s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1130s # break; 1130s # case G_TYPE_UINT64: 1130s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1130s # break; 1130s # case G_TYPE_DOUBLE: 1130s # { 1130s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1130s # gdouble da = g_value_get_double (a); 1130s # gdouble db = g_value_get_double (b); 1130s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1130s # } 1130s # break; 1130s # case G_TYPE_STRING: 1130s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1130s # break; 1130s # case G_TYPE_VARIANT: 1130s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1130s # break; 1130s # default: 1130s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1130s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1130s # else 1130s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1130s # break; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.SignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectSignalingIface 1130s # * @title: OrgProjectSignalingIface 1130s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "arg_b", 1130s # (gchar *) "b", 1130s # NULL 1130s # }, 1130s # FALSE 1130s # }; 1130s # 1130s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_arg_b.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_b = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SingleArgSignalB", 1130s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_b_ARG_pointers, 1130s # NULL 1130s # }, 1130s # "single-arg-signal-b" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_b.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.SignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_b ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__BOOLEAN (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1130s # * @single_arg_signal_b: Handler for the #OrgProjectSignalingIface::single-arg-signal-b signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface::single-arg-signal-b: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_b: Argument. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalB" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B] = 1130s # g_signal_new ("single-arg-signal-b", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_b), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_b, 1130s # G_TYPE_NONE, 1130s # 1, G_TYPE_BOOLEAN); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_single_arg_signal_b: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_b: Argument to pass with the signal. 1130s # * 1130s # * Emits the "SingleArgSignalB" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_single_arg_signal_b ( 1130s # OrgProjectSignalingIface *object, 1130s # gboolean arg_arg_b) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_B], 0, arg_arg_b); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_proxy_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1130s # g_datalist_clear (&proxy->priv->qdata); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # const GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1130s # const gchar *sender_name G_GNUC_UNUSED, 1130s # const gchar *signal_name, 1130s # GVariant *parameters) 1130s # { 1130s # _ExtendedGDBusSignalInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # gsize n; 1130s # guint signal_id; 1130s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1130s # if (info == NULL) 1130s # return; 1130s # num_params = g_variant_n_children (parameters); 1130s # paramv = g_new0 (GValue, num_params + 1); 1130s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[0], proxy); 1130s # g_variant_iter_init (&iter, parameters); 1130s # n = 1; 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_signal_emitv (paramv, signal_id, 0, NULL); 1130s # for (n = 0; n < num_params + 1; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1130s # GVariant *changed_properties, 1130s # const gchar *const *invalidated_properties) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1130s # guint n; 1130s # const gchar *key; 1130s # GVariantIter *iter; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # g_variant_get (changed_properties, "a{sv}", &iter); 1130s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1130s # g_datalist_remove_data (&proxy->priv->qdata, key); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # g_variant_iter_free (iter); 1130s # for (n = 0; invalidated_properties[n] != NULL; n++) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1130s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1130s # #else 1130s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1130s # #endif 1130s # 1130s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusProxyClass *proxy_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1130s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1130s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1130s # 1130s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1130s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1130s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_sync: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_sync ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new_for_bus ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeleton: 1130s # * 1130s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeletonClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1130s # { 1130s # GValue *properties; 1130s # GList *changed_properties; 1130s # GSource *changed_properties_idle_source; 1130s # GMainContext *context; 1130s # GMutex lock; 1130s # }; 1130s # 1130s # static void 1130s # _org_project_signaling_iface_skeleton_handle_method_call ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name, 1130s # const gchar *method_name, 1130s # GVariant *parameters, 1130s # GDBusMethodInvocation *invocation, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # _ExtendedGDBusMethodInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # guint num_extra; 1130s # gsize n; 1130s # guint signal_id; 1130s # GValue return_value = G_VALUE_INIT; 1130s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1130s # g_assert (info != NULL); 1130s # num_params = g_variant_n_children (parameters); 1130s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1130s # n = 0; 1130s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[n++], skeleton); 1130s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1130s # g_value_set_object (¶mv[n++], invocation); 1130s # if (info->pass_fdlist) 1130s # { 1130s # #ifdef G_OS_UNIX 1130s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1130s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1130s # #else 1130s # g_assert_not_reached (); 1130s # #endif 1130s # } 1130s # g_variant_iter_init (&iter, parameters); 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1130s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1130s # if (!g_value_get_boolean (&return_value)) 1130s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1130s # g_value_unset (&return_value); 1130s # for (n = 0; n < num_params + num_extra; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static GVariant * 1130s # _org_project_signaling_iface_skeleton_handle_get_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_single_arg_signal_b ( 1130s # OrgProjectSignalingIface *object, 1130s # gboolean arg_arg_b) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("(b)", 1130s # arg_arg_b)); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalB", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1130s # iface->single_arg_signal_b = _org_project_signaling_iface_on_signal_single_arg_signal_b; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # Error: 1130s # 1130s # /tmp/tmp7tgphinq/tmp3jcc7_hy.xml: 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmp3jcc7_hy.xml', '--output', '-', '--body'] 1130s # Return code: 0 1130s # Output: 1130s # /* 1130s # * This file is generated by gdbus-codegen, do not modify it. 1130s # * 1130s # * The license of this code is the same as for the D-Bus interface description 1130s # * it was derived from. Note that it links to GLib, so must comply with the 1130s # * LGPL linking clauses. 1130s # */ 1130s # 1130s # #ifdef HAVE_CONFIG_H 1130s # # include "config.h" 1130s # #endif 1130s # 1130s # #include 1130s # #ifdef G_OS_UNIX 1130s # # include 1130s # #endif 1130s # 1130s # #ifdef G_ENABLE_DEBUG 1130s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1130s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1130s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1130s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1130s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1130s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1130s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1130s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1130s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1130s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1130s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1130s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1130s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1130s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1130s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1130s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1130s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1130s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1130s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1130s # #else /* !G_ENABLE_DEBUG */ 1130s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1130s # * Do not access GValues directly in your code. Instead, use the 1130s # * g_value_get_*() functions 1130s # */ 1130s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1130s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1130s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1130s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1130s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1130s # #endif /* !G_ENABLE_DEBUG */ 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusArgInfo parent_struct; 1130s # gboolean use_gvariant; 1130s # } _ExtendedGDBusArgInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusMethodInfo parent_struct; 1130s # const gchar *signal_name; 1130s # gboolean pass_fdlist; 1130s # } _ExtendedGDBusMethodInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusSignalInfo parent_struct; 1130s # const gchar *signal_name; 1130s # } _ExtendedGDBusSignalInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusPropertyInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # guint use_gvariant : 1; 1130s # guint emits_changed_signal : 1; 1130s # } _ExtendedGDBusPropertyInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusInterfaceInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # } _ExtendedGDBusInterfaceInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # const _ExtendedGDBusPropertyInfo *info; 1130s # guint prop_id; 1130s # GValue orig_value; /* the value before the change */ 1130s # } ChangedProperty; 1130s # 1130s # static void 1130s # _changed_property_free (ChangedProperty *data) 1130s # { 1130s # g_value_unset (&data->orig_value); 1130s # g_free (data); 1130s # } 1130s # 1130s # static gboolean 1130s # _g_strv_equal0 (gchar **a, gchar **b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # guint n; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # if (g_strv_length (a) != g_strv_length (b)) 1130s # goto out; 1130s # for (n = 0; a[n] != NULL; n++) 1130s # if (g_strcmp0 (a[n], b[n]) != 0) 1130s # goto out; 1130s # ret = TRUE; 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _g_variant_equal0 (GVariant *a, GVariant *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # ret = g_variant_equal (a, b); 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # G_GNUC_UNUSED static gboolean 1130s # _g_value_equal (const GValue *a, const GValue *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1130s # switch (G_VALUE_TYPE (a)) 1130s # { 1130s # case G_TYPE_BOOLEAN: 1130s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1130s # break; 1130s # case G_TYPE_UCHAR: 1130s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1130s # break; 1130s # case G_TYPE_INT: 1130s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1130s # break; 1130s # case G_TYPE_UINT: 1130s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1130s # break; 1130s # case G_TYPE_INT64: 1130s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1130s # break; 1130s # case G_TYPE_UINT64: 1130s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1130s # break; 1130s # case G_TYPE_DOUBLE: 1130s # { 1130s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1130s # gdouble da = g_value_get_double (a); 1130s # gdouble db = g_value_get_double (b); 1130s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1130s # } 1130s # break; 1130s # case G_TYPE_STRING: 1130s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1130s # break; 1130s # case G_TYPE_VARIANT: 1130s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1130s # break; 1130s # default: 1130s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1130s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1130s # else 1130s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1130s # break; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.SignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectSignalingIface 1130s # * @title: OrgProjectSignalingIface 1130s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "arg_y", 1130s # (gchar *) "y", 1130s # NULL 1130s # }, 1130s # FALSE 1130s # }; 1130s # 1130s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_arg_y.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_y = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SingleArgSignalY", 1130s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_y_ARG_pointers, 1130s # NULL 1130s # }, 1130s # "single-arg-signal-y" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_y.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.SignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_y ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__UCHAR (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1130s # * @single_arg_signal_y: Handler for the #OrgProjectSignalingIface::single-arg-signal-y signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface::single-arg-signal-y: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_y: Argument. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalY" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y] = 1130s # g_signal_new ("single-arg-signal-y", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_y), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_y, 1130s # G_TYPE_NONE, 1130s # 1, G_TYPE_UCHAR); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_single_arg_signal_y: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_y: Argument to pass with the signal. 1130s # * 1130s # * Emits the "SingleArgSignalY" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_single_arg_signal_y ( 1130s # OrgProjectSignalingIface *object, 1130s # guchar arg_arg_y) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Y], 0, arg_arg_y); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_proxy_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1130s # g_datalist_clear (&proxy->priv->qdata); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # const GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1130s # const gchar *sender_name G_GNUC_UNUSED, 1130s # const gchar *signal_name, 1130s # GVariant *parameters) 1130s # { 1130s # _ExtendedGDBusSignalInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # gsize n; 1130s # guint signal_id; 1130s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1130s # if (info == NULL) 1130s # return; 1130s # num_params = g_variant_n_children (parameters); 1130s # paramv = g_new0 (GValue, num_params + 1); 1130s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[0], proxy); 1130s # g_variant_iter_init (&iter, parameters); 1130s # n = 1; 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_signal_emitv (paramv, signal_id, 0, NULL); 1130s # for (n = 0; n < num_params + 1; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1130s # GVariant *changed_properties, 1130s # const gchar *const *invalidated_properties) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1130s # guint n; 1130s # const gchar *key; 1130s # GVariantIter *iter; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # g_variant_get (changed_properties, "a{sv}", &iter); 1130s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1130s # g_datalist_remove_data (&proxy->priv->qdata, key); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # g_variant_iter_free (iter); 1130s # for (n = 0; invalidated_properties[n] != NULL; n++) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1130s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1130s # #else 1130s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1130s # #endif 1130s # 1130s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusProxyClass *proxy_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1130s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1130s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1130s # 1130s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1130s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1130s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_sync: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_sync ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new_for_bus ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeleton: 1130s # * 1130s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeletonClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1130s # { 1130s # GValue *properties; 1130s # GList *changed_properties; 1130s # GSource *changed_properties_idle_source; 1130s # GMainContext *context; 1130s # GMutex lock; 1130s # }; 1130s # 1130s # static void 1130s # _org_project_signaling_iface_skeleton_handle_method_call ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name, 1130s # const gchar *method_name, 1130s # GVariant *parameters, 1130s # GDBusMethodInvocation *invocation, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # _ExtendedGDBusMethodInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # guint num_extra; 1130s # gsize n; 1130s # guint signal_id; 1130s # GValue return_value = G_VALUE_INIT; 1130s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1130s # g_assert (info != NULL); 1130s # num_params = g_variant_n_children (parameters); 1130s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1130s # n = 0; 1130s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[n++], skeleton); 1130s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1130s # g_value_set_object (¶mv[n++], invocation); 1130s # if (info->pass_fdlist) 1130s # { 1130s # #ifdef G_OS_UNIX 1130s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1130s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1130s # #else 1130s # g_assert_not_reached (); 1130s # #endif 1130s # } 1130s # g_variant_iter_init (&iter, parameters); 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1130s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1130s # if (!g_value_get_boolean (&return_value)) 1130s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1130s # g_value_unset (&return_value); 1130s # for (n = 0; n < num_params + num_extra; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static GVariant * 1130s # _org_project_signaling_iface_skeleton_handle_get_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_single_arg_signal_y ( 1130s # OrgProjectSignalingIface *object, 1130s # guchar arg_arg_y) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("(y)", 1130s # arg_arg_y)); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalY", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1130s # iface->single_arg_signal_y = _org_project_signaling_iface_on_signal_single_arg_signal_y; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # Error: 1130s # 1130s # /tmp/tmp7tgphinq/tmp81lnfw2r.xml: 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmp81lnfw2r.xml', '--output', '-', '--body'] 1130s # Return code: 0 1130s # Output: 1130s # /* 1130s # * This file is generated by gdbus-codegen, do not modify it. 1130s # * 1130s # * The license of this code is the same as for the D-Bus interface description 1130s # * it was derived from. Note that it links to GLib, so must comply with the 1130s # * LGPL linking clauses. 1130s # */ 1130s # 1130s # #ifdef HAVE_CONFIG_H 1130s # # include "config.h" 1130s # #endif 1130s # 1130s # #include 1130s # #ifdef G_OS_UNIX 1130s # # include 1130s # #endif 1130s # 1130s # #ifdef G_ENABLE_DEBUG 1130s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1130s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1130s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1130s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1130s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1130s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1130s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1130s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1130s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1130s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1130s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1130s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1130s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1130s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1130s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1130s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1130s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1130s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1130s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1130s # #else /* !G_ENABLE_DEBUG */ 1130s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1130s # * Do not access GValues directly in your code. Instead, use the 1130s # * g_value_get_*() functions 1130s # */ 1130s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1130s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1130s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1130s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1130s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1130s # #endif /* !G_ENABLE_DEBUG */ 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusArgInfo parent_struct; 1130s # gboolean use_gvariant; 1130s # } _ExtendedGDBusArgInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusMethodInfo parent_struct; 1130s # const gchar *signal_name; 1130s # gboolean pass_fdlist; 1130s # } _ExtendedGDBusMethodInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusSignalInfo parent_struct; 1130s # const gchar *signal_name; 1130s # } _ExtendedGDBusSignalInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusPropertyInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # guint use_gvariant : 1; 1130s # guint emits_changed_signal : 1; 1130s # } _ExtendedGDBusPropertyInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusInterfaceInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # } _ExtendedGDBusInterfaceInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # const _ExtendedGDBusPropertyInfo *info; 1130s # guint prop_id; 1130s # GValue orig_value; /* the value before the change */ 1130s # } ChangedProperty; 1130s # 1130s # static void 1130s # _changed_property_free (ChangedProperty *data) 1130s # { 1130s # g_value_unset (&data->orig_value); 1130s # g_free (data); 1130s # } 1130s # 1130s # static gboolean 1130s # _g_strv_equal0 (gchar **a, gchar **b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # guint n; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # if (g_strv_length (a) != g_strv_length (b)) 1130s # goto out; 1130s # for (n = 0; a[n] != NULL; n++) 1130s # if (g_strcmp0 (a[n], b[n]) != 0) 1130s # goto out; 1130s # ret = TRUE; 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _g_variant_equal0 (GVariant *a, GVariant *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # ret = g_variant_equal (a, b); 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # G_GNUC_UNUSED static gboolean 1130s # _g_value_equal (const GValue *a, const GValue *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1130s # switch (G_VALUE_TYPE (a)) 1130s # { 1130s # case G_TYPE_BOOLEAN: 1130s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1130s # break; 1130s # case G_TYPE_UCHAR: 1130s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1130s # break; 1130s # case G_TYPE_INT: 1130s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1130s # break; 1130s # case G_TYPE_UINT: 1130s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1130s # break; 1130s # case G_TYPE_INT64: 1130s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1130s # break; 1130s # case G_TYPE_UINT64: 1130s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1130s # break; 1130s # case G_TYPE_DOUBLE: 1130s # { 1130s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1130s # gdouble da = g_value_get_double (a); 1130s # gdouble db = g_value_get_double (b); 1130s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1130s # } 1130s # break; 1130s # case G_TYPE_STRING: 1130s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1130s # break; 1130s # case G_TYPE_VARIANT: 1130s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1130s # break; 1130s # default: 1130s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1130s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1130s # else 1130s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1130s # break; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.SignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectSignalingIface 1130s # * @title: OrgProjectSignalingIface 1130s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "arg_n", 1130s # (gchar *) "n", 1130s # NULL 1130s # }, 1130s # FALSE 1130s # }; 1130s # 1130s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_arg_n.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_n = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SingleArgSignalN", 1130s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_n_ARG_pointers, 1130s # NULL 1130s # }, 1130s # "single-arg-signal-n" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_n.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.SignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_n ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__INT (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1130s # * @single_arg_signal_n: Handler for the #OrgProjectSignalingIface::single-arg-signal-n signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface::single-arg-signal-n: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_n: Argument. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalN" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N] = 1130s # g_signal_new ("single-arg-signal-n", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_n), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_n, 1130s # G_TYPE_NONE, 1130s # 1, G_TYPE_INT); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_single_arg_signal_n: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_n: Argument to pass with the signal. 1130s # * 1130s # * Emits the "SingleArgSignalN" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_single_arg_signal_n ( 1130s # OrgProjectSignalingIface *object, 1130s # gint16 arg_arg_n) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_N], 0, arg_arg_n); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_proxy_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1130s # g_datalist_clear (&proxy->priv->qdata); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # const GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1130s # const gchar *sender_name G_GNUC_UNUSED, 1130s # const gchar *signal_name, 1130s # GVariant *parameters) 1130s # { 1130s # _ExtendedGDBusSignalInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # gsize n; 1130s # guint signal_id; 1130s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1130s # if (info == NULL) 1130s # return; 1130s # num_params = g_variant_n_children (parameters); 1130s # paramv = g_new0 (GValue, num_params + 1); 1130s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[0], proxy); 1130s # g_variant_iter_init (&iter, parameters); 1130s # n = 1; 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_signal_emitv (paramv, signal_id, 0, NULL); 1130s # for (n = 0; n < num_params + 1; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1130s # GVariant *changed_properties, 1130s # const gchar *const *invalidated_properties) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1130s # guint n; 1130s # const gchar *key; 1130s # GVariantIter *iter; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # g_variant_get (changed_properties, "a{sv}", &iter); 1130s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1130s # g_datalist_remove_data (&proxy->priv->qdata, key); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # g_variant_iter_free (iter); 1130s # for (n = 0; invalidated_properties[n] != NULL; n++) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1130s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1130s # #else 1130s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1130s # #endif 1130s # 1130s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusProxyClass *proxy_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1130s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1130s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1130s # 1130s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1130s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1130s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_sync: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_sync ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new_for_bus ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeleton: 1130s # * 1130s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeletonClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1130s # { 1130s # GValue *properties; 1130s # GList *changed_properties; 1130s # GSource *changed_properties_idle_source; 1130s # GMainContext *context; 1130s # GMutex lock; 1130s # }; 1130s # 1130s # static void 1130s # _org_project_signaling_iface_skeleton_handle_method_call ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name, 1130s # const gchar *method_name, 1130s # GVariant *parameters, 1130s # GDBusMethodInvocation *invocation, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # _ExtendedGDBusMethodInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # guint num_extra; 1130s # gsize n; 1130s # guint signal_id; 1130s # GValue return_value = G_VALUE_INIT; 1130s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1130s # g_assert (info != NULL); 1130s # num_params = g_variant_n_children (parameters); 1130s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1130s # n = 0; 1130s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[n++], skeleton); 1130s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1130s # g_value_set_object (¶mv[n++], invocation); 1130s # if (info->pass_fdlist) 1130s # { 1130s # #ifdef G_OS_UNIX 1130s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1130s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1130s # #else 1130s # g_assert_not_reached (); 1130s # #endif 1130s # } 1130s # g_variant_iter_init (&iter, parameters); 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1130s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1130s # if (!g_value_get_boolean (&return_value)) 1130s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1130s # g_value_unset (&return_value); 1130s # for (n = 0; n < num_params + num_extra; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static GVariant * 1130s # _org_project_signaling_iface_skeleton_handle_get_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_single_arg_signal_n ( 1130s # OrgProjectSignalingIface *object, 1130s # gint16 arg_arg_n) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("(n)", 1130s # arg_arg_n)); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalN", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1130s # iface->single_arg_signal_n = _org_project_signaling_iface_on_signal_single_arg_signal_n; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # Error: 1130s # 1130s # /tmp/tmp7tgphinq/tmpazcx5oqj.xml: 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmpazcx5oqj.xml', '--output', '-', '--body'] 1130s # Return code: 0 1130s # Output: 1130s # /* 1130s # * This file is generated by gdbus-codegen, do not modify it. 1130s # * 1130s # * The license of this code is the same as for the D-Bus interface description 1130s # * it was derived from. Note that it links to GLib, so must comply with the 1130s # * LGPL linking clauses. 1130s # */ 1130s # 1130s # #ifdef HAVE_CONFIG_H 1130s # # include "config.h" 1130s # #endif 1130s # 1130s # #include 1130s # #ifdef G_OS_UNIX 1130s # # include 1130s # #endif 1130s # 1130s # #ifdef G_ENABLE_DEBUG 1130s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1130s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1130s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1130s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1130s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1130s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1130s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1130s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1130s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1130s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1130s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1130s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1130s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1130s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1130s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1130s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1130s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1130s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1130s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1130s # #else /* !G_ENABLE_DEBUG */ 1130s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1130s # * Do not access GValues directly in your code. Instead, use the 1130s # * g_value_get_*() functions 1130s # */ 1130s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1130s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1130s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1130s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1130s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1130s # #endif /* !G_ENABLE_DEBUG */ 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusArgInfo parent_struct; 1130s # gboolean use_gvariant; 1130s # } _ExtendedGDBusArgInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusMethodInfo parent_struct; 1130s # const gchar *signal_name; 1130s # gboolean pass_fdlist; 1130s # } _ExtendedGDBusMethodInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusSignalInfo parent_struct; 1130s # const gchar *signal_name; 1130s # } _ExtendedGDBusSignalInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusPropertyInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # guint use_gvariant : 1; 1130s # guint emits_changed_signal : 1; 1130s # } _ExtendedGDBusPropertyInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusInterfaceInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # } _ExtendedGDBusInterfaceInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # const _ExtendedGDBusPropertyInfo *info; 1130s # guint prop_id; 1130s # GValue orig_value; /* the value before the change */ 1130s # } ChangedProperty; 1130s # 1130s # static void 1130s # _changed_property_free (ChangedProperty *data) 1130s # { 1130s # g_value_unset (&data->orig_value); 1130s # g_free (data); 1130s # } 1130s # 1130s # static gboolean 1130s # _g_strv_equal0 (gchar **a, gchar **b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # guint n; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # if (g_strv_length (a) != g_strv_length (b)) 1130s # goto out; 1130s # for (n = 0; a[n] != NULL; n++) 1130s # if (g_strcmp0 (a[n], b[n]) != 0) 1130s # goto out; 1130s # ret = TRUE; 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _g_variant_equal0 (GVariant *a, GVariant *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # ret = g_variant_equal (a, b); 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # G_GNUC_UNUSED static gboolean 1130s # _g_value_equal (const GValue *a, const GValue *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1130s # switch (G_VALUE_TYPE (a)) 1130s # { 1130s # case G_TYPE_BOOLEAN: 1130s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1130s # break; 1130s # case G_TYPE_UCHAR: 1130s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1130s # break; 1130s # case G_TYPE_INT: 1130s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1130s # break; 1130s # case G_TYPE_UINT: 1130s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1130s # break; 1130s # case G_TYPE_INT64: 1130s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1130s # break; 1130s # case G_TYPE_UINT64: 1130s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1130s # break; 1130s # case G_TYPE_DOUBLE: 1130s # { 1130s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1130s # gdouble da = g_value_get_double (a); 1130s # gdouble db = g_value_get_double (b); 1130s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1130s # } 1130s # break; 1130s # case G_TYPE_STRING: 1130s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1130s # break; 1130s # case G_TYPE_VARIANT: 1130s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1130s # break; 1130s # default: 1130s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1130s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1130s # else 1130s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1130s # break; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.SignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectSignalingIface 1130s # * @title: OrgProjectSignalingIface 1130s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "arg_q", 1130s # (gchar *) "q", 1130s # NULL 1130s # }, 1130s # FALSE 1130s # }; 1130s # 1130s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_arg_q.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_q = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SingleArgSignalQ", 1130s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_q_ARG_pointers, 1130s # NULL 1130s # }, 1130s # "single-arg-signal-q" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_q.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.SignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_q ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__UINT (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1130s # * @single_arg_signal_q: Handler for the #OrgProjectSignalingIface::single-arg-signal-q signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface::single-arg-signal-q: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_q: Argument. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalQ" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q] = 1130s # g_signal_new ("single-arg-signal-q", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_q), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_q, 1130s # G_TYPE_NONE, 1130s # 1, G_TYPE_UINT); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_single_arg_signal_q: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_q: Argument to pass with the signal. 1130s # * 1130s # * Emits the "SingleArgSignalQ" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_single_arg_signal_q ( 1130s # OrgProjectSignalingIface *object, 1130s # guint16 arg_arg_q) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_Q], 0, arg_arg_q); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_proxy_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1130s # g_datalist_clear (&proxy->priv->qdata); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # const GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1130s # const gchar *sender_name G_GNUC_UNUSED, 1130s # const gchar *signal_name, 1130s # GVariant *parameters) 1130s # { 1130s # _ExtendedGDBusSignalInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # gsize n; 1130s # guint signal_id; 1130s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1130s # if (info == NULL) 1130s # return; 1130s # num_params = g_variant_n_children (parameters); 1130s # paramv = g_new0 (GValue, num_params + 1); 1130s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[0], proxy); 1130s # g_variant_iter_init (&iter, parameters); 1130s # n = 1; 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_signal_emitv (paramv, signal_id, 0, NULL); 1130s # for (n = 0; n < num_params + 1; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1130s # GVariant *changed_properties, 1130s # const gchar *const *invalidated_properties) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1130s # guint n; 1130s # const gchar *key; 1130s # GVariantIter *iter; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # g_variant_get (changed_properties, "a{sv}", &iter); 1130s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1130s # g_datalist_remove_data (&proxy->priv->qdata, key); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # g_variant_iter_free (iter); 1130s # for (n = 0; invalidated_properties[n] != NULL; n++) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1130s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1130s # #else 1130s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1130s # #endif 1130s # 1130s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusProxyClass *proxy_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1130s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1130s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1130s # 1130s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1130s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1130s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_sync: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_sync ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new_for_bus ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeleton: 1130s # * 1130s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeletonClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1130s # { 1130s # GValue *properties; 1130s # GList *changed_properties; 1130s # GSource *changed_properties_idle_source; 1130s # GMainContext *context; 1130s # GMutex lock; 1130s # }; 1130s # 1130s # static void 1130s # _org_project_signaling_iface_skeleton_handle_method_call ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name, 1130s # const gchar *method_name, 1130s # GVariant *parameters, 1130s # GDBusMethodInvocation *invocation, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # _ExtendedGDBusMethodInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # guint num_extra; 1130s # gsize n; 1130s # guint signal_id; 1130s # GValue return_value = G_VALUE_INIT; 1130s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1130s # g_assert (info != NULL); 1130s # num_params = g_variant_n_children (parameters); 1130s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1130s # n = 0; 1130s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[n++], skeleton); 1130s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1130s # g_value_set_object (¶mv[n++], invocation); 1130s # if (info->pass_fdlist) 1130s # { 1130s # #ifdef G_OS_UNIX 1130s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1130s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1130s # #else 1130s # g_assert_not_reached (); 1130s # #endif 1130s # } 1130s # g_variant_iter_init (&iter, parameters); 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1130s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1130s # if (!g_value_get_boolean (&return_value)) 1130s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1130s # g_value_unset (&return_value); 1130s # for (n = 0; n < num_params + num_extra; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static GVariant * 1130s # _org_project_signaling_iface_skeleton_handle_get_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_single_arg_signal_q ( 1130s # OrgProjectSignalingIface *object, 1130s # guint16 arg_arg_q) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("(q)", 1130s # arg_arg_q)); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalQ", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1130s # iface->single_arg_signal_q = _org_project_signaling_iface_on_signal_single_arg_signal_q; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # Error: 1130s # 1130s # /tmp/tmp7tgphinq/tmpwgr2cveh.xml: 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmpwgr2cveh.xml', '--output', '-', '--body'] 1130s # Return code: 0 1130s # Output: 1130s # /* 1130s # * This file is generated by gdbus-codegen, do not modify it. 1130s # * 1130s # * The license of this code is the same as for the D-Bus interface description 1130s # * it was derived from. Note that it links to GLib, so must comply with the 1130s # * LGPL linking clauses. 1130s # */ 1130s # 1130s # #ifdef HAVE_CONFIG_H 1130s # # include "config.h" 1130s # #endif 1130s # 1130s # #include 1130s # #ifdef G_OS_UNIX 1130s # # include 1130s # #endif 1130s # 1130s # #ifdef G_ENABLE_DEBUG 1130s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1130s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1130s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1130s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1130s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1130s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1130s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1130s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1130s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1130s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1130s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1130s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1130s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1130s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1130s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1130s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1130s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1130s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1130s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1130s # #else /* !G_ENABLE_DEBUG */ 1130s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1130s # * Do not access GValues directly in your code. Instead, use the 1130s # * g_value_get_*() functions 1130s # */ 1130s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1130s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1130s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1130s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1130s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1130s # #endif /* !G_ENABLE_DEBUG */ 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusArgInfo parent_struct; 1130s # gboolean use_gvariant; 1130s # } _ExtendedGDBusArgInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusMethodInfo parent_struct; 1130s # const gchar *signal_name; 1130s # gboolean pass_fdlist; 1130s # } _ExtendedGDBusMethodInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusSignalInfo parent_struct; 1130s # const gchar *signal_name; 1130s # } _ExtendedGDBusSignalInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusPropertyInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # guint use_gvariant : 1; 1130s # guint emits_changed_signal : 1; 1130s # } _ExtendedGDBusPropertyInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusInterfaceInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # } _ExtendedGDBusInterfaceInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # const _ExtendedGDBusPropertyInfo *info; 1130s # guint prop_id; 1130s # GValue orig_value; /* the value before the change */ 1130s # } ChangedProperty; 1130s # 1130s # static void 1130s # _changed_property_free (ChangedProperty *data) 1130s # { 1130s # g_value_unset (&data->orig_value); 1130s # g_free (data); 1130s # } 1130s # 1130s # static gboolean 1130s # _g_strv_equal0 (gchar **a, gchar **b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # guint n; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # if (g_strv_length (a) != g_strv_length (b)) 1130s # goto out; 1130s # for (n = 0; a[n] != NULL; n++) 1130s # if (g_strcmp0 (a[n], b[n]) != 0) 1130s # goto out; 1130s # ret = TRUE; 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _g_variant_equal0 (GVariant *a, GVariant *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # ret = g_variant_equal (a, b); 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # G_GNUC_UNUSED static gboolean 1130s # _g_value_equal (const GValue *a, const GValue *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1130s # switch (G_VALUE_TYPE (a)) 1130s # { 1130s # case G_TYPE_BOOLEAN: 1130s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1130s # break; 1130s # case G_TYPE_UCHAR: 1130s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1130s # break; 1130s # case G_TYPE_INT: 1130s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1130s # break; 1130s # case G_TYPE_UINT: 1130s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1130s # break; 1130s # case G_TYPE_INT64: 1130s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1130s # break; 1130s # case G_TYPE_UINT64: 1130s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1130s # break; 1130s # case G_TYPE_DOUBLE: 1130s # { 1130s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1130s # gdouble da = g_value_get_double (a); 1130s # gdouble db = g_value_get_double (b); 1130s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1130s # } 1130s # break; 1130s # case G_TYPE_STRING: 1130s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1130s # break; 1130s # case G_TYPE_VARIANT: 1130s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1130s # break; 1130s # default: 1130s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1130s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1130s # else 1130s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1130s # break; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.SignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectSignalingIface 1130s # * @title: OrgProjectSignalingIface 1130s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "arg_i", 1130s # (gchar *) "i", 1130s # NULL 1130s # }, 1130s # FALSE 1130s # }; 1130s # 1130s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_arg_i.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_i = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SingleArgSignalI", 1130s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_i_ARG_pointers, 1130s # NULL 1130s # }, 1130s # "single-arg-signal-i" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_i.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.SignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_i ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__INT (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1130s # * @single_arg_signal_i: Handler for the #OrgProjectSignalingIface::single-arg-signal-i signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface::single-arg-signal-i: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_i: Argument. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalI" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I] = 1130s # g_signal_new ("single-arg-signal-i", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_i), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_i, 1130s # G_TYPE_NONE, 1130s # 1, G_TYPE_INT); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_single_arg_signal_i: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_i: Argument to pass with the signal. 1130s # * 1130s # * Emits the "SingleArgSignalI" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_single_arg_signal_i ( 1130s # OrgProjectSignalingIface *object, 1130s # gint arg_arg_i) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_I], 0, arg_arg_i); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_proxy_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1130s # g_datalist_clear (&proxy->priv->qdata); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # const GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1130s # const gchar *sender_name G_GNUC_UNUSED, 1130s # const gchar *signal_name, 1130s # GVariant *parameters) 1130s # { 1130s # _ExtendedGDBusSignalInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # gsize n; 1130s # guint signal_id; 1130s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1130s # if (info == NULL) 1130s # return; 1130s # num_params = g_variant_n_children (parameters); 1130s # paramv = g_new0 (GValue, num_params + 1); 1130s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[0], proxy); 1130s # g_variant_iter_init (&iter, parameters); 1130s # n = 1; 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_signal_emitv (paramv, signal_id, 0, NULL); 1130s # for (n = 0; n < num_params + 1; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1130s # GVariant *changed_properties, 1130s # const gchar *const *invalidated_properties) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1130s # guint n; 1130s # const gchar *key; 1130s # GVariantIter *iter; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # g_variant_get (changed_properties, "a{sv}", &iter); 1130s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1130s # g_datalist_remove_data (&proxy->priv->qdata, key); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # g_variant_iter_free (iter); 1130s # for (n = 0; invalidated_properties[n] != NULL; n++) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1130s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1130s # #else 1130s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1130s # #endif 1130s # 1130s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusProxyClass *proxy_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1130s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1130s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1130s # 1130s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1130s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1130s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_sync: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_sync ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new_for_bus ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeleton: 1130s # * 1130s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeletonClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1130s # { 1130s # GValue *properties; 1130s # GList *changed_properties; 1130s # GSource *changed_properties_idle_source; 1130s # GMainContext *context; 1130s # GMutex lock; 1130s # }; 1130s # 1130s # static void 1130s # _org_project_signaling_iface_skeleton_handle_method_call ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name, 1130s # const gchar *method_name, 1130s # GVariant *parameters, 1130s # GDBusMethodInvocation *invocation, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # _ExtendedGDBusMethodInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # guint num_extra; 1130s # gsize n; 1130s # guint signal_id; 1130s # GValue return_value = G_VALUE_INIT; 1130s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1130s # g_assert (info != NULL); 1130s # num_params = g_variant_n_children (parameters); 1130s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1130s # n = 0; 1130s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[n++], skeleton); 1130s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1130s # g_value_set_object (¶mv[n++], invocation); 1130s # if (info->pass_fdlist) 1130s # { 1130s # #ifdef G_OS_UNIX 1130s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1130s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1130s # #else 1130s # g_assert_not_reached (); 1130s # #endif 1130s # } 1130s # g_variant_iter_init (&iter, parameters); 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1130s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1130s # if (!g_value_get_boolean (&return_value)) 1130s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1130s # g_value_unset (&return_value); 1130s # for (n = 0; n < num_params + num_extra; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static GVariant * 1130s # _org_project_signaling_iface_skeleton_handle_get_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_single_arg_signal_i ( 1130s # OrgProjectSignalingIface *object, 1130s # gint arg_arg_i) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("(i)", 1130s # arg_arg_i)); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalI", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1130s # iface->single_arg_signal_i = _org_project_signaling_iface_on_signal_single_arg_signal_i; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # Error: 1130s # 1130s # /tmp/tmp7tgphinq/tmpv8t0xcd0.xml: 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmpv8t0xcd0.xml', '--output', '-', '--body'] 1130s # Return code: 0 1130s # Output: 1130s # /* 1130s # * This file is generated by gdbus-codegen, do not modify it. 1130s # * 1130s # * The license of this code is the same as for the D-Bus interface description 1130s # * it was derived from. Note that it links to GLib, so must comply with the 1130s # * LGPL linking clauses. 1130s # */ 1130s # 1130s # #ifdef HAVE_CONFIG_H 1130s # # include "config.h" 1130s # #endif 1130s # 1130s # #include 1130s # #ifdef G_OS_UNIX 1130s # # include 1130s # #endif 1130s # 1130s # #ifdef G_ENABLE_DEBUG 1130s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1130s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1130s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1130s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1130s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1130s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1130s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1130s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1130s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1130s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1130s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1130s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1130s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1130s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1130s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1130s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1130s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1130s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1130s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1130s # #else /* !G_ENABLE_DEBUG */ 1130s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1130s # * Do not access GValues directly in your code. Instead, use the 1130s # * g_value_get_*() functions 1130s # */ 1130s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1130s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1130s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1130s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1130s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1130s # #endif /* !G_ENABLE_DEBUG */ 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusArgInfo parent_struct; 1130s # gboolean use_gvariant; 1130s # } _ExtendedGDBusArgInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusMethodInfo parent_struct; 1130s # const gchar *signal_name; 1130s # gboolean pass_fdlist; 1130s # } _ExtendedGDBusMethodInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusSignalInfo parent_struct; 1130s # const gchar *signal_name; 1130s # } _ExtendedGDBusSignalInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusPropertyInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # guint use_gvariant : 1; 1130s # guint emits_changed_signal : 1; 1130s # } _ExtendedGDBusPropertyInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusInterfaceInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # } _ExtendedGDBusInterfaceInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # const _ExtendedGDBusPropertyInfo *info; 1130s # guint prop_id; 1130s # GValue orig_value; /* the value before the change */ 1130s # } ChangedProperty; 1130s # 1130s # static void 1130s # _changed_property_free (ChangedProperty *data) 1130s # { 1130s # g_value_unset (&data->orig_value); 1130s # g_free (data); 1130s # } 1130s # 1130s # static gboolean 1130s # _g_strv_equal0 (gchar **a, gchar **b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # guint n; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # if (g_strv_length (a) != g_strv_length (b)) 1130s # goto out; 1130s # for (n = 0; a[n] != NULL; n++) 1130s # if (g_strcmp0 (a[n], b[n]) != 0) 1130s # goto out; 1130s # ret = TRUE; 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _g_variant_equal0 (GVariant *a, GVariant *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # ret = g_variant_equal (a, b); 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # G_GNUC_UNUSED static gboolean 1130s # _g_value_equal (const GValue *a, const GValue *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1130s # switch (G_VALUE_TYPE (a)) 1130s # { 1130s # case G_TYPE_BOOLEAN: 1130s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1130s # break; 1130s # case G_TYPE_UCHAR: 1130s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1130s # break; 1130s # case G_TYPE_INT: 1130s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1130s # break; 1130s # case G_TYPE_UINT: 1130s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1130s # break; 1130s # case G_TYPE_INT64: 1130s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1130s # break; 1130s # case G_TYPE_UINT64: 1130s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1130s # break; 1130s # case G_TYPE_DOUBLE: 1130s # { 1130s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1130s # gdouble da = g_value_get_double (a); 1130s # gdouble db = g_value_get_double (b); 1130s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1130s # } 1130s # break; 1130s # case G_TYPE_STRING: 1130s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1130s # break; 1130s # case G_TYPE_VARIANT: 1130s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1130s # break; 1130s # default: 1130s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1130s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1130s # else 1130s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1130s # break; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.SignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectSignalingIface 1130s # * @title: OrgProjectSignalingIface 1130s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "arg_u", 1130s # (gchar *) "u", 1130s # NULL 1130s # }, 1130s # FALSE 1130s # }; 1130s # 1130s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_arg_u.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_u = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SingleArgSignalU", 1130s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_u_ARG_pointers, 1130s # NULL 1130s # }, 1130s # "single-arg-signal-u" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_u.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.SignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_u ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__UINT (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1130s # * @single_arg_signal_u: Handler for the #OrgProjectSignalingIface::single-arg-signal-u signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface::single-arg-signal-u: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_u: Argument. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalU" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U] = 1130s # g_signal_new ("single-arg-signal-u", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_u), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_u, 1130s # G_TYPE_NONE, 1130s # 1, G_TYPE_UINT); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_single_arg_signal_u: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_u: Argument to pass with the signal. 1130s # * 1130s # * Emits the "SingleArgSignalU" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_single_arg_signal_u ( 1130s # OrgProjectSignalingIface *object, 1130s # guint arg_arg_u) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_U], 0, arg_arg_u); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_proxy_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1130s # g_datalist_clear (&proxy->priv->qdata); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # const GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1130s # const gchar *sender_name G_GNUC_UNUSED, 1130s # const gchar *signal_name, 1130s # GVariant *parameters) 1130s # { 1130s # _ExtendedGDBusSignalInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # gsize n; 1130s # guint signal_id; 1130s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1130s # if (info == NULL) 1130s # return; 1130s # num_params = g_variant_n_children (parameters); 1130s # paramv = g_new0 (GValue, num_params + 1); 1130s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[0], proxy); 1130s # g_variant_iter_init (&iter, parameters); 1130s # n = 1; 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_signal_emitv (paramv, signal_id, 0, NULL); 1130s # for (n = 0; n < num_params + 1; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1130s # GVariant *changed_properties, 1130s # const gchar *const *invalidated_properties) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1130s # guint n; 1130s # const gchar *key; 1130s # GVariantIter *iter; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # g_variant_get (changed_properties, "a{sv}", &iter); 1130s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1130s # g_datalist_remove_data (&proxy->priv->qdata, key); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # g_variant_iter_free (iter); 1130s # for (n = 0; invalidated_properties[n] != NULL; n++) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1130s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1130s # #else 1130s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1130s # #endif 1130s # 1130s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusProxyClass *proxy_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1130s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1130s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1130s # 1130s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1130s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1130s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_sync: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_sync ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new_for_bus ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeleton: 1130s # * 1130s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeletonClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1130s # { 1130s # GValue *properties; 1130s # GList *changed_properties; 1130s # GSource *changed_properties_idle_source; 1130s # GMainContext *context; 1130s # GMutex lock; 1130s # }; 1130s # 1130s # static void 1130s # _org_project_signaling_iface_skeleton_handle_method_call ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name, 1130s # const gchar *method_name, 1130s # GVariant *parameters, 1130s # GDBusMethodInvocation *invocation, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # _ExtendedGDBusMethodInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # guint num_extra; 1130s # gsize n; 1130s # guint signal_id; 1130s # GValue return_value = G_VALUE_INIT; 1130s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1130s # g_assert (info != NULL); 1130s # num_params = g_variant_n_children (parameters); 1130s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1130s # n = 0; 1130s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[n++], skeleton); 1130s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1130s # g_value_set_object (¶mv[n++], invocation); 1130s # if (info->pass_fdlist) 1130s # { 1130s # #ifdef G_OS_UNIX 1130s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1130s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1130s # #else 1130s # g_assert_not_reached (); 1130s # #endif 1130s # } 1130s # g_variant_iter_init (&iter, parameters); 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1130s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1130s # if (!g_value_get_boolean (&return_value)) 1130s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1130s # g_value_unset (&return_value); 1130s # for (n = 0; n < num_params + num_extra; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static GVariant * 1130s # _org_project_signaling_iface_skeleton_handle_get_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_single_arg_signal_u ( 1130s # OrgProjectSignalingIface *object, 1130s # guint arg_arg_u) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("(u)", 1130s # arg_arg_u)); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalU", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1130s # iface->single_arg_signal_u = _org_project_signaling_iface_on_signal_single_arg_signal_u; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # Error: 1130s # 1130s # /tmp/tmp7tgphinq/tmp4doaagov.xml: 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmp4doaagov.xml', '--output', '-', '--body'] 1130s # Return code: 0 1130s # Output: 1130s # /* 1130s # * This file is generated by gdbus-codegen, do not modify it. 1130s # * 1130s # * The license of this code is the same as for the D-Bus interface description 1130s # * it was derived from. Note that it links to GLib, so must comply with the 1130s # * LGPL linking clauses. 1130s # */ 1130s # 1130s # #ifdef HAVE_CONFIG_H 1130s # # include "config.h" 1130s # #endif 1130s # 1130s # #include 1130s # #ifdef G_OS_UNIX 1130s # # include 1130s # #endif 1130s # 1130s # #ifdef G_ENABLE_DEBUG 1130s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1130s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1130s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1130s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1130s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1130s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1130s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1130s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1130s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1130s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1130s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1130s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1130s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1130s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1130s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1130s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1130s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1130s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1130s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1130s # #else /* !G_ENABLE_DEBUG */ 1130s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1130s # * Do not access GValues directly in your code. Instead, use the 1130s # * g_value_get_*() functions 1130s # */ 1130s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1130s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1130s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1130s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1130s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1130s # #endif /* !G_ENABLE_DEBUG */ 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusArgInfo parent_struct; 1130s # gboolean use_gvariant; 1130s # } _ExtendedGDBusArgInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusMethodInfo parent_struct; 1130s # const gchar *signal_name; 1130s # gboolean pass_fdlist; 1130s # } _ExtendedGDBusMethodInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusSignalInfo parent_struct; 1130s # const gchar *signal_name; 1130s # } _ExtendedGDBusSignalInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusPropertyInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # guint use_gvariant : 1; 1130s # guint emits_changed_signal : 1; 1130s # } _ExtendedGDBusPropertyInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusInterfaceInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # } _ExtendedGDBusInterfaceInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # const _ExtendedGDBusPropertyInfo *info; 1130s # guint prop_id; 1130s # GValue orig_value; /* the value before the change */ 1130s # } ChangedProperty; 1130s # 1130s # static void 1130s # _changed_property_free (ChangedProperty *data) 1130s # { 1130s # g_value_unset (&data->orig_value); 1130s # g_free (data); 1130s # } 1130s # 1130s # static gboolean 1130s # _g_strv_equal0 (gchar **a, gchar **b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # guint n; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # if (g_strv_length (a) != g_strv_length (b)) 1130s # goto out; 1130s # for (n = 0; a[n] != NULL; n++) 1130s # if (g_strcmp0 (a[n], b[n]) != 0) 1130s # goto out; 1130s # ret = TRUE; 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _g_variant_equal0 (GVariant *a, GVariant *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # ret = g_variant_equal (a, b); 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # G_GNUC_UNUSED static gboolean 1130s # _g_value_equal (const GValue *a, const GValue *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1130s # switch (G_VALUE_TYPE (a)) 1130s # { 1130s # case G_TYPE_BOOLEAN: 1130s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1130s # break; 1130s # case G_TYPE_UCHAR: 1130s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1130s # break; 1130s # case G_TYPE_INT: 1130s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1130s # break; 1130s # case G_TYPE_UINT: 1130s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1130s # break; 1130s # case G_TYPE_INT64: 1130s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1130s # break; 1130s # case G_TYPE_UINT64: 1130s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1130s # break; 1130s # case G_TYPE_DOUBLE: 1130s # { 1130s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1130s # gdouble da = g_value_get_double (a); 1130s # gdouble db = g_value_get_double (b); 1130s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1130s # } 1130s # break; 1130s # case G_TYPE_STRING: 1130s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1130s # break; 1130s # case G_TYPE_VARIANT: 1130s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1130s # break; 1130s # default: 1130s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1130s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1130s # else 1130s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1130s # break; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static void 1130s # _g_dbus_codegen_marshal_VOID__INT64 ( 1130s # GClosure *closure, 1130s # GValue *return_value G_GNUC_UNUSED, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint G_GNUC_UNUSED, 1130s # void *marshal_data) 1130s # { 1130s # typedef void (*_GDbusCodegenMarshalVoid_Int64Func) 1130s # (void *data1, 1130s # gint64 arg_arg_x, 1130s # void *data2); 1130s # _GDbusCodegenMarshalVoid_Int64Func callback; 1130s # GCClosure *cc = (GCClosure*) closure; 1130s # void *data1, *data2; 1130s # 1130s # g_return_if_fail (n_param_values == 2); 1130s # 1130s # if (G_CCLOSURE_SWAP_DATA (closure)) 1130s # { 1130s # data1 = closure->data; 1130s # data2 = g_value_peek_pointer (param_values + 0); 1130s # } 1130s # else 1130s # { 1130s # data1 = g_value_peek_pointer (param_values + 0); 1130s # data2 = closure->data; 1130s # } 1130s # 1130s # callback = (_GDbusCodegenMarshalVoid_Int64Func) 1130s # (marshal_data ? marshal_data : cc->callback); 1130s # 1130s # callback (data1, 1130s # g_marshal_value_peek_int64 (param_values + 1), 1130s # data2); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.SignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectSignalingIface 1130s # * @title: OrgProjectSignalingIface 1130s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "arg_x", 1130s # (gchar *) "x", 1130s # NULL 1130s # }, 1130s # FALSE 1130s # }; 1130s # 1130s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_arg_x.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_x = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SingleArgSignalX", 1130s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_x_ARG_pointers, 1130s # NULL 1130s # }, 1130s # "single-arg-signal-x" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_x.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.SignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_x ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # _g_dbus_codegen_marshal_VOID__INT64 (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1130s # * @single_arg_signal_x: Handler for the #OrgProjectSignalingIface::single-arg-signal-x signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface::single-arg-signal-x: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_x: Argument. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalX" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X] = 1130s # g_signal_new ("single-arg-signal-x", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_x), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_x, 1130s # G_TYPE_NONE, 1130s # 1, G_TYPE_INT64); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_single_arg_signal_x: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_x: Argument to pass with the signal. 1130s # * 1130s # * Emits the "SingleArgSignalX" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_single_arg_signal_x ( 1130s # OrgProjectSignalingIface *object, 1130s # gint64 arg_arg_x) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_X], 0, arg_arg_x); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_proxy_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1130s # g_datalist_clear (&proxy->priv->qdata); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # const GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1130s # const gchar *sender_name G_GNUC_UNUSED, 1130s # const gchar *signal_name, 1130s # GVariant *parameters) 1130s # { 1130s # _ExtendedGDBusSignalInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # gsize n; 1130s # guint signal_id; 1130s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1130s # if (info == NULL) 1130s # return; 1130s # num_params = g_variant_n_children (parameters); 1130s # paramv = g_new0 (GValue, num_params + 1); 1130s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[0], proxy); 1130s # g_variant_iter_init (&iter, parameters); 1130s # n = 1; 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_signal_emitv (paramv, signal_id, 0, NULL); 1130s # for (n = 0; n < num_params + 1; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1130s # GVariant *changed_properties, 1130s # const gchar *const *invalidated_properties) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1130s # guint n; 1130s # const gchar *key; 1130s # GVariantIter *iter; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # g_variant_get (changed_properties, "a{sv}", &iter); 1130s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1130s # g_datalist_remove_data (&proxy->priv->qdata, key); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # g_variant_iter_free (iter); 1130s # for (n = 0; invalidated_properties[n] != NULL; n++) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1130s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1130s # #else 1130s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1130s # #endif 1130s # 1130s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusProxyClass *proxy_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1130s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1130s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1130s # 1130s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1130s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1130s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_sync: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_sync ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new_for_bus ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeleton: 1130s # * 1130s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeletonClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1130s # { 1130s # GValue *properties; 1130s # GList *changed_properties; 1130s # GSource *changed_properties_idle_source; 1130s # GMainContext *context; 1130s # GMutex lock; 1130s # }; 1130s # 1130s # static void 1130s # _org_project_signaling_iface_skeleton_handle_method_call ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name, 1130s # const gchar *method_name, 1130s # GVariant *parameters, 1130s # GDBusMethodInvocation *invocation, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # _ExtendedGDBusMethodInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # guint num_extra; 1130s # gsize n; 1130s # guint signal_id; 1130s # GValue return_value = G_VALUE_INIT; 1130s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1130s # g_assert (info != NULL); 1130s # num_params = g_variant_n_children (parameters); 1130s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1130s # n = 0; 1130s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[n++], skeleton); 1130s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1130s # g_value_set_object (¶mv[n++], invocation); 1130s # if (info->pass_fdlist) 1130s # { 1130s # #ifdef G_OS_UNIX 1130s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1130s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1130s # #else 1130s # g_assert_not_reached (); 1130s # #endif 1130s # } 1130s # g_variant_iter_init (&iter, parameters); 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1130s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1130s # if (!g_value_get_boolean (&return_value)) 1130s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1130s # g_value_unset (&return_value); 1130s # for (n = 0; n < num_params + num_extra; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static GVariant * 1130s # _org_project_signaling_iface_skeleton_handle_get_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_single_arg_signal_x ( 1130s # OrgProjectSignalingIface *object, 1130s # gint64 arg_arg_x) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("(x)", 1130s # arg_arg_x)); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalX", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1130s # iface->single_arg_signal_x = _org_project_signaling_iface_on_signal_single_arg_signal_x; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # Error: 1130s # 1130s # /tmp/tmp7tgphinq/tmp861e43v3.xml: 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmp861e43v3.xml', '--output', '-', '--body'] 1130s # Return code: 0 1130s # Output: 1130s # /* 1130s # * This file is generated by gdbus-codegen, do not modify it. 1130s # * 1130s # * The license of this code is the same as for the D-Bus interface description 1130s # * it was derived from. Note that it links to GLib, so must comply with the 1130s # * LGPL linking clauses. 1130s # */ 1130s # 1130s # #ifdef HAVE_CONFIG_H 1130s # # include "config.h" 1130s # #endif 1130s # 1130s # #include 1130s # #ifdef G_OS_UNIX 1130s # # include 1130s # #endif 1130s # 1130s # #ifdef G_ENABLE_DEBUG 1130s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1130s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1130s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1130s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1130s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1130s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1130s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1130s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1130s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1130s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1130s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1130s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1130s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1130s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1130s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1130s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1130s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1130s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1130s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1130s # #else /* !G_ENABLE_DEBUG */ 1130s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1130s # * Do not access GValues directly in your code. Instead, use the 1130s # * g_value_get_*() functions 1130s # */ 1130s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1130s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1130s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1130s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1130s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1130s # #endif /* !G_ENABLE_DEBUG */ 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusArgInfo parent_struct; 1130s # gboolean use_gvariant; 1130s # } _ExtendedGDBusArgInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusMethodInfo parent_struct; 1130s # const gchar *signal_name; 1130s # gboolean pass_fdlist; 1130s # } _ExtendedGDBusMethodInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusSignalInfo parent_struct; 1130s # const gchar *signal_name; 1130s # } _ExtendedGDBusSignalInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusPropertyInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # guint use_gvariant : 1; 1130s # guint emits_changed_signal : 1; 1130s # } _ExtendedGDBusPropertyInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusInterfaceInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # } _ExtendedGDBusInterfaceInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # const _ExtendedGDBusPropertyInfo *info; 1130s # guint prop_id; 1130s # GValue orig_value; /* the value before the change */ 1130s # } ChangedProperty; 1130s # 1130s # static void 1130s # _changed_property_free (ChangedProperty *data) 1130s # { 1130s # g_value_unset (&data->orig_value); 1130s # g_free (data); 1130s # } 1130s # 1130s # static gboolean 1130s # _g_strv_equal0 (gchar **a, gchar **b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # guint n; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # if (g_strv_length (a) != g_strv_length (b)) 1130s # goto out; 1130s # for (n = 0; a[n] != NULL; n++) 1130s # if (g_strcmp0 (a[n], b[n]) != 0) 1130s # goto out; 1130s # ret = TRUE; 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _g_variant_equal0 (GVariant *a, GVariant *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # ret = g_variant_equal (a, b); 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # G_GNUC_UNUSED static gboolean 1130s # _g_value_equal (const GValue *a, const GValue *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1130s # switch (G_VALUE_TYPE (a)) 1130s # { 1130s # case G_TYPE_BOOLEAN: 1130s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1130s # break; 1130s # case G_TYPE_UCHAR: 1130s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1130s # break; 1130s # case G_TYPE_INT: 1130s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1130s # break; 1130s # case G_TYPE_UINT: 1130s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1130s # break; 1130s # case G_TYPE_INT64: 1130s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1130s # break; 1130s # case G_TYPE_UINT64: 1130s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1130s # break; 1130s # case G_TYPE_DOUBLE: 1130s # { 1130s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1130s # gdouble da = g_value_get_double (a); 1130s # gdouble db = g_value_get_double (b); 1130s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1130s # } 1130s # break; 1130s # case G_TYPE_STRING: 1130s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1130s # break; 1130s # case G_TYPE_VARIANT: 1130s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1130s # break; 1130s # default: 1130s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1130s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1130s # else 1130s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1130s # break; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static void 1130s # _g_dbus_codegen_marshal_VOID__UINT64 ( 1130s # GClosure *closure, 1130s # GValue *return_value G_GNUC_UNUSED, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint G_GNUC_UNUSED, 1130s # void *marshal_data) 1130s # { 1130s # typedef void (*_GDbusCodegenMarshalVoid_Uint64Func) 1130s # (void *data1, 1130s # guint64 arg_arg_t, 1130s # void *data2); 1130s # _GDbusCodegenMarshalVoid_Uint64Func callback; 1130s # GCClosure *cc = (GCClosure*) closure; 1130s # void *data1, *data2; 1130s # 1130s # g_return_if_fail (n_param_values == 2); 1130s # 1130s # if (G_CCLOSURE_SWAP_DATA (closure)) 1130s # { 1130s # data1 = closure->data; 1130s # data2 = g_value_peek_pointer (param_values + 0); 1130s # } 1130s # else 1130s # { 1130s # data1 = g_value_peek_pointer (param_values + 0); 1130s # data2 = closure->data; 1130s # } 1130s # 1130s # callback = (_GDbusCodegenMarshalVoid_Uint64Func) 1130s # (marshal_data ? marshal_data : cc->callback); 1130s # 1130s # callback (data1, 1130s # g_marshal_value_peek_uint64 (param_values + 1), 1130s # data2); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.SignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectSignalingIface 1130s # * @title: OrgProjectSignalingIface 1130s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "arg_t", 1130s # (gchar *) "t", 1130s # NULL 1130s # }, 1130s # FALSE 1130s # }; 1130s # 1130s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_arg_t.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_t = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SingleArgSignalT", 1130s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_t_ARG_pointers, 1130s # NULL 1130s # }, 1130s # "single-arg-signal-t" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_t.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.SignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_t ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # _g_dbus_codegen_marshal_VOID__UINT64 (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1130s # * @single_arg_signal_t: Handler for the #OrgProjectSignalingIface::single-arg-signal-t signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface::single-arg-signal-t: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_t: Argument. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalT" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T] = 1130s # g_signal_new ("single-arg-signal-t", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_t), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_t, 1130s # G_TYPE_NONE, 1130s # 1, G_TYPE_UINT64); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_single_arg_signal_t: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_t: Argument to pass with the signal. 1130s # * 1130s # * Emits the "SingleArgSignalT" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_single_arg_signal_t ( 1130s # OrgProjectSignalingIface *object, 1130s # guint64 arg_arg_t) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_T], 0, arg_arg_t); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_proxy_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1130s # g_datalist_clear (&proxy->priv->qdata); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # const GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1130s # const gchar *sender_name G_GNUC_UNUSED, 1130s # const gchar *signal_name, 1130s # GVariant *parameters) 1130s # { 1130s # _ExtendedGDBusSignalInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # gsize n; 1130s # guint signal_id; 1130s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1130s # if (info == NULL) 1130s # return; 1130s # num_params = g_variant_n_children (parameters); 1130s # paramv = g_new0 (GValue, num_params + 1); 1130s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[0], proxy); 1130s # g_variant_iter_init (&iter, parameters); 1130s # n = 1; 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_signal_emitv (paramv, signal_id, 0, NULL); 1130s # for (n = 0; n < num_params + 1; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1130s # GVariant *changed_properties, 1130s # const gchar *const *invalidated_properties) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1130s # guint n; 1130s # const gchar *key; 1130s # GVariantIter *iter; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # g_variant_get (changed_properties, "a{sv}", &iter); 1130s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1130s # g_datalist_remove_data (&proxy->priv->qdata, key); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # g_variant_iter_free (iter); 1130s # for (n = 0; invalidated_properties[n] != NULL; n++) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1130s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1130s # #else 1130s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1130s # #endif 1130s # 1130s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusProxyClass *proxy_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1130s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1130s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1130s # 1130s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1130s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1130s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_sync: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_sync ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new_for_bus ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeleton: 1130s # * 1130s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeletonClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1130s # { 1130s # GValue *properties; 1130s # GList *changed_properties; 1130s # GSource *changed_properties_idle_source; 1130s # GMainContext *context; 1130s # GMutex lock; 1130s # }; 1130s # 1130s # static void 1130s # _org_project_signaling_iface_skeleton_handle_method_call ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name, 1130s # const gchar *method_name, 1130s # GVariant *parameters, 1130s # GDBusMethodInvocation *invocation, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # _ExtendedGDBusMethodInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # guint num_extra; 1130s # gsize n; 1130s # guint signal_id; 1130s # GValue return_value = G_VALUE_INIT; 1130s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1130s # g_assert (info != NULL); 1130s # num_params = g_variant_n_children (parameters); 1130s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1130s # n = 0; 1130s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[n++], skeleton); 1130s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1130s # g_value_set_object (¶mv[n++], invocation); 1130s # if (info->pass_fdlist) 1130s # { 1130s # #ifdef G_OS_UNIX 1130s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1130s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1130s # #else 1130s # g_assert_not_reached (); 1130s # #endif 1130s # } 1130s # g_variant_iter_init (&iter, parameters); 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1130s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1130s # if (!g_value_get_boolean (&return_value)) 1130s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1130s # g_value_unset (&return_value); 1130s # for (n = 0; n < num_params + num_extra; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static GVariant * 1130s # _org_project_signaling_iface_skeleton_handle_get_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_single_arg_signal_t ( 1130s # OrgProjectSignalingIface *object, 1130s # guint64 arg_arg_t) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("(t)", 1130s # arg_arg_t)); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalT", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1130s # iface->single_arg_signal_t = _org_project_signaling_iface_on_signal_single_arg_signal_t; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # Error: 1130s # 1130s # /tmp/tmp7tgphinq/tmprgq16top.xml: 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmprgq16top.xml', '--output', '-', '--body'] 1130s # Return code: 0 1130s # Output: 1130s # /* 1130s # * This file is generated by gdbus-codegen, do not modify it. 1130s # * 1130s # * The license of this code is the same as for the D-Bus interface description 1130s # * it was derived from. Note that it links to GLib, so must comply with the 1130s # * LGPL linking clauses. 1130s # */ 1130s # 1130s # #ifdef HAVE_CONFIG_H 1130s # # include "config.h" 1130s # #endif 1130s # 1130s # #include 1130s # #ifdef G_OS_UNIX 1130s # # include 1130s # #endif 1130s # 1130s # #ifdef G_ENABLE_DEBUG 1130s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1130s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1130s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1130s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1130s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1130s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1130s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1130s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1130s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1130s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1130s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1130s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1130s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1130s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1130s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1130s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1130s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1130s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1130s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1130s # #else /* !G_ENABLE_DEBUG */ 1130s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1130s # * Do not access GValues directly in your code. Instead, use the 1130s # * g_value_get_*() functions 1130s # */ 1130s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1130s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1130s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1130s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1130s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1130s # #endif /* !G_ENABLE_DEBUG */ 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusArgInfo parent_struct; 1130s # gboolean use_gvariant; 1130s # } _ExtendedGDBusArgInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusMethodInfo parent_struct; 1130s # const gchar *signal_name; 1130s # gboolean pass_fdlist; 1130s # } _ExtendedGDBusMethodInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusSignalInfo parent_struct; 1130s # const gchar *signal_name; 1130s # } _ExtendedGDBusSignalInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusPropertyInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # guint use_gvariant : 1; 1130s # guint emits_changed_signal : 1; 1130s # } _ExtendedGDBusPropertyInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusInterfaceInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # } _ExtendedGDBusInterfaceInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # const _ExtendedGDBusPropertyInfo *info; 1130s # guint prop_id; 1130s # GValue orig_value; /* the value before the change */ 1130s # } ChangedProperty; 1130s # 1130s # static void 1130s # _changed_property_free (ChangedProperty *data) 1130s # { 1130s # g_value_unset (&data->orig_value); 1130s # g_free (data); 1130s # } 1130s # 1130s # static gboolean 1130s # _g_strv_equal0 (gchar **a, gchar **b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # guint n; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # if (g_strv_length (a) != g_strv_length (b)) 1130s # goto out; 1130s # for (n = 0; a[n] != NULL; n++) 1130s # if (g_strcmp0 (a[n], b[n]) != 0) 1130s # goto out; 1130s # ret = TRUE; 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _g_variant_equal0 (GVariant *a, GVariant *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # ret = g_variant_equal (a, b); 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # G_GNUC_UNUSED static gboolean 1130s # _g_value_equal (const GValue *a, const GValue *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1130s # switch (G_VALUE_TYPE (a)) 1130s # { 1130s # case G_TYPE_BOOLEAN: 1130s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1130s # break; 1130s # case G_TYPE_UCHAR: 1130s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1130s # break; 1130s # case G_TYPE_INT: 1130s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1130s # break; 1130s # case G_TYPE_UINT: 1130s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1130s # break; 1130s # case G_TYPE_INT64: 1130s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1130s # break; 1130s # case G_TYPE_UINT64: 1130s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1130s # break; 1130s # case G_TYPE_DOUBLE: 1130s # { 1130s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1130s # gdouble da = g_value_get_double (a); 1130s # gdouble db = g_value_get_double (b); 1130s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1130s # } 1130s # break; 1130s # case G_TYPE_STRING: 1130s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1130s # break; 1130s # case G_TYPE_VARIANT: 1130s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1130s # break; 1130s # default: 1130s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1130s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1130s # else 1130s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1130s # break; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.SignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectSignalingIface 1130s # * @title: OrgProjectSignalingIface 1130s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "arg_d", 1130s # (gchar *) "d", 1130s # NULL 1130s # }, 1130s # FALSE 1130s # }; 1130s # 1130s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_arg_d.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_d = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SingleArgSignalD", 1130s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_d_ARG_pointers, 1130s # NULL 1130s # }, 1130s # "single-arg-signal-d" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_d.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.SignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_d ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__DOUBLE (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1130s # * @single_arg_signal_d: Handler for the #OrgProjectSignalingIface::single-arg-signal-d signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface::single-arg-signal-d: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_d: Argument. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalD" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D] = 1130s # g_signal_new ("single-arg-signal-d", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_d), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_d, 1130s # G_TYPE_NONE, 1130s # 1, G_TYPE_DOUBLE); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_single_arg_signal_d: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_d: Argument to pass with the signal. 1130s # * 1130s # * Emits the "SingleArgSignalD" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_single_arg_signal_d ( 1130s # OrgProjectSignalingIface *object, 1130s # gdouble arg_arg_d) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_D], 0, arg_arg_d); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_proxy_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1130s # g_datalist_clear (&proxy->priv->qdata); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # const GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1130s # const gchar *sender_name G_GNUC_UNUSED, 1130s # const gchar *signal_name, 1130s # GVariant *parameters) 1130s # { 1130s # _ExtendedGDBusSignalInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # gsize n; 1130s # guint signal_id; 1130s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1130s # if (info == NULL) 1130s # return; 1130s # num_params = g_variant_n_children (parameters); 1130s # paramv = g_new0 (GValue, num_params + 1); 1130s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[0], proxy); 1130s # g_variant_iter_init (&iter, parameters); 1130s # n = 1; 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_signal_emitv (paramv, signal_id, 0, NULL); 1130s # for (n = 0; n < num_params + 1; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1130s # GVariant *changed_properties, 1130s # const gchar *const *invalidated_properties) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1130s # guint n; 1130s # const gchar *key; 1130s # GVariantIter *iter; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # g_variant_get (changed_properties, "a{sv}", &iter); 1130s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1130s # g_datalist_remove_data (&proxy->priv->qdata, key); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # g_variant_iter_free (iter); 1130s # for (n = 0; invalidated_properties[n] != NULL; n++) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1130s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1130s # #else 1130s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1130s # #endif 1130s # 1130s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusProxyClass *proxy_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1130s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1130s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1130s # 1130s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1130s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1130s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_sync: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_sync ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new_for_bus ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeleton: 1130s # * 1130s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeletonClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1130s # { 1130s # GValue *properties; 1130s # GList *changed_properties; 1130s # GSource *changed_properties_idle_source; 1130s # GMainContext *context; 1130s # GMutex lock; 1130s # }; 1130s # 1130s # static void 1130s # _org_project_signaling_iface_skeleton_handle_method_call ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name, 1130s # const gchar *method_name, 1130s # GVariant *parameters, 1130s # GDBusMethodInvocation *invocation, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # _ExtendedGDBusMethodInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # guint num_extra; 1130s # gsize n; 1130s # guint signal_id; 1130s # GValue return_value = G_VALUE_INIT; 1130s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1130s # g_assert (info != NULL); 1130s # num_params = g_variant_n_children (parameters); 1130s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1130s # n = 0; 1130s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[n++], skeleton); 1130s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1130s # g_value_set_object (¶mv[n++], invocation); 1130s # if (info->pass_fdlist) 1130s # { 1130s # #ifdef G_OS_UNIX 1130s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1130s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1130s # #else 1130s # g_assert_not_reached (); 1130s # #endif 1130s # } 1130s # g_variant_iter_init (&iter, parameters); 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1130s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1130s # if (!g_value_get_boolean (&return_value)) 1130s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1130s # g_value_unset (&return_value); 1130s # for (n = 0; n < num_params + num_extra; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static GVariant * 1130s # _org_project_signaling_iface_skeleton_handle_get_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_single_arg_signal_d ( 1130s # OrgProjectSignalingIface *object, 1130s # gdouble arg_arg_d) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("(d)", 1130s # arg_arg_d)); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalD", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1130s # iface->single_arg_signal_d = _org_project_signaling_iface_on_signal_single_arg_signal_d; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # Error: 1130s # 1130s # /tmp/tmp7tgphinq/tmph4zzvkl6.xml: 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmph4zzvkl6.xml', '--output', '-', '--body'] 1130s # Return code: 0 1130s # Output: 1130s # /* 1130s # * This file is generated by gdbus-codegen, do not modify it. 1130s # * 1130s # * The license of this code is the same as for the D-Bus interface description 1130s # * it was derived from. Note that it links to GLib, so must comply with the 1130s # * LGPL linking clauses. 1130s # */ 1130s # 1130s # #ifdef HAVE_CONFIG_H 1130s # # include "config.h" 1130s # #endif 1130s # 1130s # #include 1130s # #ifdef G_OS_UNIX 1130s # # include 1130s # #endif 1130s # 1130s # #ifdef G_ENABLE_DEBUG 1130s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1130s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1130s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1130s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1130s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1130s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1130s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1130s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1130s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1130s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1130s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1130s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1130s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1130s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1130s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1130s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1130s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1130s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1130s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1130s # #else /* !G_ENABLE_DEBUG */ 1130s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1130s # * Do not access GValues directly in your code. Instead, use the 1130s # * g_value_get_*() functions 1130s # */ 1130s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1130s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1130s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1130s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1130s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1130s # #endif /* !G_ENABLE_DEBUG */ 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusArgInfo parent_struct; 1130s # gboolean use_gvariant; 1130s # } _ExtendedGDBusArgInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusMethodInfo parent_struct; 1130s # const gchar *signal_name; 1130s # gboolean pass_fdlist; 1130s # } _ExtendedGDBusMethodInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusSignalInfo parent_struct; 1130s # const gchar *signal_name; 1130s # } _ExtendedGDBusSignalInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusPropertyInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # guint use_gvariant : 1; 1130s # guint emits_changed_signal : 1; 1130s # } _ExtendedGDBusPropertyInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusInterfaceInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # } _ExtendedGDBusInterfaceInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # const _ExtendedGDBusPropertyInfo *info; 1130s # guint prop_id; 1130s # GValue orig_value; /* the value before the change */ 1130s # } ChangedProperty; 1130s # 1130s # static void 1130s # _changed_property_free (ChangedProperty *data) 1130s # { 1130s # g_value_unset (&data->orig_value); 1130s # g_free (data); 1130s # } 1130s # 1130s # static gboolean 1130s # _g_strv_equal0 (gchar **a, gchar **b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # guint n; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # if (g_strv_length (a) != g_strv_length (b)) 1130s # goto out; 1130s # for (n = 0; a[n] != NULL; n++) 1130s # if (g_strcmp0 (a[n], b[n]) != 0) 1130s # goto out; 1130s # ret = TRUE; 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _g_variant_equal0 (GVariant *a, GVariant *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # ret = g_variant_equal (a, b); 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # G_GNUC_UNUSED static gboolean 1130s # _g_value_equal (const GValue *a, const GValue *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1130s # switch (G_VALUE_TYPE (a)) 1130s # { 1130s # case G_TYPE_BOOLEAN: 1130s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1130s # break; 1130s # case G_TYPE_UCHAR: 1130s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1130s # break; 1130s # case G_TYPE_INT: 1130s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1130s # break; 1130s # case G_TYPE_UINT: 1130s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1130s # break; 1130s # case G_TYPE_INT64: 1130s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1130s # break; 1130s # case G_TYPE_UINT64: 1130s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1130s # break; 1130s # case G_TYPE_DOUBLE: 1130s # { 1130s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1130s # gdouble da = g_value_get_double (a); 1130s # gdouble db = g_value_get_double (b); 1130s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1130s # } 1130s # break; 1130s # case G_TYPE_STRING: 1130s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1130s # break; 1130s # case G_TYPE_VARIANT: 1130s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1130s # break; 1130s # default: 1130s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1130s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1130s # else 1130s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1130s # break; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.SignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectSignalingIface 1130s # * @title: OrgProjectSignalingIface 1130s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "arg_s", 1130s # (gchar *) "s", 1130s # NULL 1130s # }, 1130s # FALSE 1130s # }; 1130s # 1130s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_arg_s.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_s = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SingleArgSignalS", 1130s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_s_ARG_pointers, 1130s # NULL 1130s # }, 1130s # "single-arg-signal-s" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_s.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.SignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_s ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__STRING (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1130s # * @single_arg_signal_s: Handler for the #OrgProjectSignalingIface::single-arg-signal-s signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface::single-arg-signal-s: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_s: Argument. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalS" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S] = 1130s # g_signal_new ("single-arg-signal-s", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_s), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_s, 1130s # G_TYPE_NONE, 1130s # 1, G_TYPE_STRING); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_single_arg_signal_s: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_s: Argument to pass with the signal. 1130s # * 1130s # * Emits the "SingleArgSignalS" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_single_arg_signal_s ( 1130s # OrgProjectSignalingIface *object, 1130s # const gchar *arg_arg_s) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_S], 0, arg_arg_s); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_proxy_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1130s # g_datalist_clear (&proxy->priv->qdata); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # const GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1130s # const gchar *sender_name G_GNUC_UNUSED, 1130s # const gchar *signal_name, 1130s # GVariant *parameters) 1130s # { 1130s # _ExtendedGDBusSignalInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # gsize n; 1130s # guint signal_id; 1130s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1130s # if (info == NULL) 1130s # return; 1130s # num_params = g_variant_n_children (parameters); 1130s # paramv = g_new0 (GValue, num_params + 1); 1130s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[0], proxy); 1130s # g_variant_iter_init (&iter, parameters); 1130s # n = 1; 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_signal_emitv (paramv, signal_id, 0, NULL); 1130s # for (n = 0; n < num_params + 1; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1130s # GVariant *changed_properties, 1130s # const gchar *const *invalidated_properties) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1130s # guint n; 1130s # const gchar *key; 1130s # GVariantIter *iter; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # g_variant_get (changed_properties, "a{sv}", &iter); 1130s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1130s # g_datalist_remove_data (&proxy->priv->qdata, key); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # g_variant_iter_free (iter); 1130s # for (n = 0; invalidated_properties[n] != NULL; n++) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1130s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1130s # #else 1130s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1130s # #endif 1130s # 1130s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusProxyClass *proxy_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1130s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1130s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1130s # 1130s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1130s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1130s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_sync: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_sync ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new_for_bus ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeleton: 1130s # * 1130s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeletonClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1130s # { 1130s # GValue *properties; 1130s # GList *changed_properties; 1130s # GSource *changed_properties_idle_source; 1130s # GMainContext *context; 1130s # GMutex lock; 1130s # }; 1130s # 1130s # static void 1130s # _org_project_signaling_iface_skeleton_handle_method_call ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name, 1130s # const gchar *method_name, 1130s # GVariant *parameters, 1130s # GDBusMethodInvocation *invocation, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # _ExtendedGDBusMethodInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # guint num_extra; 1130s # gsize n; 1130s # guint signal_id; 1130s # GValue return_value = G_VALUE_INIT; 1130s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1130s # g_assert (info != NULL); 1130s # num_params = g_variant_n_children (parameters); 1130s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1130s # n = 0; 1130s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[n++], skeleton); 1130s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1130s # g_value_set_object (¶mv[n++], invocation); 1130s # if (info->pass_fdlist) 1130s # { 1130s # #ifdef G_OS_UNIX 1130s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1130s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1130s # #else 1130s # g_assert_not_reached (); 1130s # #endif 1130s # } 1130s # g_variant_iter_init (&iter, parameters); 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1130s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1130s # if (!g_value_get_boolean (&return_value)) 1130s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1130s # g_value_unset (&return_value); 1130s # for (n = 0; n < num_params + num_extra; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static GVariant * 1130s # _org_project_signaling_iface_skeleton_handle_get_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_single_arg_signal_s ( 1130s # OrgProjectSignalingIface *object, 1130s # const gchar *arg_arg_s) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("(s)", 1130s # arg_arg_s)); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalS", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1130s # iface->single_arg_signal_s = _org_project_signaling_iface_on_signal_single_arg_signal_s; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # Error: 1130s # 1130s # /tmp/tmp7tgphinq/tmptq8kkmum.xml: 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmptq8kkmum.xml', '--output', '-', '--body'] 1130s # Return code: 0 1130s # Output: 1130s # /* 1130s # * This file is generated by gdbus-codegen, do not modify it. 1130s # * 1130s # * The license of this code is the same as for the D-Bus interface description 1130s # * it was derived from. Note that it links to GLib, so must comply with the 1130s # * LGPL linking clauses. 1130s # */ 1130s # 1130s # #ifdef HAVE_CONFIG_H 1130s # # include "config.h" 1130s # #endif 1130s # 1130s # #include 1130s # #ifdef G_OS_UNIX 1130s # # include 1130s # #endif 1130s # 1130s # #ifdef G_ENABLE_DEBUG 1130s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1130s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1130s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1130s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1130s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1130s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1130s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1130s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1130s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1130s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1130s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1130s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1130s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1130s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1130s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1130s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1130s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1130s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1130s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1130s # #else /* !G_ENABLE_DEBUG */ 1130s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1130s # * Do not access GValues directly in your code. Instead, use the 1130s # * g_value_get_*() functions 1130s # */ 1130s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1130s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1130s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1130s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1130s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1130s # #endif /* !G_ENABLE_DEBUG */ 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusArgInfo parent_struct; 1130s # gboolean use_gvariant; 1130s # } _ExtendedGDBusArgInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusMethodInfo parent_struct; 1130s # const gchar *signal_name; 1130s # gboolean pass_fdlist; 1130s # } _ExtendedGDBusMethodInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusSignalInfo parent_struct; 1130s # const gchar *signal_name; 1130s # } _ExtendedGDBusSignalInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusPropertyInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # guint use_gvariant : 1; 1130s # guint emits_changed_signal : 1; 1130s # } _ExtendedGDBusPropertyInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusInterfaceInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # } _ExtendedGDBusInterfaceInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # const _ExtendedGDBusPropertyInfo *info; 1130s # guint prop_id; 1130s # GValue orig_value; /* the value before the change */ 1130s # } ChangedProperty; 1130s # 1130s # static void 1130s # _changed_property_free (ChangedProperty *data) 1130s # { 1130s # g_value_unset (&data->orig_value); 1130s # g_free (data); 1130s # } 1130s # 1130s # static gboolean 1130s # _g_strv_equal0 (gchar **a, gchar **b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # guint n; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # if (g_strv_length (a) != g_strv_length (b)) 1130s # goto out; 1130s # for (n = 0; a[n] != NULL; n++) 1130s # if (g_strcmp0 (a[n], b[n]) != 0) 1130s # goto out; 1130s # ret = TRUE; 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _g_variant_equal0 (GVariant *a, GVariant *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # ret = g_variant_equal (a, b); 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # G_GNUC_UNUSED static gboolean 1130s # _g_value_equal (const GValue *a, const GValue *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1130s # switch (G_VALUE_TYPE (a)) 1130s # { 1130s # case G_TYPE_BOOLEAN: 1130s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1130s # break; 1130s # case G_TYPE_UCHAR: 1130s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1130s # break; 1130s # case G_TYPE_INT: 1130s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1130s # break; 1130s # case G_TYPE_UINT: 1130s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1130s # break; 1130s # case G_TYPE_INT64: 1130s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1130s # break; 1130s # case G_TYPE_UINT64: 1130s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1130s # break; 1130s # case G_TYPE_DOUBLE: 1130s # { 1130s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1130s # gdouble da = g_value_get_double (a); 1130s # gdouble db = g_value_get_double (b); 1130s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1130s # } 1130s # break; 1130s # case G_TYPE_STRING: 1130s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1130s # break; 1130s # case G_TYPE_VARIANT: 1130s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1130s # break; 1130s # default: 1130s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1130s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1130s # else 1130s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1130s # break; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.SignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectSignalingIface 1130s # * @title: OrgProjectSignalingIface 1130s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "arg_o", 1130s # (gchar *) "o", 1130s # NULL 1130s # }, 1130s # FALSE 1130s # }; 1130s # 1130s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_arg_o.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_o = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SingleArgSignalO", 1130s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_o_ARG_pointers, 1130s # NULL 1130s # }, 1130s # "single-arg-signal-o" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_o.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.SignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_o ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__STRING (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1130s # * @single_arg_signal_o: Handler for the #OrgProjectSignalingIface::single-arg-signal-o signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface::single-arg-signal-o: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_o: Argument. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalO" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O] = 1130s # g_signal_new ("single-arg-signal-o", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_o), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_o, 1130s # G_TYPE_NONE, 1130s # 1, G_TYPE_STRING); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_single_arg_signal_o: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_o: Argument to pass with the signal. 1130s # * 1130s # * Emits the "SingleArgSignalO" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_single_arg_signal_o ( 1130s # OrgProjectSignalingIface *object, 1130s # const gchar *arg_arg_o) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_O], 0, arg_arg_o); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_proxy_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1130s # g_datalist_clear (&proxy->priv->qdata); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # const GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1130s # const gchar *sender_name G_GNUC_UNUSED, 1130s # const gchar *signal_name, 1130s # GVariant *parameters) 1130s # { 1130s # _ExtendedGDBusSignalInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # gsize n; 1130s # guint signal_id; 1130s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1130s # if (info == NULL) 1130s # return; 1130s # num_params = g_variant_n_children (parameters); 1130s # paramv = g_new0 (GValue, num_params + 1); 1130s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[0], proxy); 1130s # g_variant_iter_init (&iter, parameters); 1130s # n = 1; 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_signal_emitv (paramv, signal_id, 0, NULL); 1130s # for (n = 0; n < num_params + 1; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1130s # GVariant *changed_properties, 1130s # const gchar *const *invalidated_properties) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1130s # guint n; 1130s # const gchar *key; 1130s # GVariantIter *iter; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # g_variant_get (changed_properties, "a{sv}", &iter); 1130s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1130s # g_datalist_remove_data (&proxy->priv->qdata, key); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # g_variant_iter_free (iter); 1130s # for (n = 0; invalidated_properties[n] != NULL; n++) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1130s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1130s # #else 1130s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1130s # #endif 1130s # 1130s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusProxyClass *proxy_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1130s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1130s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1130s # 1130s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1130s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1130s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_sync: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_sync ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new_for_bus ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeleton: 1130s # * 1130s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeletonClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1130s # { 1130s # GValue *properties; 1130s # GList *changed_properties; 1130s # GSource *changed_properties_idle_source; 1130s # GMainContext *context; 1130s # GMutex lock; 1130s # }; 1130s # 1130s # static void 1130s # _org_project_signaling_iface_skeleton_handle_method_call ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name, 1130s # const gchar *method_name, 1130s # GVariant *parameters, 1130s # GDBusMethodInvocation *invocation, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # _ExtendedGDBusMethodInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # guint num_extra; 1130s # gsize n; 1130s # guint signal_id; 1130s # GValue return_value = G_VALUE_INIT; 1130s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1130s # g_assert (info != NULL); 1130s # num_params = g_variant_n_children (parameters); 1130s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1130s # n = 0; 1130s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[n++], skeleton); 1130s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1130s # g_value_set_object (¶mv[n++], invocation); 1130s # if (info->pass_fdlist) 1130s # { 1130s # #ifdef G_OS_UNIX 1130s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1130s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1130s # #else 1130s # g_assert_not_reached (); 1130s # #endif 1130s # } 1130s # g_variant_iter_init (&iter, parameters); 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1130s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1130s # if (!g_value_get_boolean (&return_value)) 1130s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1130s # g_value_unset (&return_value); 1130s # for (n = 0; n < num_params + num_extra; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static GVariant * 1130s # _org_project_signaling_iface_skeleton_handle_get_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_single_arg_signal_o ( 1130s # OrgProjectSignalingIface *object, 1130s # const gchar *arg_arg_o) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("(o)", 1130s # arg_arg_o)); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalO", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1130s # iface->single_arg_signal_o = _org_project_signaling_iface_on_signal_single_arg_signal_o; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # Error: 1130s # 1130s # /tmp/tmp7tgphinq/tmprklb56ni.xml: 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmprklb56ni.xml', '--output', '-', '--body'] 1130s # Return code: 0 1130s # Output: 1130s # /* 1130s # * This file is generated by gdbus-codegen, do not modify it. 1130s # * 1130s # * The license of this code is the same as for the D-Bus interface description 1130s # * it was derived from. Note that it links to GLib, so must comply with the 1130s # * LGPL linking clauses. 1130s # */ 1130s # 1130s # #ifdef HAVE_CONFIG_H 1130s # # include "config.h" 1130s # #endif 1130s # 1130s # #include 1130s # #ifdef G_OS_UNIX 1130s # # include 1130s # #endif 1130s # 1130s # #ifdef G_ENABLE_DEBUG 1130s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1130s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1130s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1130s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1130s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1130s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1130s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1130s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1130s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1130s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1130s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1130s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1130s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1130s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1130s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1130s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1130s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1130s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1130s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1130s # #else /* !G_ENABLE_DEBUG */ 1130s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1130s # * Do not access GValues directly in your code. Instead, use the 1130s # * g_value_get_*() functions 1130s # */ 1130s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1130s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1130s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1130s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1130s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1130s # #endif /* !G_ENABLE_DEBUG */ 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusArgInfo parent_struct; 1130s # gboolean use_gvariant; 1130s # } _ExtendedGDBusArgInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusMethodInfo parent_struct; 1130s # const gchar *signal_name; 1130s # gboolean pass_fdlist; 1130s # } _ExtendedGDBusMethodInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusSignalInfo parent_struct; 1130s # const gchar *signal_name; 1130s # } _ExtendedGDBusSignalInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusPropertyInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # guint use_gvariant : 1; 1130s # guint emits_changed_signal : 1; 1130s # } _ExtendedGDBusPropertyInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusInterfaceInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # } _ExtendedGDBusInterfaceInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # const _ExtendedGDBusPropertyInfo *info; 1130s # guint prop_id; 1130s # GValue orig_value; /* the value before the change */ 1130s # } ChangedProperty; 1130s # 1130s # static void 1130s # _changed_property_free (ChangedProperty *data) 1130s # { 1130s # g_value_unset (&data->orig_value); 1130s # g_free (data); 1130s # } 1130s # 1130s # static gboolean 1130s # _g_strv_equal0 (gchar **a, gchar **b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # guint n; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # if (g_strv_length (a) != g_strv_length (b)) 1130s # goto out; 1130s # for (n = 0; a[n] != NULL; n++) 1130s # if (g_strcmp0 (a[n], b[n]) != 0) 1130s # goto out; 1130s # ret = TRUE; 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _g_variant_equal0 (GVariant *a, GVariant *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # ret = g_variant_equal (a, b); 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # G_GNUC_UNUSED static gboolean 1130s # _g_value_equal (const GValue *a, const GValue *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1130s # switch (G_VALUE_TYPE (a)) 1130s # { 1130s # case G_TYPE_BOOLEAN: 1130s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1130s # break; 1130s # case G_TYPE_UCHAR: 1130s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1130s # break; 1130s # case G_TYPE_INT: 1130s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1130s # break; 1130s # case G_TYPE_UINT: 1130s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1130s # break; 1130s # case G_TYPE_INT64: 1130s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1130s # break; 1130s # case G_TYPE_UINT64: 1130s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1130s # break; 1130s # case G_TYPE_DOUBLE: 1130s # { 1130s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1130s # gdouble da = g_value_get_double (a); 1130s # gdouble db = g_value_get_double (b); 1130s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1130s # } 1130s # break; 1130s # case G_TYPE_STRING: 1130s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1130s # break; 1130s # case G_TYPE_VARIANT: 1130s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1130s # break; 1130s # default: 1130s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1130s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1130s # else 1130s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1130s # break; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.SignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectSignalingIface 1130s # * @title: OrgProjectSignalingIface 1130s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "arg_g", 1130s # (gchar *) "g", 1130s # NULL 1130s # }, 1130s # FALSE 1130s # }; 1130s # 1130s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_arg_g.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_g = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SingleArgSignalG", 1130s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_g_ARG_pointers, 1130s # NULL 1130s # }, 1130s # "single-arg-signal-g" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_g.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.SignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_g ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__STRING (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1130s # * @single_arg_signal_g: Handler for the #OrgProjectSignalingIface::single-arg-signal-g signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface::single-arg-signal-g: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_g: Argument. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalG" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G] = 1130s # g_signal_new ("single-arg-signal-g", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_g), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_g, 1130s # G_TYPE_NONE, 1130s # 1, G_TYPE_STRING); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_single_arg_signal_g: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_g: Argument to pass with the signal. 1130s # * 1130s # * Emits the "SingleArgSignalG" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_single_arg_signal_g ( 1130s # OrgProjectSignalingIface *object, 1130s # const gchar *arg_arg_g) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_G], 0, arg_arg_g); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_proxy_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1130s # g_datalist_clear (&proxy->priv->qdata); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # const GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1130s # const gchar *sender_name G_GNUC_UNUSED, 1130s # const gchar *signal_name, 1130s # GVariant *parameters) 1130s # { 1130s # _ExtendedGDBusSignalInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # gsize n; 1130s # guint signal_id; 1130s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1130s # if (info == NULL) 1130s # return; 1130s # num_params = g_variant_n_children (parameters); 1130s # paramv = g_new0 (GValue, num_params + 1); 1130s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[0], proxy); 1130s # g_variant_iter_init (&iter, parameters); 1130s # n = 1; 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_signal_emitv (paramv, signal_id, 0, NULL); 1130s # for (n = 0; n < num_params + 1; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1130s # GVariant *changed_properties, 1130s # const gchar *const *invalidated_properties) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1130s # guint n; 1130s # const gchar *key; 1130s # GVariantIter *iter; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # g_variant_get (changed_properties, "a{sv}", &iter); 1130s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1130s # g_datalist_remove_data (&proxy->priv->qdata, key); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # g_variant_iter_free (iter); 1130s # for (n = 0; invalidated_properties[n] != NULL; n++) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1130s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1130s # #else 1130s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1130s # #endif 1130s # 1130s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusProxyClass *proxy_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1130s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1130s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1130s # 1130s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1130s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1130s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_sync: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_sync ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new_for_bus ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeleton: 1130s # * 1130s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeletonClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1130s # { 1130s # GValue *properties; 1130s # GList *changed_properties; 1130s # GSource *changed_properties_idle_source; 1130s # GMainContext *context; 1130s # GMutex lock; 1130s # }; 1130s # 1130s # static void 1130s # _org_project_signaling_iface_skeleton_handle_method_call ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name, 1130s # const gchar *method_name, 1130s # GVariant *parameters, 1130s # GDBusMethodInvocation *invocation, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # _ExtendedGDBusMethodInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # guint num_extra; 1130s # gsize n; 1130s # guint signal_id; 1130s # GValue return_value = G_VALUE_INIT; 1130s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1130s # g_assert (info != NULL); 1130s # num_params = g_variant_n_children (parameters); 1130s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1130s # n = 0; 1130s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[n++], skeleton); 1130s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1130s # g_value_set_object (¶mv[n++], invocation); 1130s # if (info->pass_fdlist) 1130s # { 1130s # #ifdef G_OS_UNIX 1130s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1130s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1130s # #else 1130s # g_assert_not_reached (); 1130s # #endif 1130s # } 1130s # g_variant_iter_init (&iter, parameters); 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1130s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1130s # if (!g_value_get_boolean (&return_value)) 1130s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1130s # g_value_unset (&return_value); 1130s # for (n = 0; n < num_params + num_extra; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static GVariant * 1130s # _org_project_signaling_iface_skeleton_handle_get_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_single_arg_signal_g ( 1130s # OrgProjectSignalingIface *object, 1130s # const gchar *arg_arg_g) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("(g)", 1130s # arg_arg_g)); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalG", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1130s # iface->single_arg_signal_g = _org_project_signaling_iface_on_signal_single_arg_signal_g; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # Error: 1130s # 1130s # /tmp/tmp7tgphinq/tmpohr634uu.xml: 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmpohr634uu.xml', '--output', '-', '--body'] 1130s # Return code: 0 1130s # Output: 1130s # /* 1130s # * This file is generated by gdbus-codegen, do not modify it. 1130s # * 1130s # * The license of this code is the same as for the D-Bus interface description 1130s # * it was derived from. Note that it links to GLib, so must comply with the 1130s # * LGPL linking clauses. 1130s # */ 1130s # 1130s # #ifdef HAVE_CONFIG_H 1130s # # include "config.h" 1130s # #endif 1130s # 1130s # #include 1130s # #ifdef G_OS_UNIX 1130s # # include 1130s # #endif 1130s # 1130s # #ifdef G_ENABLE_DEBUG 1130s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1130s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1130s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1130s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1130s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1130s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1130s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1130s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1130s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1130s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1130s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1130s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1130s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1130s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1130s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1130s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1130s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1130s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1130s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1130s # #else /* !G_ENABLE_DEBUG */ 1130s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1130s # * Do not access GValues directly in your code. Instead, use the 1130s # * g_value_get_*() functions 1130s # */ 1130s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1130s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1130s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1130s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1130s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1130s # #endif /* !G_ENABLE_DEBUG */ 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusArgInfo parent_struct; 1130s # gboolean use_gvariant; 1130s # } _ExtendedGDBusArgInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusMethodInfo parent_struct; 1130s # const gchar *signal_name; 1130s # gboolean pass_fdlist; 1130s # } _ExtendedGDBusMethodInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusSignalInfo parent_struct; 1130s # const gchar *signal_name; 1130s # } _ExtendedGDBusSignalInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusPropertyInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # guint use_gvariant : 1; 1130s # guint emits_changed_signal : 1; 1130s # } _ExtendedGDBusPropertyInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusInterfaceInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # } _ExtendedGDBusInterfaceInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # const _ExtendedGDBusPropertyInfo *info; 1130s # guint prop_id; 1130s # GValue orig_value; /* the value before the change */ 1130s # } ChangedProperty; 1130s # 1130s # static void 1130s # _changed_property_free (ChangedProperty *data) 1130s # { 1130s # g_value_unset (&data->orig_value); 1130s # g_free (data); 1130s # } 1130s # 1130s # static gboolean 1130s # _g_strv_equal0 (gchar **a, gchar **b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # guint n; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # if (g_strv_length (a) != g_strv_length (b)) 1130s # goto out; 1130s # for (n = 0; a[n] != NULL; n++) 1130s # if (g_strcmp0 (a[n], b[n]) != 0) 1130s # goto out; 1130s # ret = TRUE; 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _g_variant_equal0 (GVariant *a, GVariant *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # ret = g_variant_equal (a, b); 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # G_GNUC_UNUSED static gboolean 1130s # _g_value_equal (const GValue *a, const GValue *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1130s # switch (G_VALUE_TYPE (a)) 1130s # { 1130s # case G_TYPE_BOOLEAN: 1130s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1130s # break; 1130s # case G_TYPE_UCHAR: 1130s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1130s # break; 1130s # case G_TYPE_INT: 1130s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1130s # break; 1130s # case G_TYPE_UINT: 1130s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1130s # break; 1130s # case G_TYPE_INT64: 1130s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1130s # break; 1130s # case G_TYPE_UINT64: 1130s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1130s # break; 1130s # case G_TYPE_DOUBLE: 1130s # { 1130s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1130s # gdouble da = g_value_get_double (a); 1130s # gdouble db = g_value_get_double (b); 1130s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1130s # } 1130s # break; 1130s # case G_TYPE_STRING: 1130s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1130s # break; 1130s # case G_TYPE_VARIANT: 1130s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1130s # break; 1130s # default: 1130s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1130s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1130s # else 1130s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1130s # break; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.SignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectSignalingIface 1130s # * @title: OrgProjectSignalingIface 1130s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "arg_h", 1130s # (gchar *) "h", 1130s # NULL 1130s # }, 1130s # FALSE 1130s # }; 1130s # 1130s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_arg_h.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_h = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SingleArgSignalH", 1130s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_h_ARG_pointers, 1130s # NULL 1130s # }, 1130s # "single-arg-signal-h" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_h.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.SignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_h ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VARIANT (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1130s # * @single_arg_signal_h: Handler for the #OrgProjectSignalingIface::single-arg-signal-h signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface::single-arg-signal-h: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_h: Argument. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalH" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H] = 1130s # g_signal_new ("single-arg-signal-h", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_h), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_h, 1130s # G_TYPE_NONE, 1130s # 1, G_TYPE_VARIANT); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_single_arg_signal_h: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_h: Argument to pass with the signal. 1130s # * 1130s # * Emits the "SingleArgSignalH" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_single_arg_signal_h ( 1130s # OrgProjectSignalingIface *object, 1130s # GVariant *arg_arg_h) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_H], 0, arg_arg_h); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_proxy_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1130s # g_datalist_clear (&proxy->priv->qdata); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # const GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1130s # const gchar *sender_name G_GNUC_UNUSED, 1130s # const gchar *signal_name, 1130s # GVariant *parameters) 1130s # { 1130s # _ExtendedGDBusSignalInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # gsize n; 1130s # guint signal_id; 1130s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1130s # if (info == NULL) 1130s # return; 1130s # num_params = g_variant_n_children (parameters); 1130s # paramv = g_new0 (GValue, num_params + 1); 1130s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[0], proxy); 1130s # g_variant_iter_init (&iter, parameters); 1130s # n = 1; 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_signal_emitv (paramv, signal_id, 0, NULL); 1130s # for (n = 0; n < num_params + 1; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1130s # GVariant *changed_properties, 1130s # const gchar *const *invalidated_properties) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1130s # guint n; 1130s # const gchar *key; 1130s # GVariantIter *iter; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # g_variant_get (changed_properties, "a{sv}", &iter); 1130s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1130s # g_datalist_remove_data (&proxy->priv->qdata, key); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # g_variant_iter_free (iter); 1130s # for (n = 0; invalidated_properties[n] != NULL; n++) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1130s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1130s # #else 1130s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1130s # #endif 1130s # 1130s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusProxyClass *proxy_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1130s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1130s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1130s # 1130s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1130s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1130s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_sync: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_sync ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new_for_bus ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeleton: 1130s # * 1130s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeletonClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1130s # { 1130s # GValue *properties; 1130s # GList *changed_properties; 1130s # GSource *changed_properties_idle_source; 1130s # GMainContext *context; 1130s # GMutex lock; 1130s # }; 1130s # 1130s # static void 1130s # _org_project_signaling_iface_skeleton_handle_method_call ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name, 1130s # const gchar *method_name, 1130s # GVariant *parameters, 1130s # GDBusMethodInvocation *invocation, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # _ExtendedGDBusMethodInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # guint num_extra; 1130s # gsize n; 1130s # guint signal_id; 1130s # GValue return_value = G_VALUE_INIT; 1130s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1130s # g_assert (info != NULL); 1130s # num_params = g_variant_n_children (parameters); 1130s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1130s # n = 0; 1130s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[n++], skeleton); 1130s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1130s # g_value_set_object (¶mv[n++], invocation); 1130s # if (info->pass_fdlist) 1130s # { 1130s # #ifdef G_OS_UNIX 1130s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1130s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1130s # #else 1130s # g_assert_not_reached (); 1130s # #endif 1130s # } 1130s # g_variant_iter_init (&iter, parameters); 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1130s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1130s # if (!g_value_get_boolean (&return_value)) 1130s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1130s # g_value_unset (&return_value); 1130s # for (n = 0; n < num_params + num_extra; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static GVariant * 1130s # _org_project_signaling_iface_skeleton_handle_get_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_single_arg_signal_h ( 1130s # OrgProjectSignalingIface *object, 1130s # GVariant *arg_arg_h) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("(@h)", 1130s # arg_arg_h)); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalH", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1130s # iface->single_arg_signal_h = _org_project_signaling_iface_on_signal_single_arg_signal_h; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # Error: 1130s # 1130s # /tmp/tmp7tgphinq/tmp20wtvhwh.xml: 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmp20wtvhwh.xml', '--output', '-', '--body'] 1130s # Return code: 0 1130s # Output: 1130s # /* 1130s # * This file is generated by gdbus-codegen, do not modify it. 1130s # * 1130s # * The license of this code is the same as for the D-Bus interface description 1130s # * it was derived from. Note that it links to GLib, so must comply with the 1130s # * LGPL linking clauses. 1130s # */ 1130s # 1130s # #ifdef HAVE_CONFIG_H 1130s # # include "config.h" 1130s # #endif 1130s # 1130s # #include 1130s # #ifdef G_OS_UNIX 1130s # # include 1130s # #endif 1130s # 1130s # #ifdef G_ENABLE_DEBUG 1130s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1130s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1130s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1130s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1130s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1130s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1130s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1130s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1130s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1130s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1130s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1130s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1130s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1130s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1130s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1130s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1130s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1130s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1130s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1130s # #else /* !G_ENABLE_DEBUG */ 1130s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1130s # * Do not access GValues directly in your code. Instead, use the 1130s # * g_value_get_*() functions 1130s # */ 1130s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1130s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1130s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1130s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1130s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1130s # #endif /* !G_ENABLE_DEBUG */ 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusArgInfo parent_struct; 1130s # gboolean use_gvariant; 1130s # } _ExtendedGDBusArgInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusMethodInfo parent_struct; 1130s # const gchar *signal_name; 1130s # gboolean pass_fdlist; 1130s # } _ExtendedGDBusMethodInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusSignalInfo parent_struct; 1130s # const gchar *signal_name; 1130s # } _ExtendedGDBusSignalInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusPropertyInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # guint use_gvariant : 1; 1130s # guint emits_changed_signal : 1; 1130s # } _ExtendedGDBusPropertyInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusInterfaceInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # } _ExtendedGDBusInterfaceInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # const _ExtendedGDBusPropertyInfo *info; 1130s # guint prop_id; 1130s # GValue orig_value; /* the value before the change */ 1130s # } ChangedProperty; 1130s # 1130s # static void 1130s # _changed_property_free (ChangedProperty *data) 1130s # { 1130s # g_value_unset (&data->orig_value); 1130s # g_free (data); 1130s # } 1130s # 1130s # static gboolean 1130s # _g_strv_equal0 (gchar **a, gchar **b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # guint n; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # if (g_strv_length (a) != g_strv_length (b)) 1130s # goto out; 1130s # for (n = 0; a[n] != NULL; n++) 1130s # if (g_strcmp0 (a[n], b[n]) != 0) 1130s # goto out; 1130s # ret = TRUE; 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _g_variant_equal0 (GVariant *a, GVariant *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # ret = g_variant_equal (a, b); 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # G_GNUC_UNUSED static gboolean 1130s # _g_value_equal (const GValue *a, const GValue *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1130s # switch (G_VALUE_TYPE (a)) 1130s # { 1130s # case G_TYPE_BOOLEAN: 1130s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1130s # break; 1130s # case G_TYPE_UCHAR: 1130s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1130s # break; 1130s # case G_TYPE_INT: 1130s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1130s # break; 1130s # case G_TYPE_UINT: 1130s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1130s # break; 1130s # case G_TYPE_INT64: 1130s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1130s # break; 1130s # case G_TYPE_UINT64: 1130s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1130s # break; 1130s # case G_TYPE_DOUBLE: 1130s # { 1130s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1130s # gdouble da = g_value_get_double (a); 1130s # gdouble db = g_value_get_double (b); 1130s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1130s # } 1130s # break; 1130s # case G_TYPE_STRING: 1130s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1130s # break; 1130s # case G_TYPE_VARIANT: 1130s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1130s # break; 1130s # default: 1130s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1130s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1130s # else 1130s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1130s # break; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.SignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectSignalingIface 1130s # * @title: OrgProjectSignalingIface 1130s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "arg_ay", 1130s # (gchar *) "ay", 1130s # NULL 1130s # }, 1130s # FALSE 1130s # }; 1130s # 1130s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_arg_ay.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ay = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SingleArgSignalAy", 1130s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ay_ARG_pointers, 1130s # NULL 1130s # }, 1130s # "single-arg-signal-ay" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_ay.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.SignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__STRING (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1130s # * @single_arg_signal_ay: Handler for the #OrgProjectSignalingIface::single-arg-signal-ay signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface::single-arg-signal-ay: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_ay: Argument. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAy" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY] = 1130s # g_signal_new ("single-arg-signal-ay", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ay), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_ay, 1130s # G_TYPE_NONE, 1130s # 1, G_TYPE_STRING); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_single_arg_signal_ay: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_ay: Argument to pass with the signal. 1130s # * 1130s # * Emits the "SingleArgSignalAy" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_single_arg_signal_ay ( 1130s # OrgProjectSignalingIface *object, 1130s # const gchar *arg_arg_ay) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AY], 0, arg_arg_ay); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_proxy_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1130s # g_datalist_clear (&proxy->priv->qdata); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1130s # guint prop_id G_GNUC_UNUSED, 1130s # const GValue *value G_GNUC_UNUSED, 1130s # GParamSpec *pspec G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1130s # const gchar *sender_name G_GNUC_UNUSED, 1130s # const gchar *signal_name, 1130s # GVariant *parameters) 1130s # { 1130s # _ExtendedGDBusSignalInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # gsize n; 1130s # guint signal_id; 1130s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1130s # if (info == NULL) 1130s # return; 1130s # num_params = g_variant_n_children (parameters); 1130s # paramv = g_new0 (GValue, num_params + 1); 1130s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[0], proxy); 1130s # g_variant_iter_init (&iter, parameters); 1130s # n = 1; 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_signal_emitv (paramv, signal_id, 0, NULL); 1130s # for (n = 0; n < num_params + 1; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1130s # GVariant *changed_properties, 1130s # const gchar *const *invalidated_properties) 1130s # { 1130s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1130s # guint n; 1130s # const gchar *key; 1130s # GVariantIter *iter; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # g_variant_get (changed_properties, "a{sv}", &iter); 1130s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1130s # g_datalist_remove_data (&proxy->priv->qdata, key); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # g_variant_iter_free (iter); 1130s # for (n = 0; invalidated_properties[n] != NULL; n++) 1130s # { 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1130s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1130s # if (info != NULL) 1130s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1130s # } 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1130s # #else 1130s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1130s # #endif 1130s # 1130s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusProxyClass *proxy_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1130s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1130s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1130s # 1130s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1130s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1130s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_sync: 1130s # * @connection: A #GDBusConnection. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_sync ( 1130s # GDBusConnection *connection, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1130s # * @user_data: User data to pass to @callback. 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1130s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_proxy_new_for_bus ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GAsyncReadyCallback callback, 1130s # gpointer user_data) 1130s # { 1130s # 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); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1130s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1130s # GAsyncResult *res, 1130s # GError **error) 1130s # { 1130s # GObject *ret; 1130s # GObject *source_object; 1130s # source_object = g_async_result_get_source_object (res); 1130s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1130s # g_object_unref (source_object); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1130s # * @bus_type: A #GBusType. 1130s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1130s # * @name: A bus name (well-known or unique). 1130s # * @object_path: An object path. 1130s # * @cancellable: (nullable): A #GCancellable or %NULL. 1130s # * @error: Return location for error or %NULL 1130s # * 1130s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1130s # * 1130s # * The calling thread is blocked until a reply is received. 1130s # * 1130s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1130s # GBusType bus_type, 1130s # GDBusProxyFlags flags, 1130s # const gchar *name, 1130s # const gchar *object_path, 1130s # GCancellable *cancellable, 1130s # GError **error) 1130s # { 1130s # GInitable *ret; 1130s # 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); 1130s # if (ret != NULL) 1130s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1130s # else 1130s # return NULL; 1130s # } 1130s # 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeleton: 1130s # * 1130s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceSkeletonClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1130s # { 1130s # GValue *properties; 1130s # GList *changed_properties; 1130s # GSource *changed_properties_idle_source; 1130s # GMainContext *context; 1130s # GMutex lock; 1130s # }; 1130s # 1130s # static void 1130s # _org_project_signaling_iface_skeleton_handle_method_call ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name, 1130s # const gchar *method_name, 1130s # GVariant *parameters, 1130s # GDBusMethodInvocation *invocation, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # _ExtendedGDBusMethodInfo *info; 1130s # GVariantIter iter; 1130s # GVariant *child; 1130s # GValue *paramv; 1130s # gsize num_params; 1130s # guint num_extra; 1130s # gsize n; 1130s # guint signal_id; 1130s # GValue return_value = G_VALUE_INIT; 1130s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1130s # g_assert (info != NULL); 1130s # num_params = g_variant_n_children (parameters); 1130s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1130s # n = 0; 1130s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_set_object (¶mv[n++], skeleton); 1130s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1130s # g_value_set_object (¶mv[n++], invocation); 1130s # if (info->pass_fdlist) 1130s # { 1130s # #ifdef G_OS_UNIX 1130s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1130s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1130s # #else 1130s # g_assert_not_reached (); 1130s # #endif 1130s # } 1130s # g_variant_iter_init (&iter, parameters); 1130s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1130s # { 1130s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1130s # if (arg_info->use_gvariant) 1130s # { 1130s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1130s # g_value_set_variant (¶mv[n], child); 1130s # n++; 1130s # } 1130s # else 1130s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1130s # g_variant_unref (child); 1130s # } 1130s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1130s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1130s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1130s # if (!g_value_get_boolean (&return_value)) 1130s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1130s # g_value_unset (&return_value); 1130s # for (n = 0; n < num_params + num_extra; n++) 1130s # g_value_unset (¶mv[n]); 1130s # g_free (paramv); 1130s # } 1130s # 1130s # static GVariant * 1130s # _org_project_signaling_iface_skeleton_handle_get_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # GVariant *ret; 1130s # ret = NULL; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # g_value_init (&value, pspec->value_type); 1130s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1130s # g_value_unset (&value); 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _org_project_signaling_iface_skeleton_handle_set_property ( 1130s # GDBusConnection *connection G_GNUC_UNUSED, 1130s # const gchar *sender G_GNUC_UNUSED, 1130s # const gchar *object_path G_GNUC_UNUSED, 1130s # const gchar *interface_name G_GNUC_UNUSED, 1130s # const gchar *property_name, 1130s # GVariant *variant, 1130s # GError **error, 1130s # gpointer user_data) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1130s # GValue value = G_VALUE_INIT; 1130s # GParamSpec *pspec; 1130s # _ExtendedGDBusPropertyInfo *info; 1130s # gboolean ret; 1130s # ret = FALSE; 1130s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1130s # g_assert (info != NULL); 1130s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1130s # if (pspec == NULL) 1130s # { 1130s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1130s # } 1130s # else 1130s # { 1130s # if (info->use_gvariant) 1130s # g_value_set_variant (&value, variant); 1130s # else 1130s # g_dbus_gvariant_to_gvalue (variant, &value); 1130s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1130s # g_value_unset (&value); 1130s # ret = TRUE; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1130s # { 1130s # _org_project_signaling_iface_skeleton_handle_method_call, 1130s # _org_project_signaling_iface_skeleton_handle_get_property, 1130s # _org_project_signaling_iface_skeleton_handle_set_property, 1130s # {NULL} 1130s # }; 1130s # 1130s # static GDBusInterfaceInfo * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return org_project_signaling_iface_interface_info (); 1130s # } 1130s # 1130s # static GDBusInterfaceVTable * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1130s # { 1130s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1130s # } 1130s # 1130s # static GVariant * 1130s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1130s # 1130s # GVariantBuilder builder; 1130s # guint n; 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1130s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #else 1130s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1130s # #endif 1130s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1130s # goto out; 1130s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1130s # { 1130s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1130s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1130s # { 1130s # GVariant *value; 1130s # 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); 1130s # if (value != NULL) 1130s # { 1130s # g_variant_take_ref (value); 1130s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1130s # g_variant_unref (value); 1130s # } 1130s # } 1130s # } 1130s # out: 1130s # return g_variant_builder_end (&builder); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1130s # { 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void 1130s # _org_project_signaling_iface_on_signal_single_arg_signal_ay ( 1130s # OrgProjectSignalingIface *object, 1130s # const gchar *arg_arg_ay) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # 1130s # GList *connections, *l; 1130s # GVariant *signal_variant; 1130s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1130s # 1130s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ay)", 1130s # arg_arg_ay)); 1130s # for (l = connections; l != NULL; l = l->next) 1130s # { 1130s # GDBusConnection *connection = l->data; 1130s # g_dbus_connection_emit_signal (connection, 1130s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAy", 1130s # signal_variant, NULL); 1130s # } 1130s # g_variant_unref (signal_variant); 1130s # g_list_free_full (connections, g_object_unref); 1130s # } 1130s # 1130s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #else 1130s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1130s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1130s # 1130s # #endif 1130s # static void 1130s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1130s # { 1130s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1130s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1130s # if (skeleton->priv->changed_properties_idle_source != NULL) 1130s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1130s # g_main_context_unref (skeleton->priv->context); 1130s # g_mutex_clear (&skeleton->priv->lock); 1130s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1130s # { 1130s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1130s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1130s # #else 1130s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1130s # #endif 1130s # 1130s # g_mutex_init (&skeleton->priv->lock); 1130s # skeleton->priv->context = g_main_context_ref_thread_default (); 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1130s # { 1130s # GObjectClass *gobject_class; 1130s # GDBusInterfaceSkeletonClass *skeleton_class; 1130s # 1130s # gobject_class = G_OBJECT_CLASS (klass); 1130s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1130s # 1130s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1130s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1130s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1130s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1130s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1130s # 1130s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1130s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1130s # #endif 1130s # } 1130s # 1130s # static void 1130s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1130s # iface->single_arg_signal_ay = _org_project_signaling_iface_on_signal_single_arg_signal_ay; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_skeleton_new: 1130s # * 1130s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1130s # * 1130s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1130s # */ 1130s # OrgProjectSignalingIface * 1130s # org_project_signaling_iface_skeleton_new (void) 1130s # { 1130s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1130s # } 1130s # Error: 1130s # 1130s # /tmp/tmp7tgphinq/tmpk6ig3wmd.xml: 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # 1130s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmpk6ig3wmd.xml', '--output', '-', '--body'] 1130s # Return code: 0 1130s # Output: 1130s # /* 1130s # * This file is generated by gdbus-codegen, do not modify it. 1130s # * 1130s # * The license of this code is the same as for the D-Bus interface description 1130s # * it was derived from. Note that it links to GLib, so must comply with the 1130s # * LGPL linking clauses. 1130s # */ 1130s # 1130s # #ifdef HAVE_CONFIG_H 1130s # # include "config.h" 1130s # #endif 1130s # 1130s # #include 1130s # #ifdef G_OS_UNIX 1130s # # include 1130s # #endif 1130s # 1130s # #ifdef G_ENABLE_DEBUG 1130s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1130s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1130s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1130s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1130s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1130s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1130s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1130s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1130s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1130s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1130s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1130s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1130s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1130s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1130s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1130s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1130s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1130s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1130s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1130s # #else /* !G_ENABLE_DEBUG */ 1130s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1130s # * Do not access GValues directly in your code. Instead, use the 1130s # * g_value_get_*() functions 1130s # */ 1130s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1130s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1130s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1130s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1130s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1130s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1130s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1130s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1130s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1130s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1130s # #endif /* !G_ENABLE_DEBUG */ 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusArgInfo parent_struct; 1130s # gboolean use_gvariant; 1130s # } _ExtendedGDBusArgInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusMethodInfo parent_struct; 1130s # const gchar *signal_name; 1130s # gboolean pass_fdlist; 1130s # } _ExtendedGDBusMethodInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusSignalInfo parent_struct; 1130s # const gchar *signal_name; 1130s # } _ExtendedGDBusSignalInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusPropertyInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # guint use_gvariant : 1; 1130s # guint emits_changed_signal : 1; 1130s # } _ExtendedGDBusPropertyInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # GDBusInterfaceInfo parent_struct; 1130s # const gchar *hyphen_name; 1130s # } _ExtendedGDBusInterfaceInfo; 1130s # 1130s # typedef struct 1130s # { 1130s # const _ExtendedGDBusPropertyInfo *info; 1130s # guint prop_id; 1130s # GValue orig_value; /* the value before the change */ 1130s # } ChangedProperty; 1130s # 1130s # static void 1130s # _changed_property_free (ChangedProperty *data) 1130s # { 1130s # g_value_unset (&data->orig_value); 1130s # g_free (data); 1130s # } 1130s # 1130s # static gboolean 1130s # _g_strv_equal0 (gchar **a, gchar **b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # guint n; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # if (g_strv_length (a) != g_strv_length (b)) 1130s # goto out; 1130s # for (n = 0; a[n] != NULL; n++) 1130s # if (g_strcmp0 (a[n], b[n]) != 0) 1130s # goto out; 1130s # ret = TRUE; 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # static gboolean 1130s # _g_variant_equal0 (GVariant *a, GVariant *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # if (a == NULL && b == NULL) 1130s # { 1130s # ret = TRUE; 1130s # goto out; 1130s # } 1130s # if (a == NULL || b == NULL) 1130s # goto out; 1130s # ret = g_variant_equal (a, b); 1130s # out: 1130s # return ret; 1130s # } 1130s # 1130s # G_GNUC_UNUSED static gboolean 1130s # _g_value_equal (const GValue *a, const GValue *b) 1130s # { 1130s # gboolean ret = FALSE; 1130s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1130s # switch (G_VALUE_TYPE (a)) 1130s # { 1130s # case G_TYPE_BOOLEAN: 1130s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1130s # break; 1130s # case G_TYPE_UCHAR: 1130s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1130s # break; 1130s # case G_TYPE_INT: 1130s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1130s # break; 1130s # case G_TYPE_UINT: 1130s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1130s # break; 1130s # case G_TYPE_INT64: 1130s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1130s # break; 1130s # case G_TYPE_UINT64: 1130s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1130s # break; 1130s # case G_TYPE_DOUBLE: 1130s # { 1130s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1130s # gdouble da = g_value_get_double (a); 1130s # gdouble db = g_value_get_double (b); 1130s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1130s # } 1130s # break; 1130s # case G_TYPE_STRING: 1130s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1130s # break; 1130s # case G_TYPE_VARIANT: 1130s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1130s # break; 1130s # default: 1130s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1130s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1130s # else 1130s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1130s # break; 1130s # } 1130s # return ret; 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ 1130s # * Code for interface org.project.SignalingIface 1130s # * ------------------------------------------------------------------------ 1130s # */ 1130s # 1130s # /** 1130s # * SECTION:OrgProjectSignalingIface 1130s # * @title: OrgProjectSignalingIface 1130s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1130s # * 1130s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1130s # */ 1130s # 1130s # enum 1130s # { 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1130s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS, 1130s # }; 1130s # 1130s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1130s # 1130s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SimpleSignal", 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "simple-signal" 1130s # }; 1130s # 1130s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "arg_as", 1130s # (gchar *) "as", 1130s # NULL 1130s # }, 1130s # FALSE 1130s # }; 1130s # 1130s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_arg_as.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_as = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "SingleArgSignalAs", 1130s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_as_ARG_pointers, 1130s # NULL 1130s # }, 1130s # "single-arg-signal-as" 1130s # }; 1130s # 1130s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1130s # { 1130s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1130s # &_org_project_signaling_iface_signal_info_single_arg_signal_as.parent_struct, 1130s # NULL 1130s # }; 1130s # 1130s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1130s # { 1130s # { 1130s # -1, 1130s # (gchar *) "org.project.SignalingIface", 1130s # NULL, 1130s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1130s # NULL, 1130s # NULL 1130s # }, 1130s # "org-project-signaling-iface", 1130s # }; 1130s # 1130s # 1130s # /** 1130s # * org_project_signaling_iface_interface_info: 1130s # * 1130s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1130s # * 1130s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1130s # */ 1130s # GDBusInterfaceInfo * 1130s # org_project_signaling_iface_interface_info (void) 1130s # { 1130s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_override_properties: 1130s # * @klass: The class structure for a #GObject derived class. 1130s # * @property_id_begin: The property id to assign to the first overridden property. 1130s # * 1130s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1130s # * The properties are overridden in the order they are defined. 1130s # * 1130s # * Returns: The last property id. 1130s # */ 1130s # guint 1130s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1130s # { 1130s # return property_id_begin - 1; 1130s # } 1130s # 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_simple_signal ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__VOID (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # inline static void 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_as ( 1130s # GClosure *closure, 1130s # GValue *return_value, 1130s # unsigned int n_param_values, 1130s # const GValue *param_values, 1130s # void *invocation_hint, 1130s # void *marshal_data) 1130s # { 1130s # g_cclosure_marshal_VOID__BOXED (closure, 1130s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1130s # } 1130s # 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface: 1130s # * 1130s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceIface: 1130s # * @parent_iface: The parent interface. 1130s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1130s # * @single_arg_signal_as: Handler for the #OrgProjectSignalingIface::single-arg-signal-as signal. 1130s # * 1130s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1130s # */ 1130s # 1130s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1130s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1130s # 1130s # static void 1130s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1130s # { 1130s # /* GObject signals for received D-Bus signals: */ 1130s # /** 1130s # * OrgProjectSignalingIface::simple-signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1130s # g_signal_new ("simple-signal", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_simple_signal, 1130s # G_TYPE_NONE, 1130s # 0); 1130s # 1130s # /** 1130s # * OrgProjectSignalingIface::single-arg-signal-as: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_as: Argument. 1130s # * 1130s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAs" is received. 1130s # * 1130s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1130s # */ 1130s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS] = 1130s # g_signal_new ("single-arg-signal-as", 1130s # G_TYPE_FROM_INTERFACE (iface), 1130s # G_SIGNAL_RUN_LAST, 1130s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_as), 1130s # NULL, 1130s # NULL, 1130s # org_project_signaling_iface_signal_marshal_single_arg_signal_as, 1130s # G_TYPE_NONE, 1130s # 1, G_TYPE_STRV); 1130s # 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_simple_signal: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * 1130s # * Emits the "SimpleSignal" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_simple_signal ( 1130s # OrgProjectSignalingIface *object) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1130s # } 1130s # 1130s # /** 1130s # * org_project_signaling_iface_emit_single_arg_signal_as: 1130s # * @object: A #OrgProjectSignalingIface. 1130s # * @arg_arg_as: Argument to pass with the signal. 1130s # * 1130s # * Emits the "SingleArgSignalAs" D-Bus signal. 1130s # */ 1130s # void 1130s # org_project_signaling_iface_emit_single_arg_signal_as ( 1130s # OrgProjectSignalingIface *object, 1130s # const gchar *const *arg_arg_as) 1130s # { 1130s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AS], 0, arg_arg_as); 1130s # } 1130s # 1130s # /* ------------------------------------------------------------------------ */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxy: 1130s # * 1130s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1130s # */ 1130s # 1130s # /** 1130s # * OrgProjectSignalingIfaceProxyClass: 1130s # * @parent_class: The parent class. 1130s # * 1130s # * Class structure for #OrgProjectSignalingIfaceProxy. 1130s # */ 1130s # 1130s # struct _OrgProjectSignalingIfaceProxyPrivate 1130s # { 1130s # GData *qdata; 1130s # }; 1130s # 1130s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1131s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # org_project_signaling_iface_proxy_finalize (GObject *object) 1131s # { 1131s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1131s # g_datalist_clear (&proxy->priv->qdata); 1131s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1131s # guint prop_id G_GNUC_UNUSED, 1131s # GValue *value G_GNUC_UNUSED, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1131s # guint prop_id G_GNUC_UNUSED, 1131s # const GValue *value G_GNUC_UNUSED, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1131s # const gchar *sender_name G_GNUC_UNUSED, 1131s # const gchar *signal_name, 1131s # GVariant *parameters) 1131s # { 1131s # _ExtendedGDBusSignalInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # gsize n; 1131s # guint signal_id; 1131s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1131s # if (info == NULL) 1131s # return; 1131s # num_params = g_variant_n_children (parameters); 1131s # paramv = g_new0 (GValue, num_params + 1); 1131s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_value_set_object (¶mv[0], proxy); 1131s # g_variant_iter_init (&iter, parameters); 1131s # n = 1; 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_signal_emitv (paramv, signal_id, 0, NULL); 1131s # for (n = 0; n < num_params + 1; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1131s # GVariant *changed_properties, 1131s # const gchar *const *invalidated_properties) 1131s # { 1131s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1131s # guint n; 1131s # const gchar *key; 1131s # GVariantIter *iter; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # g_variant_get (changed_properties, "a{sv}", &iter); 1131s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1131s # g_datalist_remove_data (&proxy->priv->qdata, key); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # g_variant_iter_free (iter); 1131s # for (n = 0; invalidated_properties[n] != NULL; n++) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1131s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1131s # #else 1131s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1131s # #endif 1131s # 1131s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusProxyClass *proxy_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1131s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1131s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1131s # 1131s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1131s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1131s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_sync: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_for_bus: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceSkeleton: 1131s # * 1131s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceSkeletonClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1131s # */ 1131s # 1131s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1131s # { 1131s # GValue *properties; 1131s # GList *changed_properties; 1131s # GSource *changed_properties_idle_source; 1131s # GMainContext *context; 1131s # GMutex lock; 1131s # }; 1131s # 1131s # static void 1131s # _org_project_signaling_iface_skeleton_handle_method_call ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name, 1131s # const gchar *method_name, 1131s # GVariant *parameters, 1131s # GDBusMethodInvocation *invocation, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1131s # _ExtendedGDBusMethodInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # guint num_extra; 1131s # gsize n; 1131s # guint signal_id; 1131s # GValue return_value = G_VALUE_INIT; 1131s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1131s # g_assert (info != NULL); 1131s # num_params = g_variant_n_children (parameters); 1131s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1131s # n = 0; 1131s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_value_set_object (¶mv[n++], skeleton); 1131s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1131s # g_value_set_object (¶mv[n++], invocation); 1131s # if (info->pass_fdlist) 1131s # { 1131s # #ifdef G_OS_UNIX 1131s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1131s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1131s # #else 1131s # g_assert_not_reached (); 1131s # #endif 1131s # } 1131s # g_variant_iter_init (&iter, parameters); 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1131s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1131s # if (!g_value_get_boolean (&return_value)) 1131s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1131s # g_value_unset (&return_value); 1131s # for (n = 0; n < num_params + num_extra; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static GVariant * 1131s # _org_project_signaling_iface_skeleton_handle_get_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # GVariant *ret; 1131s # ret = NULL; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # g_value_init (&value, pspec->value_type); 1131s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1131s # g_value_unset (&value); 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static gboolean 1131s # _org_project_signaling_iface_skeleton_handle_set_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GVariant *variant, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # gboolean ret; 1131s # ret = FALSE; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # if (info->use_gvariant) 1131s # g_value_set_variant (&value, variant); 1131s # else 1131s # g_dbus_gvariant_to_gvalue (variant, &value); 1131s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # g_value_unset (&value); 1131s # ret = TRUE; 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1131s # { 1131s # _org_project_signaling_iface_skeleton_handle_method_call, 1131s # _org_project_signaling_iface_skeleton_handle_get_property, 1131s # _org_project_signaling_iface_skeleton_handle_set_property, 1131s # {NULL} 1131s # }; 1131s # 1131s # static GDBusInterfaceInfo * 1131s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return org_project_signaling_iface_interface_info (); 1131s # } 1131s # 1131s # static GDBusInterfaceVTable * 1131s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1131s # } 1131s # 1131s # static GVariant * 1131s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1131s # 1131s # GVariantBuilder builder; 1131s # guint n; 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1131s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #else 1131s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #endif 1131s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1131s # goto out; 1131s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1131s # { 1131s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1131s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1131s # { 1131s # GVariant *value; 1131s # 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); 1131s # if (value != NULL) 1131s # { 1131s # g_variant_take_ref (value); 1131s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1131s # g_variant_unref (value); 1131s # } 1131s # } 1131s # } 1131s # out: 1131s # return g_variant_builder_end (&builder); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # _org_project_signaling_iface_on_signal_simple_signal ( 1131s # OrgProjectSignalingIface *object) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1131s # 1131s # GList *connections, *l; 1131s # GVariant *signal_variant; 1131s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1131s # 1131s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1131s # for (l = connections; l != NULL; l = l->next) 1131s # { 1131s # GDBusConnection *connection = l->data; 1131s # g_dbus_connection_emit_signal (connection, 1131s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1131s # signal_variant, NULL); 1131s # } 1131s # g_variant_unref (signal_variant); 1131s # g_list_free_full (connections, g_object_unref); 1131s # } 1131s # 1131s # static void 1131s # _org_project_signaling_iface_on_signal_single_arg_signal_as ( 1131s # OrgProjectSignalingIface *object, 1131s # const gchar *const *arg_arg_as) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1131s # 1131s # GList *connections, *l; 1131s # GVariant *signal_variant; 1131s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1131s # 1131s # signal_variant = g_variant_ref_sink (g_variant_new ("(^as)", 1131s # arg_arg_as)); 1131s # for (l = connections; l != NULL; l = l->next) 1131s # { 1131s # GDBusConnection *connection = l->data; 1131s # g_dbus_connection_emit_signal (connection, 1131s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAs", 1131s # signal_variant, NULL); 1131s # } 1131s # g_variant_unref (signal_variant); 1131s # g_list_free_full (connections, g_object_unref); 1131s # } 1131s # 1131s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1131s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1131s # if (skeleton->priv->changed_properties_idle_source != NULL) 1131s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1131s # g_main_context_unref (skeleton->priv->context); 1131s # g_mutex_clear (&skeleton->priv->lock); 1131s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1131s # #else 1131s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1131s # #endif 1131s # 1131s # g_mutex_init (&skeleton->priv->lock); 1131s # skeleton->priv->context = g_main_context_ref_thread_default (); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusInterfaceSkeletonClass *skeleton_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1131s # 1131s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1131s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1131s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1131s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1131s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1131s # { 1131s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1131s # iface->single_arg_signal_as = _org_project_signaling_iface_on_signal_single_arg_signal_as; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_skeleton_new: 1131s # * 1131s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_skeleton_new (void) 1131s # { 1131s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1131s # } 1131s # Error: 1131s # 1131s # /tmp/tmp7tgphinq/tmpqomc2g3j.xml: 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmpqomc2g3j.xml', '--output', '-', '--body'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifdef HAVE_CONFIG_H 1131s # # include "config.h" 1131s # #endif 1131s # 1131s # #include 1131s # #ifdef G_OS_UNIX 1131s # # include 1131s # #endif 1131s # 1131s # #ifdef G_ENABLE_DEBUG 1131s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1131s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1131s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1131s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1131s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1131s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1131s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1131s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1131s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1131s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1131s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1131s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1131s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1131s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1131s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1131s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1131s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1131s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1131s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1131s # #else /* !G_ENABLE_DEBUG */ 1131s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1131s # * Do not access GValues directly in your code. Instead, use the 1131s # * g_value_get_*() functions 1131s # */ 1131s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1131s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1131s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1131s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1131s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1131s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1131s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1131s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1131s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1131s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1131s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1131s # #endif /* !G_ENABLE_DEBUG */ 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusArgInfo parent_struct; 1131s # gboolean use_gvariant; 1131s # } _ExtendedGDBusArgInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusMethodInfo parent_struct; 1131s # const gchar *signal_name; 1131s # gboolean pass_fdlist; 1131s # } _ExtendedGDBusMethodInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusSignalInfo parent_struct; 1131s # const gchar *signal_name; 1131s # } _ExtendedGDBusSignalInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusPropertyInfo parent_struct; 1131s # const gchar *hyphen_name; 1131s # guint use_gvariant : 1; 1131s # guint emits_changed_signal : 1; 1131s # } _ExtendedGDBusPropertyInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusInterfaceInfo parent_struct; 1131s # const gchar *hyphen_name; 1131s # } _ExtendedGDBusInterfaceInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # const _ExtendedGDBusPropertyInfo *info; 1131s # guint prop_id; 1131s # GValue orig_value; /* the value before the change */ 1131s # } ChangedProperty; 1131s # 1131s # static void 1131s # _changed_property_free (ChangedProperty *data) 1131s # { 1131s # g_value_unset (&data->orig_value); 1131s # g_free (data); 1131s # } 1131s # 1131s # static gboolean 1131s # _g_strv_equal0 (gchar **a, gchar **b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # guint n; 1131s # if (a == NULL && b == NULL) 1131s # { 1131s # ret = TRUE; 1131s # goto out; 1131s # } 1131s # if (a == NULL || b == NULL) 1131s # goto out; 1131s # if (g_strv_length (a) != g_strv_length (b)) 1131s # goto out; 1131s # for (n = 0; a[n] != NULL; n++) 1131s # if (g_strcmp0 (a[n], b[n]) != 0) 1131s # goto out; 1131s # ret = TRUE; 1131s # out: 1131s # return ret; 1131s # } 1131s # 1131s # static gboolean 1131s # _g_variant_equal0 (GVariant *a, GVariant *b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # if (a == NULL && b == NULL) 1131s # { 1131s # ret = TRUE; 1131s # goto out; 1131s # } 1131s # if (a == NULL || b == NULL) 1131s # goto out; 1131s # ret = g_variant_equal (a, b); 1131s # out: 1131s # return ret; 1131s # } 1131s # 1131s # G_GNUC_UNUSED static gboolean 1131s # _g_value_equal (const GValue *a, const GValue *b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1131s # switch (G_VALUE_TYPE (a)) 1131s # { 1131s # case G_TYPE_BOOLEAN: 1131s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1131s # break; 1131s # case G_TYPE_UCHAR: 1131s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1131s # break; 1131s # case G_TYPE_INT: 1131s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1131s # break; 1131s # case G_TYPE_UINT: 1131s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1131s # break; 1131s # case G_TYPE_INT64: 1131s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1131s # break; 1131s # case G_TYPE_UINT64: 1131s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1131s # break; 1131s # case G_TYPE_DOUBLE: 1131s # { 1131s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1131s # gdouble da = g_value_get_double (a); 1131s # gdouble db = g_value_get_double (b); 1131s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1131s # } 1131s # break; 1131s # case G_TYPE_STRING: 1131s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1131s # break; 1131s # case G_TYPE_VARIANT: 1131s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1131s # break; 1131s # default: 1131s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1131s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1131s # else 1131s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1131s # break; 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ 1131s # * Code for interface org.project.SignalingIface 1131s # * ------------------------------------------------------------------------ 1131s # */ 1131s # 1131s # /** 1131s # * SECTION:OrgProjectSignalingIface 1131s # * @title: OrgProjectSignalingIface 1131s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1131s # * 1131s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1131s # */ 1131s # 1131s # enum 1131s # { 1131s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1131s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO, 1131s # }; 1131s # 1131s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1131s # 1131s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1131s # 1131s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "SimpleSignal", 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "simple-signal" 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "arg_ao", 1131s # (gchar *) "ao", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers[] = 1131s # { 1131s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_arg_ao.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_ao = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "SingleArgSignalAo", 1131s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_ao_ARG_pointers, 1131s # NULL 1131s # }, 1131s # "single-arg-signal-ao" 1131s # }; 1131s # 1131s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1131s # { 1131s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_single_arg_signal_ao.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "org.project.SignalingIface", 1131s # NULL, 1131s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "org-project-signaling-iface", 1131s # }; 1131s # 1131s # 1131s # /** 1131s # * org_project_signaling_iface_interface_info: 1131s # * 1131s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1131s # * 1131s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1131s # */ 1131s # GDBusInterfaceInfo * 1131s # org_project_signaling_iface_interface_info (void) 1131s # { 1131s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_override_properties: 1131s # * @klass: The class structure for a #GObject derived class. 1131s # * @property_id_begin: The property id to assign to the first overridden property. 1131s # * 1131s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1131s # * The properties are overridden in the order they are defined. 1131s # * 1131s # * Returns: The last property id. 1131s # */ 1131s # guint 1131s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1131s # { 1131s # return property_id_begin - 1; 1131s # } 1131s # 1131s # 1131s # inline static void 1131s # org_project_signaling_iface_signal_marshal_simple_signal ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # g_cclosure_marshal_VOID__VOID (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # inline static void 1131s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # g_cclosure_marshal_VOID__BOXED (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # 1131s # /** 1131s # * OrgProjectSignalingIface: 1131s # * 1131s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceIface: 1131s # * @parent_iface: The parent interface. 1131s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1131s # * @single_arg_signal_ao: Handler for the #OrgProjectSignalingIface::single-arg-signal-ao signal. 1131s # * 1131s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1131s # */ 1131s # 1131s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1131s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1131s # 1131s # static void 1131s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1131s # { 1131s # /* GObject signals for received D-Bus signals: */ 1131s # /** 1131s # * OrgProjectSignalingIface::simple-signal: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * 1131s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1131s # * 1131s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1131s # */ 1131s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1131s # g_signal_new ("simple-signal", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1131s # NULL, 1131s # NULL, 1131s # org_project_signaling_iface_signal_marshal_simple_signal, 1131s # G_TYPE_NONE, 1131s # 0); 1131s # 1131s # /** 1131s # * OrgProjectSignalingIface::single-arg-signal-ao: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * @arg_arg_ao: Argument. 1131s # * 1131s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAo" is received. 1131s # * 1131s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1131s # */ 1131s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO] = 1131s # g_signal_new ("single-arg-signal-ao", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_ao), 1131s # NULL, 1131s # NULL, 1131s # org_project_signaling_iface_signal_marshal_single_arg_signal_ao, 1131s # G_TYPE_NONE, 1131s # 1, G_TYPE_STRV); 1131s # 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_emit_simple_signal: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * 1131s # * Emits the "SimpleSignal" D-Bus signal. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_emit_simple_signal ( 1131s # OrgProjectSignalingIface *object) 1131s # { 1131s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_emit_single_arg_signal_ao: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * @arg_arg_ao: Argument to pass with the signal. 1131s # * 1131s # * Emits the "SingleArgSignalAo" D-Bus signal. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_emit_single_arg_signal_ao ( 1131s # OrgProjectSignalingIface *object, 1131s # const gchar *const *arg_arg_ao) 1131s # { 1131s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AO], 0, arg_arg_ao); 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceProxy: 1131s # * 1131s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceProxyClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #OrgProjectSignalingIfaceProxy. 1131s # */ 1131s # 1131s # struct _OrgProjectSignalingIfaceProxyPrivate 1131s # { 1131s # GData *qdata; 1131s # }; 1131s # 1131s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1131s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # org_project_signaling_iface_proxy_finalize (GObject *object) 1131s # { 1131s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1131s # g_datalist_clear (&proxy->priv->qdata); 1131s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1131s # guint prop_id G_GNUC_UNUSED, 1131s # GValue *value G_GNUC_UNUSED, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1131s # guint prop_id G_GNUC_UNUSED, 1131s # const GValue *value G_GNUC_UNUSED, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1131s # const gchar *sender_name G_GNUC_UNUSED, 1131s # const gchar *signal_name, 1131s # GVariant *parameters) 1131s # { 1131s # _ExtendedGDBusSignalInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # gsize n; 1131s # guint signal_id; 1131s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1131s # if (info == NULL) 1131s # return; 1131s # num_params = g_variant_n_children (parameters); 1131s # paramv = g_new0 (GValue, num_params + 1); 1131s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_value_set_object (¶mv[0], proxy); 1131s # g_variant_iter_init (&iter, parameters); 1131s # n = 1; 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_signal_emitv (paramv, signal_id, 0, NULL); 1131s # for (n = 0; n < num_params + 1; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1131s # GVariant *changed_properties, 1131s # const gchar *const *invalidated_properties) 1131s # { 1131s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1131s # guint n; 1131s # const gchar *key; 1131s # GVariantIter *iter; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # g_variant_get (changed_properties, "a{sv}", &iter); 1131s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1131s # g_datalist_remove_data (&proxy->priv->qdata, key); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # g_variant_iter_free (iter); 1131s # for (n = 0; invalidated_properties[n] != NULL; n++) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1131s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1131s # #else 1131s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1131s # #endif 1131s # 1131s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusProxyClass *proxy_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1131s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1131s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1131s # 1131s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1131s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1131s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_sync: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_for_bus: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceSkeleton: 1131s # * 1131s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceSkeletonClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1131s # */ 1131s # 1131s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1131s # { 1131s # GValue *properties; 1131s # GList *changed_properties; 1131s # GSource *changed_properties_idle_source; 1131s # GMainContext *context; 1131s # GMutex lock; 1131s # }; 1131s # 1131s # static void 1131s # _org_project_signaling_iface_skeleton_handle_method_call ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name, 1131s # const gchar *method_name, 1131s # GVariant *parameters, 1131s # GDBusMethodInvocation *invocation, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1131s # _ExtendedGDBusMethodInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # guint num_extra; 1131s # gsize n; 1131s # guint signal_id; 1131s # GValue return_value = G_VALUE_INIT; 1131s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1131s # g_assert (info != NULL); 1131s # num_params = g_variant_n_children (parameters); 1131s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1131s # n = 0; 1131s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_value_set_object (¶mv[n++], skeleton); 1131s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1131s # g_value_set_object (¶mv[n++], invocation); 1131s # if (info->pass_fdlist) 1131s # { 1131s # #ifdef G_OS_UNIX 1131s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1131s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1131s # #else 1131s # g_assert_not_reached (); 1131s # #endif 1131s # } 1131s # g_variant_iter_init (&iter, parameters); 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1131s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1131s # if (!g_value_get_boolean (&return_value)) 1131s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1131s # g_value_unset (&return_value); 1131s # for (n = 0; n < num_params + num_extra; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static GVariant * 1131s # _org_project_signaling_iface_skeleton_handle_get_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # GVariant *ret; 1131s # ret = NULL; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # g_value_init (&value, pspec->value_type); 1131s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1131s # g_value_unset (&value); 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static gboolean 1131s # _org_project_signaling_iface_skeleton_handle_set_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GVariant *variant, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # gboolean ret; 1131s # ret = FALSE; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # if (info->use_gvariant) 1131s # g_value_set_variant (&value, variant); 1131s # else 1131s # g_dbus_gvariant_to_gvalue (variant, &value); 1131s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # g_value_unset (&value); 1131s # ret = TRUE; 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1131s # { 1131s # _org_project_signaling_iface_skeleton_handle_method_call, 1131s # _org_project_signaling_iface_skeleton_handle_get_property, 1131s # _org_project_signaling_iface_skeleton_handle_set_property, 1131s # {NULL} 1131s # }; 1131s # 1131s # static GDBusInterfaceInfo * 1131s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return org_project_signaling_iface_interface_info (); 1131s # } 1131s # 1131s # static GDBusInterfaceVTable * 1131s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1131s # } 1131s # 1131s # static GVariant * 1131s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1131s # 1131s # GVariantBuilder builder; 1131s # guint n; 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1131s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #else 1131s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #endif 1131s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1131s # goto out; 1131s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1131s # { 1131s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1131s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1131s # { 1131s # GVariant *value; 1131s # 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); 1131s # if (value != NULL) 1131s # { 1131s # g_variant_take_ref (value); 1131s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1131s # g_variant_unref (value); 1131s # } 1131s # } 1131s # } 1131s # out: 1131s # return g_variant_builder_end (&builder); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # _org_project_signaling_iface_on_signal_simple_signal ( 1131s # OrgProjectSignalingIface *object) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1131s # 1131s # GList *connections, *l; 1131s # GVariant *signal_variant; 1131s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1131s # 1131s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1131s # for (l = connections; l != NULL; l = l->next) 1131s # { 1131s # GDBusConnection *connection = l->data; 1131s # g_dbus_connection_emit_signal (connection, 1131s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1131s # signal_variant, NULL); 1131s # } 1131s # g_variant_unref (signal_variant); 1131s # g_list_free_full (connections, g_object_unref); 1131s # } 1131s # 1131s # static void 1131s # _org_project_signaling_iface_on_signal_single_arg_signal_ao ( 1131s # OrgProjectSignalingIface *object, 1131s # const gchar *const *arg_arg_ao) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1131s # 1131s # GList *connections, *l; 1131s # GVariant *signal_variant; 1131s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1131s # 1131s # signal_variant = g_variant_ref_sink (g_variant_new ("(^ao)", 1131s # arg_arg_ao)); 1131s # for (l = connections; l != NULL; l = l->next) 1131s # { 1131s # GDBusConnection *connection = l->data; 1131s # g_dbus_connection_emit_signal (connection, 1131s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAo", 1131s # signal_variant, NULL); 1131s # } 1131s # g_variant_unref (signal_variant); 1131s # g_list_free_full (connections, g_object_unref); 1131s # } 1131s # 1131s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1131s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1131s # if (skeleton->priv->changed_properties_idle_source != NULL) 1131s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1131s # g_main_context_unref (skeleton->priv->context); 1131s # g_mutex_clear (&skeleton->priv->lock); 1131s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1131s # #else 1131s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1131s # #endif 1131s # 1131s # g_mutex_init (&skeleton->priv->lock); 1131s # skeleton->priv->context = g_main_context_ref_thread_default (); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusInterfaceSkeletonClass *skeleton_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1131s # 1131s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1131s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1131s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1131s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1131s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1131s # { 1131s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1131s # iface->single_arg_signal_ao = _org_project_signaling_iface_on_signal_single_arg_signal_ao; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_skeleton_new: 1131s # * 1131s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_skeleton_new (void) 1131s # { 1131s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1131s # } 1131s # Error: 1131s # 1131s # /tmp/tmp7tgphinq/tmpx9g64mvk.xml: 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmpx9g64mvk.xml', '--output', '-', '--body'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifdef HAVE_CONFIG_H 1131s # # include "config.h" 1131s # #endif 1131s # 1131s # #include 1131s # #ifdef G_OS_UNIX 1131s # # include 1131s # #endif 1131s # 1131s # #ifdef G_ENABLE_DEBUG 1131s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1131s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1131s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1131s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1131s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1131s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1131s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1131s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1131s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1131s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1131s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1131s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1131s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1131s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1131s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1131s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1131s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1131s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1131s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1131s # #else /* !G_ENABLE_DEBUG */ 1131s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1131s # * Do not access GValues directly in your code. Instead, use the 1131s # * g_value_get_*() functions 1131s # */ 1131s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1131s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1131s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1131s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1131s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1131s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1131s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1131s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1131s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1131s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1131s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1131s # #endif /* !G_ENABLE_DEBUG */ 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusArgInfo parent_struct; 1131s # gboolean use_gvariant; 1131s # } _ExtendedGDBusArgInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusMethodInfo parent_struct; 1131s # const gchar *signal_name; 1131s # gboolean pass_fdlist; 1131s # } _ExtendedGDBusMethodInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusSignalInfo parent_struct; 1131s # const gchar *signal_name; 1131s # } _ExtendedGDBusSignalInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusPropertyInfo parent_struct; 1131s # const gchar *hyphen_name; 1131s # guint use_gvariant : 1; 1131s # guint emits_changed_signal : 1; 1131s # } _ExtendedGDBusPropertyInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusInterfaceInfo parent_struct; 1131s # const gchar *hyphen_name; 1131s # } _ExtendedGDBusInterfaceInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # const _ExtendedGDBusPropertyInfo *info; 1131s # guint prop_id; 1131s # GValue orig_value; /* the value before the change */ 1131s # } ChangedProperty; 1131s # 1131s # static void 1131s # _changed_property_free (ChangedProperty *data) 1131s # { 1131s # g_value_unset (&data->orig_value); 1131s # g_free (data); 1131s # } 1131s # 1131s # static gboolean 1131s # _g_strv_equal0 (gchar **a, gchar **b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # guint n; 1131s # if (a == NULL && b == NULL) 1131s # { 1131s # ret = TRUE; 1131s # goto out; 1131s # } 1131s # if (a == NULL || b == NULL) 1131s # goto out; 1131s # if (g_strv_length (a) != g_strv_length (b)) 1131s # goto out; 1131s # for (n = 0; a[n] != NULL; n++) 1131s # if (g_strcmp0 (a[n], b[n]) != 0) 1131s # goto out; 1131s # ret = TRUE; 1131s # out: 1131s # return ret; 1131s # } 1131s # 1131s # static gboolean 1131s # _g_variant_equal0 (GVariant *a, GVariant *b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # if (a == NULL && b == NULL) 1131s # { 1131s # ret = TRUE; 1131s # goto out; 1131s # } 1131s # if (a == NULL || b == NULL) 1131s # goto out; 1131s # ret = g_variant_equal (a, b); 1131s # out: 1131s # return ret; 1131s # } 1131s # 1131s # G_GNUC_UNUSED static gboolean 1131s # _g_value_equal (const GValue *a, const GValue *b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1131s # switch (G_VALUE_TYPE (a)) 1131s # { 1131s # case G_TYPE_BOOLEAN: 1131s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1131s # break; 1131s # case G_TYPE_UCHAR: 1131s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1131s # break; 1131s # case G_TYPE_INT: 1131s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1131s # break; 1131s # case G_TYPE_UINT: 1131s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1131s # break; 1131s # case G_TYPE_INT64: 1131s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1131s # break; 1131s # case G_TYPE_UINT64: 1131s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1131s # break; 1131s # case G_TYPE_DOUBLE: 1131s # { 1131s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1131s # gdouble da = g_value_get_double (a); 1131s # gdouble db = g_value_get_double (b); 1131s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1131s # } 1131s # break; 1131s # case G_TYPE_STRING: 1131s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1131s # break; 1131s # case G_TYPE_VARIANT: 1131s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1131s # break; 1131s # default: 1131s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1131s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1131s # else 1131s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1131s # break; 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ 1131s # * Code for interface org.project.SignalingIface 1131s # * ------------------------------------------------------------------------ 1131s # */ 1131s # 1131s # /** 1131s # * SECTION:OrgProjectSignalingIface 1131s # * @title: OrgProjectSignalingIface 1131s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1131s # * 1131s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1131s # */ 1131s # 1131s # enum 1131s # { 1131s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1131s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY, 1131s # }; 1131s # 1131s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1131s # 1131s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1131s # 1131s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "SimpleSignal", 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "simple-signal" 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "arg_aay", 1131s # (gchar *) "aay", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers[] = 1131s # { 1131s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_arg_aay.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_aay = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "SingleArgSignalAay", 1131s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_aay_ARG_pointers, 1131s # NULL 1131s # }, 1131s # "single-arg-signal-aay" 1131s # }; 1131s # 1131s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1131s # { 1131s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_single_arg_signal_aay.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "org.project.SignalingIface", 1131s # NULL, 1131s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "org-project-signaling-iface", 1131s # }; 1131s # 1131s # 1131s # /** 1131s # * org_project_signaling_iface_interface_info: 1131s # * 1131s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1131s # * 1131s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1131s # */ 1131s # GDBusInterfaceInfo * 1131s # org_project_signaling_iface_interface_info (void) 1131s # { 1131s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_override_properties: 1131s # * @klass: The class structure for a #GObject derived class. 1131s # * @property_id_begin: The property id to assign to the first overridden property. 1131s # * 1131s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1131s # * The properties are overridden in the order they are defined. 1131s # * 1131s # * Returns: The last property id. 1131s # */ 1131s # guint 1131s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1131s # { 1131s # return property_id_begin - 1; 1131s # } 1131s # 1131s # 1131s # inline static void 1131s # org_project_signaling_iface_signal_marshal_simple_signal ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # g_cclosure_marshal_VOID__VOID (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # inline static void 1131s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # g_cclosure_marshal_VOID__BOXED (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # 1131s # /** 1131s # * OrgProjectSignalingIface: 1131s # * 1131s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceIface: 1131s # * @parent_iface: The parent interface. 1131s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1131s # * @single_arg_signal_aay: Handler for the #OrgProjectSignalingIface::single-arg-signal-aay signal. 1131s # * 1131s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1131s # */ 1131s # 1131s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1131s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1131s # 1131s # static void 1131s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1131s # { 1131s # /* GObject signals for received D-Bus signals: */ 1131s # /** 1131s # * OrgProjectSignalingIface::simple-signal: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * 1131s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1131s # * 1131s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1131s # */ 1131s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1131s # g_signal_new ("simple-signal", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1131s # NULL, 1131s # NULL, 1131s # org_project_signaling_iface_signal_marshal_simple_signal, 1131s # G_TYPE_NONE, 1131s # 0); 1131s # 1131s # /** 1131s # * OrgProjectSignalingIface::single-arg-signal-aay: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * @arg_arg_aay: Argument. 1131s # * 1131s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAay" is received. 1131s # * 1131s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1131s # */ 1131s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY] = 1131s # g_signal_new ("single-arg-signal-aay", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_aay), 1131s # NULL, 1131s # NULL, 1131s # org_project_signaling_iface_signal_marshal_single_arg_signal_aay, 1131s # G_TYPE_NONE, 1131s # 1, G_TYPE_STRV); 1131s # 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_emit_simple_signal: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * 1131s # * Emits the "SimpleSignal" D-Bus signal. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_emit_simple_signal ( 1131s # OrgProjectSignalingIface *object) 1131s # { 1131s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_emit_single_arg_signal_aay: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * @arg_arg_aay: Argument to pass with the signal. 1131s # * 1131s # * Emits the "SingleArgSignalAay" D-Bus signal. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_emit_single_arg_signal_aay ( 1131s # OrgProjectSignalingIface *object, 1131s # const gchar *const *arg_arg_aay) 1131s # { 1131s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_AAY], 0, arg_arg_aay); 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceProxy: 1131s # * 1131s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceProxyClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #OrgProjectSignalingIfaceProxy. 1131s # */ 1131s # 1131s # struct _OrgProjectSignalingIfaceProxyPrivate 1131s # { 1131s # GData *qdata; 1131s # }; 1131s # 1131s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1131s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # org_project_signaling_iface_proxy_finalize (GObject *object) 1131s # { 1131s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1131s # g_datalist_clear (&proxy->priv->qdata); 1131s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1131s # guint prop_id G_GNUC_UNUSED, 1131s # GValue *value G_GNUC_UNUSED, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1131s # guint prop_id G_GNUC_UNUSED, 1131s # const GValue *value G_GNUC_UNUSED, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1131s # const gchar *sender_name G_GNUC_UNUSED, 1131s # const gchar *signal_name, 1131s # GVariant *parameters) 1131s # { 1131s # _ExtendedGDBusSignalInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # gsize n; 1131s # guint signal_id; 1131s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1131s # if (info == NULL) 1131s # return; 1131s # num_params = g_variant_n_children (parameters); 1131s # paramv = g_new0 (GValue, num_params + 1); 1131s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_value_set_object (¶mv[0], proxy); 1131s # g_variant_iter_init (&iter, parameters); 1131s # n = 1; 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_signal_emitv (paramv, signal_id, 0, NULL); 1131s # for (n = 0; n < num_params + 1; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1131s # GVariant *changed_properties, 1131s # const gchar *const *invalidated_properties) 1131s # { 1131s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1131s # guint n; 1131s # const gchar *key; 1131s # GVariantIter *iter; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # g_variant_get (changed_properties, "a{sv}", &iter); 1131s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1131s # g_datalist_remove_data (&proxy->priv->qdata, key); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # g_variant_iter_free (iter); 1131s # for (n = 0; invalidated_properties[n] != NULL; n++) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1131s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1131s # #else 1131s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1131s # #endif 1131s # 1131s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusProxyClass *proxy_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1131s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1131s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1131s # 1131s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1131s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1131s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_sync: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_for_bus: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceSkeleton: 1131s # * 1131s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceSkeletonClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1131s # */ 1131s # 1131s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1131s # { 1131s # GValue *properties; 1131s # GList *changed_properties; 1131s # GSource *changed_properties_idle_source; 1131s # GMainContext *context; 1131s # GMutex lock; 1131s # }; 1131s # 1131s # static void 1131s # _org_project_signaling_iface_skeleton_handle_method_call ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name, 1131s # const gchar *method_name, 1131s # GVariant *parameters, 1131s # GDBusMethodInvocation *invocation, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1131s # _ExtendedGDBusMethodInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # guint num_extra; 1131s # gsize n; 1131s # guint signal_id; 1131s # GValue return_value = G_VALUE_INIT; 1131s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1131s # g_assert (info != NULL); 1131s # num_params = g_variant_n_children (parameters); 1131s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1131s # n = 0; 1131s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_value_set_object (¶mv[n++], skeleton); 1131s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1131s # g_value_set_object (¶mv[n++], invocation); 1131s # if (info->pass_fdlist) 1131s # { 1131s # #ifdef G_OS_UNIX 1131s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1131s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1131s # #else 1131s # g_assert_not_reached (); 1131s # #endif 1131s # } 1131s # g_variant_iter_init (&iter, parameters); 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1131s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1131s # if (!g_value_get_boolean (&return_value)) 1131s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1131s # g_value_unset (&return_value); 1131s # for (n = 0; n < num_params + num_extra; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static GVariant * 1131s # _org_project_signaling_iface_skeleton_handle_get_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # GVariant *ret; 1131s # ret = NULL; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # g_value_init (&value, pspec->value_type); 1131s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1131s # g_value_unset (&value); 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static gboolean 1131s # _org_project_signaling_iface_skeleton_handle_set_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GVariant *variant, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # gboolean ret; 1131s # ret = FALSE; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # if (info->use_gvariant) 1131s # g_value_set_variant (&value, variant); 1131s # else 1131s # g_dbus_gvariant_to_gvalue (variant, &value); 1131s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # g_value_unset (&value); 1131s # ret = TRUE; 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1131s # { 1131s # _org_project_signaling_iface_skeleton_handle_method_call, 1131s # _org_project_signaling_iface_skeleton_handle_get_property, 1131s # _org_project_signaling_iface_skeleton_handle_set_property, 1131s # {NULL} 1131s # }; 1131s # 1131s # static GDBusInterfaceInfo * 1131s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return org_project_signaling_iface_interface_info (); 1131s # } 1131s # 1131s # static GDBusInterfaceVTable * 1131s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1131s # } 1131s # 1131s # static GVariant * 1131s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1131s # 1131s # GVariantBuilder builder; 1131s # guint n; 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1131s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #else 1131s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #endif 1131s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1131s # goto out; 1131s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1131s # { 1131s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1131s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1131s # { 1131s # GVariant *value; 1131s # 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); 1131s # if (value != NULL) 1131s # { 1131s # g_variant_take_ref (value); 1131s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1131s # g_variant_unref (value); 1131s # } 1131s # } 1131s # } 1131s # out: 1131s # return g_variant_builder_end (&builder); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # _org_project_signaling_iface_on_signal_simple_signal ( 1131s # OrgProjectSignalingIface *object) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1131s # 1131s # GList *connections, *l; 1131s # GVariant *signal_variant; 1131s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1131s # 1131s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1131s # for (l = connections; l != NULL; l = l->next) 1131s # { 1131s # GDBusConnection *connection = l->data; 1131s # g_dbus_connection_emit_signal (connection, 1131s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1131s # signal_variant, NULL); 1131s # } 1131s # g_variant_unref (signal_variant); 1131s # g_list_free_full (connections, g_object_unref); 1131s # } 1131s # 1131s # static void 1131s # _org_project_signaling_iface_on_signal_single_arg_signal_aay ( 1131s # OrgProjectSignalingIface *object, 1131s # const gchar *const *arg_arg_aay) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1131s # 1131s # GList *connections, *l; 1131s # GVariant *signal_variant; 1131s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1131s # 1131s # signal_variant = g_variant_ref_sink (g_variant_new ("(^aay)", 1131s # arg_arg_aay)); 1131s # for (l = connections; l != NULL; l = l->next) 1131s # { 1131s # GDBusConnection *connection = l->data; 1131s # g_dbus_connection_emit_signal (connection, 1131s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAay", 1131s # signal_variant, NULL); 1131s # } 1131s # g_variant_unref (signal_variant); 1131s # g_list_free_full (connections, g_object_unref); 1131s # } 1131s # 1131s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1131s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1131s # if (skeleton->priv->changed_properties_idle_source != NULL) 1131s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1131s # g_main_context_unref (skeleton->priv->context); 1131s # g_mutex_clear (&skeleton->priv->lock); 1131s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1131s # #else 1131s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1131s # #endif 1131s # 1131s # g_mutex_init (&skeleton->priv->lock); 1131s # skeleton->priv->context = g_main_context_ref_thread_default (); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusInterfaceSkeletonClass *skeleton_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1131s # 1131s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1131s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1131s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1131s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1131s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1131s # { 1131s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1131s # iface->single_arg_signal_aay = _org_project_signaling_iface_on_signal_single_arg_signal_aay; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_skeleton_new: 1131s # * 1131s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_skeleton_new (void) 1131s # { 1131s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1131s # } 1131s # Error: 1131s # 1131s # /tmp/tmp7tgphinq/tmp4tacmtra.xml: 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp7tgphinq/tmp4tacmtra.xml', '--output', '-', '--body'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifdef HAVE_CONFIG_H 1131s # # include "config.h" 1131s # #endif 1131s # 1131s # #include 1131s # #ifdef G_OS_UNIX 1131s # # include 1131s # #endif 1131s # 1131s # #ifdef G_ENABLE_DEBUG 1131s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1131s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1131s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1131s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1131s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1131s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1131s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1131s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1131s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1131s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1131s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1131s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1131s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1131s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1131s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1131s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1131s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1131s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1131s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1131s # #else /* !G_ENABLE_DEBUG */ 1131s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1131s # * Do not access GValues directly in your code. Instead, use the 1131s # * g_value_get_*() functions 1131s # */ 1131s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1131s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1131s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1131s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1131s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1131s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1131s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1131s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1131s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1131s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1131s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1131s # #endif /* !G_ENABLE_DEBUG */ 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusArgInfo parent_struct; 1131s # gboolean use_gvariant; 1131s # } _ExtendedGDBusArgInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusMethodInfo parent_struct; 1131s # const gchar *signal_name; 1131s # gboolean pass_fdlist; 1131s # } _ExtendedGDBusMethodInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusSignalInfo parent_struct; 1131s # const gchar *signal_name; 1131s # } _ExtendedGDBusSignalInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusPropertyInfo parent_struct; 1131s # const gchar *hyphen_name; 1131s # guint use_gvariant : 1; 1131s # guint emits_changed_signal : 1; 1131s # } _ExtendedGDBusPropertyInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusInterfaceInfo parent_struct; 1131s # const gchar *hyphen_name; 1131s # } _ExtendedGDBusInterfaceInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # const _ExtendedGDBusPropertyInfo *info; 1131s # guint prop_id; 1131s # GValue orig_value; /* the value before the change */ 1131s # } ChangedProperty; 1131s # 1131s # static void 1131s # _changed_property_free (ChangedProperty *data) 1131s # { 1131s # g_value_unset (&data->orig_value); 1131s # g_free (data); 1131s # } 1131s # 1131s # static gboolean 1131s # _g_strv_equal0 (gchar **a, gchar **b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # guint n; 1131s # if (a == NULL && b == NULL) 1131s # { 1131s # ret = TRUE; 1131s # goto out; 1131s # } 1131s # if (a == NULL || b == NULL) 1131s # goto out; 1131s # if (g_strv_length (a) != g_strv_length (b)) 1131s # goto out; 1131s # for (n = 0; a[n] != NULL; n++) 1131s # if (g_strcmp0 (a[n], b[n]) != 0) 1131s # goto out; 1131s # ret = TRUE; 1131s # out: 1131s # return ret; 1131s # } 1131s # 1131s # static gboolean 1131s # _g_variant_equal0 (GVariant *a, GVariant *b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # if (a == NULL && b == NULL) 1131s # { 1131s # ret = TRUE; 1131s # goto out; 1131s # } 1131s # if (a == NULL || b == NULL) 1131s # goto out; 1131s # ret = g_variant_equal (a, b); 1131s # out: 1131s # return ret; 1131s # } 1131s # 1131s # G_GNUC_UNUSED static gboolean 1131s # _g_value_equal (const GValue *a, const GValue *b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1131s # switch (G_VALUE_TYPE (a)) 1131s # { 1131s # case G_TYPE_BOOLEAN: 1131s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1131s # break; 1131s # case G_TYPE_UCHAR: 1131s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1131s # break; 1131s # case G_TYPE_INT: 1131s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1131s # break; 1131s # case G_TYPE_UINT: 1131s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1131s # break; 1131s # case G_TYPE_INT64: 1131s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1131s # break; 1131s # case G_TYPE_UINT64: 1131s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1131s # break; 1131s # case G_TYPE_DOUBLE: 1131s # { 1131s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1131s # gdouble da = g_value_get_double (a); 1131s # gdouble db = g_value_get_double (b); 1131s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1131s # } 1131s # break; 1131s # case G_TYPE_STRING: 1131s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1131s # break; 1131s # case G_TYPE_VARIANT: 1131s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1131s # break; 1131s # default: 1131s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1131s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1131s # else 1131s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1131s # break; 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ 1131s # * Code for interface org.project.SignalingIface 1131s # * ------------------------------------------------------------------------ 1131s # */ 1131s # 1131s # /** 1131s # * SECTION:OrgProjectSignalingIface 1131s # * @title: OrgProjectSignalingIface 1131s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1131s # * 1131s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1131s # */ 1131s # 1131s # enum 1131s # { 1131s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1131s # _ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV, 1131s # }; 1131s # 1131s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1131s # 1131s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1131s # 1131s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "SimpleSignal", 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "simple-signal" 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "arg_asv", 1131s # (gchar *) "a{sv}", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers[] = 1131s # { 1131s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_arg_asv.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_single_arg_signal_asv = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "SingleArgSignalAsv", 1131s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_single_arg_signal_asv_ARG_pointers, 1131s # NULL 1131s # }, 1131s # "single-arg-signal-asv" 1131s # }; 1131s # 1131s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1131s # { 1131s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_single_arg_signal_asv.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "org.project.SignalingIface", 1131s # NULL, 1131s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "org-project-signaling-iface", 1131s # }; 1131s # 1131s # 1131s # /** 1131s # * org_project_signaling_iface_interface_info: 1131s # * 1131s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1131s # * 1131s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1131s # */ 1131s # GDBusInterfaceInfo * 1131s # org_project_signaling_iface_interface_info (void) 1131s # { 1131s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_override_properties: 1131s # * @klass: The class structure for a #GObject derived class. 1131s # * @property_id_begin: The property id to assign to the first overridden property. 1131s # * 1131s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1131s # * The properties are overridden in the order they are defined. 1131s # * 1131s # * Returns: The last property id. 1131s # */ 1131s # guint 1131s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1131s # { 1131s # return property_id_begin - 1; 1131s # } 1131s # 1131s # 1131s # inline static void 1131s # org_project_signaling_iface_signal_marshal_simple_signal ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # g_cclosure_marshal_VOID__VOID (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # inline static void 1131s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # g_cclosure_marshal_VOID__VARIANT (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # 1131s # /** 1131s # * OrgProjectSignalingIface: 1131s # * 1131s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceIface: 1131s # * @parent_iface: The parent interface. 1131s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1131s # * @single_arg_signal_asv: Handler for the #OrgProjectSignalingIface::single-arg-signal-asv signal. 1131s # * 1131s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1131s # */ 1131s # 1131s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1131s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1131s # 1131s # static void 1131s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1131s # { 1131s # /* GObject signals for received D-Bus signals: */ 1131s # /** 1131s # * OrgProjectSignalingIface::simple-signal: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * 1131s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1131s # * 1131s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1131s # */ 1131s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1131s # g_signal_new ("simple-signal", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1131s # NULL, 1131s # NULL, 1131s # org_project_signaling_iface_signal_marshal_simple_signal, 1131s # G_TYPE_NONE, 1131s # 0); 1131s # 1131s # /** 1131s # * OrgProjectSignalingIface::single-arg-signal-asv: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * @arg_arg_asv: Argument. 1131s # * 1131s # * On the client-side, this signal is emitted whenever the D-Bus signal "SingleArgSignalAsv" is received. 1131s # * 1131s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1131s # */ 1131s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV] = 1131s # g_signal_new ("single-arg-signal-asv", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, single_arg_signal_asv), 1131s # NULL, 1131s # NULL, 1131s # org_project_signaling_iface_signal_marshal_single_arg_signal_asv, 1131s # G_TYPE_NONE, 1131s # 1, G_TYPE_VARIANT); 1131s # 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_emit_simple_signal: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * 1131s # * Emits the "SimpleSignal" D-Bus signal. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_emit_simple_signal ( 1131s # OrgProjectSignalingIface *object) 1131s # { 1131s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_emit_single_arg_signal_asv: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * @arg_arg_asv: Argument to pass with the signal. 1131s # * 1131s # * Emits the "SingleArgSignalAsv" D-Bus signal. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_emit_single_arg_signal_asv ( 1131s # OrgProjectSignalingIface *object, 1131s # GVariant *arg_arg_asv) 1131s # { 1131s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SINGLE_ARG_SIGNAL_ASV], 0, arg_arg_asv); 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceProxy: 1131s # * 1131s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceProxyClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #OrgProjectSignalingIfaceProxy. 1131s # */ 1131s # 1131s # struct _OrgProjectSignalingIfaceProxyPrivate 1131s # { 1131s # GData *qdata; 1131s # }; 1131s # 1131s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1131s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # org_project_signaling_iface_proxy_finalize (GObject *object) 1131s # { 1131s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1131s # g_datalist_clear (&proxy->priv->qdata); 1131s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1131s # guint prop_id G_GNUC_UNUSED, 1131s # GValue *value G_GNUC_UNUSED, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1131s # guint prop_id G_GNUC_UNUSED, 1131s # const GValue *value G_GNUC_UNUSED, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1131s # const gchar *sender_name G_GNUC_UNUSED, 1131s # const gchar *signal_name, 1131s # GVariant *parameters) 1131s # { 1131s # _ExtendedGDBusSignalInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # gsize n; 1131s # guint signal_id; 1131s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1131s # if (info == NULL) 1131s # return; 1131s # num_params = g_variant_n_children (parameters); 1131s # paramv = g_new0 (GValue, num_params + 1); 1131s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_value_set_object (¶mv[0], proxy); 1131s # g_variant_iter_init (&iter, parameters); 1131s # n = 1; 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_signal_emitv (paramv, signal_id, 0, NULL); 1131s # for (n = 0; n < num_params + 1; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1131s # GVariant *changed_properties, 1131s # const gchar *const *invalidated_properties) 1131s # { 1131s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1131s # guint n; 1131s # const gchar *key; 1131s # GVariantIter *iter; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # g_variant_get (changed_properties, "a{sv}", &iter); 1131s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1131s # g_datalist_remove_data (&proxy->priv->qdata, key); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # g_variant_iter_free (iter); 1131s # for (n = 0; invalidated_properties[n] != NULL; n++) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1131s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1131s # #else 1131s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1131s # #endif 1131s # 1131s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusProxyClass *proxy_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1131s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1131s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1131s # 1131s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1131s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1131s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_sync: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_for_bus: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceSkeleton: 1131s # * 1131s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceSkeletonClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1131s # */ 1131s # 1131s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1131s # { 1131s # GValue *properties; 1131s # GList *changed_properties; 1131s # GSource *changed_properties_idle_source; 1131s # GMainContext *context; 1131s # GMutex lock; 1131s # }; 1131s # 1131s # static void 1131s # _org_project_signaling_iface_skeleton_handle_method_call ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name, 1131s # const gchar *method_name, 1131s # GVariant *parameters, 1131s # GDBusMethodInvocation *invocation, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1131s # _ExtendedGDBusMethodInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # guint num_extra; 1131s # gsize n; 1131s # guint signal_id; 1131s # GValue return_value = G_VALUE_INIT; 1131s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1131s # g_assert (info != NULL); 1131s # num_params = g_variant_n_children (parameters); 1131s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1131s # n = 0; 1131s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_value_set_object (¶mv[n++], skeleton); 1131s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1131s # g_value_set_object (¶mv[n++], invocation); 1131s # if (info->pass_fdlist) 1131s # { 1131s # #ifdef G_OS_UNIX 1131s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1131s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1131s # #else 1131s # g_assert_not_reached (); 1131s # #endif 1131s # } 1131s # g_variant_iter_init (&iter, parameters); 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1131s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1131s # if (!g_value_get_boolean (&return_value)) 1131s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1131s # g_value_unset (&return_value); 1131s # for (n = 0; n < num_params + num_extra; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static GVariant * 1131s # _org_project_signaling_iface_skeleton_handle_get_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # GVariant *ret; 1131s # ret = NULL; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # g_value_init (&value, pspec->value_type); 1131s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1131s # g_value_unset (&value); 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static gboolean 1131s # _org_project_signaling_iface_skeleton_handle_set_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GVariant *variant, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # gboolean ret; 1131s # ret = FALSE; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # if (info->use_gvariant) 1131s # g_value_set_variant (&value, variant); 1131s # else 1131s # g_dbus_gvariant_to_gvalue (variant, &value); 1131s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # g_value_unset (&value); 1131s # ret = TRUE; 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1131s # { 1131s # _org_project_signaling_iface_skeleton_handle_method_call, 1131s # _org_project_signaling_iface_skeleton_handle_get_property, 1131s # _org_project_signaling_iface_skeleton_handle_set_property, 1131s # {NULL} 1131s # }; 1131s # 1131s # static GDBusInterfaceInfo * 1131s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return org_project_signaling_iface_interface_info (); 1131s # } 1131s # 1131s # static GDBusInterfaceVTable * 1131s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1131s # } 1131s # 1131s # static GVariant * 1131s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1131s # 1131s # GVariantBuilder builder; 1131s # guint n; 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1131s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #else 1131s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #endif 1131s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1131s # goto out; 1131s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1131s # { 1131s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1131s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1131s # { 1131s # GVariant *value; 1131s # 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); 1131s # if (value != NULL) 1131s # { 1131s # g_variant_take_ref (value); 1131s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1131s # g_variant_unref (value); 1131s # } 1131s # } 1131s # } 1131s # out: 1131s # return g_variant_builder_end (&builder); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # _org_project_signaling_iface_on_signal_simple_signal ( 1131s # OrgProjectSignalingIface *object) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1131s # 1131s # GList *connections, *l; 1131s # GVariant *signal_variant; 1131s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1131s # 1131s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1131s # for (l = connections; l != NULL; l = l->next) 1131s # { 1131s # GDBusConnection *connection = l->data; 1131s # g_dbus_connection_emit_signal (connection, 1131s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1131s # signal_variant, NULL); 1131s # } 1131s # g_variant_unref (signal_variant); 1131s # g_list_free_full (connections, g_object_unref); 1131s # } 1131s # 1131s # static void 1131s # _org_project_signaling_iface_on_signal_single_arg_signal_asv ( 1131s # OrgProjectSignalingIface *object, 1131s # GVariant *arg_arg_asv) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1131s # 1131s # GList *connections, *l; 1131s # GVariant *signal_variant; 1131s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1131s # 1131s # signal_variant = g_variant_ref_sink (g_variant_new ("(@a{sv})", 1131s # arg_arg_asv)); 1131s # for (l = connections; l != NULL; l = l->next) 1131s # { 1131s # GDBusConnection *connection = l->data; 1131s # g_dbus_connection_emit_signal (connection, 1131s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SingleArgSignalAsv", 1131s # signal_variant, NULL); 1131s # } 1131s # g_variant_unref (signal_variant); 1131s # g_list_free_full (connections, g_object_unref); 1131s # } 1131s # 1131s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1131s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1131s # if (skeleton->priv->changed_properties_idle_source != NULL) 1131s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1131s # g_main_context_unref (skeleton->priv->context); 1131s # g_mutex_clear (&skeleton->priv->lock); 1131s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1131s # #else 1131s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1131s # #endif 1131s # 1131s # g_mutex_init (&skeleton->priv->lock); 1131s # skeleton->priv->context = g_main_context_ref_thread_default (); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusInterfaceSkeletonClass *skeleton_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1131s # 1131s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1131s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1131s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1131s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1131s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1131s # { 1131s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1131s # iface->single_arg_signal_asv = _org_project_signaling_iface_on_signal_single_arg_signal_asv; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_skeleton_new: 1131s # * 1131s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_skeleton_new (void) 1131s # { 1131s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1131s # } 1131s # Error: 1131s ok 24 __main__.TestCodegen.test_generate_signals_marshallers_multiple_args 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmpgzz6izlg 1131s # /tmp/tmpgzz6izlg/tmp27v6rpme.xml: 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgzz6izlg/tmp27v6rpme.xml', '--output', '-', '--body'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifdef HAVE_CONFIG_H 1131s # # include "config.h" 1131s # #endif 1131s # 1131s # #include 1131s # #ifdef G_OS_UNIX 1131s # # include 1131s # #endif 1131s # 1131s # #ifdef G_ENABLE_DEBUG 1131s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1131s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1131s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1131s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1131s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1131s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1131s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1131s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1131s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1131s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1131s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1131s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1131s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1131s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1131s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1131s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1131s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1131s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1131s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1131s # #else /* !G_ENABLE_DEBUG */ 1131s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1131s # * Do not access GValues directly in your code. Instead, use the 1131s # * g_value_get_*() functions 1131s # */ 1131s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1131s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1131s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1131s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1131s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1131s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1131s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1131s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1131s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1131s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1131s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1131s # #endif /* !G_ENABLE_DEBUG */ 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusArgInfo parent_struct; 1131s # gboolean use_gvariant; 1131s # } _ExtendedGDBusArgInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusMethodInfo parent_struct; 1131s # const gchar *signal_name; 1131s # gboolean pass_fdlist; 1131s # } _ExtendedGDBusMethodInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusSignalInfo parent_struct; 1131s # const gchar *signal_name; 1131s # } _ExtendedGDBusSignalInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusPropertyInfo parent_struct; 1131s # const gchar *hyphen_name; 1131s # guint use_gvariant : 1; 1131s # guint emits_changed_signal : 1; 1131s # } _ExtendedGDBusPropertyInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusInterfaceInfo parent_struct; 1131s # const gchar *hyphen_name; 1131s # } _ExtendedGDBusInterfaceInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # const _ExtendedGDBusPropertyInfo *info; 1131s # guint prop_id; 1131s # GValue orig_value; /* the value before the change */ 1131s # } ChangedProperty; 1131s # 1131s # static void 1131s # _changed_property_free (ChangedProperty *data) 1131s # { 1131s # g_value_unset (&data->orig_value); 1131s # g_free (data); 1131s # } 1131s # 1131s # static gboolean 1131s # _g_strv_equal0 (gchar **a, gchar **b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # guint n; 1131s # if (a == NULL && b == NULL) 1131s # { 1131s # ret = TRUE; 1131s # goto out; 1131s # } 1131s # if (a == NULL || b == NULL) 1131s # goto out; 1131s # if (g_strv_length (a) != g_strv_length (b)) 1131s # goto out; 1131s # for (n = 0; a[n] != NULL; n++) 1131s # if (g_strcmp0 (a[n], b[n]) != 0) 1131s # goto out; 1131s # ret = TRUE; 1131s # out: 1131s # return ret; 1131s # } 1131s # 1131s # static gboolean 1131s # _g_variant_equal0 (GVariant *a, GVariant *b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # if (a == NULL && b == NULL) 1131s # { 1131s # ret = TRUE; 1131s # goto out; 1131s # } 1131s # if (a == NULL || b == NULL) 1131s # goto out; 1131s # ret = g_variant_equal (a, b); 1131s # out: 1131s # return ret; 1131s # } 1131s # 1131s # G_GNUC_UNUSED static gboolean 1131s # _g_value_equal (const GValue *a, const GValue *b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1131s # switch (G_VALUE_TYPE (a)) 1131s # { 1131s # case G_TYPE_BOOLEAN: 1131s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1131s # break; 1131s # case G_TYPE_UCHAR: 1131s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1131s # break; 1131s # case G_TYPE_INT: 1131s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1131s # break; 1131s # case G_TYPE_UINT: 1131s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1131s # break; 1131s # case G_TYPE_INT64: 1131s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1131s # break; 1131s # case G_TYPE_UINT64: 1131s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1131s # break; 1131s # case G_TYPE_DOUBLE: 1131s # { 1131s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1131s # gdouble da = g_value_get_double (a); 1131s # gdouble db = g_value_get_double (b); 1131s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1131s # } 1131s # break; 1131s # case G_TYPE_STRING: 1131s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1131s # break; 1131s # case G_TYPE_VARIANT: 1131s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1131s # break; 1131s # default: 1131s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1131s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1131s # else 1131s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1131s # break; 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static void 1131s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT ( 1131s # GClosure *closure, 1131s # GValue *return_value G_GNUC_UNUSED, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint G_GNUC_UNUSED, 1131s # void *marshal_data) 1131s # { 1131s # typedef void (*_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1131s # (void *data1, 1131s # gboolean arg_an_b, 1131s # guchar arg_an_y, 1131s # gint16 arg_an_n, 1131s # guint16 arg_an_q, 1131s # gint arg_an_i, 1131s # guint arg_an_u, 1131s # gint64 arg_an_x, 1131s # guint64 arg_an_t, 1131s # gdouble arg_an_d, 1131s # const gchar *arg_an_s, 1131s # const gchar *arg_an_o, 1131s # const gchar *arg_an_g, 1131s # GVariant *arg_an_h, 1131s # const gchar *arg_an_ay, 1131s # const gchar *const *arg_an_as, 1131s # const gchar *const *arg_an_ao, 1131s # const gchar *const *arg_an_aay, 1131s # GVariant *arg_an_asv, 1131s # void *data2); 1131s # _GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc callback; 1131s # GCClosure *cc = (GCClosure*) closure; 1131s # void *data1, *data2; 1131s # 1131s # g_return_if_fail (n_param_values == 19); 1131s # 1131s # if (G_CCLOSURE_SWAP_DATA (closure)) 1131s # { 1131s # data1 = closure->data; 1131s # data2 = g_value_peek_pointer (param_values + 0); 1131s # } 1131s # else 1131s # { 1131s # data1 = g_value_peek_pointer (param_values + 0); 1131s # data2 = closure->data; 1131s # } 1131s # 1131s # callback = (_GDbusCodegenMarshalVoid_BooleanUcharIntUintIntUintInt64Uint64DoubleStringStringStringVariantStringBoxedBoxedBoxedVariantFunc) 1131s # (marshal_data ? marshal_data : cc->callback); 1131s # 1131s # callback (data1, 1131s # g_marshal_value_peek_boolean (param_values + 1), 1131s # g_marshal_value_peek_uchar (param_values + 2), 1131s # g_marshal_value_peek_int (param_values + 3), 1131s # g_marshal_value_peek_uint (param_values + 4), 1131s # g_marshal_value_peek_int (param_values + 5), 1131s # g_marshal_value_peek_uint (param_values + 6), 1131s # g_marshal_value_peek_int64 (param_values + 7), 1131s # g_marshal_value_peek_uint64 (param_values + 8), 1131s # g_marshal_value_peek_double (param_values + 9), 1131s # g_marshal_value_peek_string (param_values + 10), 1131s # g_marshal_value_peek_string (param_values + 11), 1131s # g_marshal_value_peek_string (param_values + 12), 1131s # g_marshal_value_peek_variant (param_values + 13), 1131s # g_marshal_value_peek_string (param_values + 14), 1131s # g_marshal_value_peek_boxed (param_values + 15), 1131s # g_marshal_value_peek_boxed (param_values + 16), 1131s # g_marshal_value_peek_boxed (param_values + 17), 1131s # g_marshal_value_peek_variant (param_values + 18), 1131s # data2); 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ 1131s # * Code for interface org.project.SignalingIface 1131s # * ------------------------------------------------------------------------ 1131s # */ 1131s # 1131s # /** 1131s # * SECTION:OrgProjectSignalingIface 1131s # * @title: OrgProjectSignalingIface 1131s # * @short_description: Generated C code for the org.project.SignalingIface D-Bus interface 1131s # * 1131s # * This section contains code for working with the org.project.SignalingIface D-Bus interface in C. 1131s # */ 1131s # 1131s # enum 1131s # { 1131s # _ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL, 1131s # _ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS, 1131s # }; 1131s # 1131s # static unsigned _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[2] = { 0 }; 1131s # 1131s # /* ---- Introspection data for org.project.SignalingIface ---- */ 1131s # 1131s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_simple_signal = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "SimpleSignal", 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "simple-signal" 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_b", 1131s # (gchar *) "b", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_y", 1131s # (gchar *) "y", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_n", 1131s # (gchar *) "n", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_q", 1131s # (gchar *) "q", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_i", 1131s # (gchar *) "i", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_u", 1131s # (gchar *) "u", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_x", 1131s # (gchar *) "x", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_t", 1131s # (gchar *) "t", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_d", 1131s # (gchar *) "d", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_s", 1131s # (gchar *) "s", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_o", 1131s # (gchar *) "o", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_g", 1131s # (gchar *) "g", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_h", 1131s # (gchar *) "h", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_ay", 1131s # (gchar *) "ay", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_as", 1131s # (gchar *) "as", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_ao", 1131s # (gchar *) "ao", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_aay", 1131s # (gchar *) "aay", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusArgInfo _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "an_asv", 1131s # (gchar *) "a{sv}", 1131s # NULL 1131s # }, 1131s # FALSE 1131s # }; 1131s # 1131s # static const GDBusArgInfo * const _org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers[] = 1131s # { 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_b.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_y.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_n.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_q.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_i.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_u.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_x.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_t.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_d.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_s.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_o.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_g.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_h.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ay.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_as.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_ao.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_aay.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_an_asv.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusSignalInfo _org_project_signaling_iface_signal_info_signal_with_many_args = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "SignalWithManyArgs", 1131s # (GDBusArgInfo **) &_org_project_signaling_iface_signal_info_signal_with_many_args_ARG_pointers, 1131s # NULL 1131s # }, 1131s # "signal-with-many-args" 1131s # }; 1131s # 1131s # static const GDBusSignalInfo * const _org_project_signaling_iface_signal_info_pointers[] = 1131s # { 1131s # &_org_project_signaling_iface_signal_info_simple_signal.parent_struct, 1131s # &_org_project_signaling_iface_signal_info_signal_with_many_args.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusInterfaceInfo _org_project_signaling_iface_interface_info = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "org.project.SignalingIface", 1131s # NULL, 1131s # (GDBusSignalInfo **) &_org_project_signaling_iface_signal_info_pointers, 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "org-project-signaling-iface", 1131s # }; 1131s # 1131s # 1131s # /** 1131s # * org_project_signaling_iface_interface_info: 1131s # * 1131s # * Gets a machine-readable description of the org.project.SignalingIface D-Bus interface. 1131s # * 1131s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1131s # */ 1131s # GDBusInterfaceInfo * 1131s # org_project_signaling_iface_interface_info (void) 1131s # { 1131s # return (GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_override_properties: 1131s # * @klass: The class structure for a #GObject derived class. 1131s # * @property_id_begin: The property id to assign to the first overridden property. 1131s # * 1131s # * Overrides all #GObject properties in the #OrgProjectSignalingIface interface for a concrete class. 1131s # * The properties are overridden in the order they are defined. 1131s # * 1131s # * Returns: The last property id. 1131s # */ 1131s # guint 1131s # org_project_signaling_iface_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1131s # { 1131s # return property_id_begin - 1; 1131s # } 1131s # 1131s # 1131s # inline static void 1131s # org_project_signaling_iface_signal_marshal_simple_signal ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # g_cclosure_marshal_VOID__VOID (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # inline static void 1131s # org_project_signaling_iface_signal_marshal_signal_with_many_args ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # _g_dbus_codegen_marshal_VOID__BOOLEAN_UCHAR_INT_UINT_INT_UINT_INT64_UINT64_DOUBLE_STRING_STRING_STRING_VARIANT_STRING_BOXED_BOXED_BOXED_VARIANT (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # 1131s # /** 1131s # * OrgProjectSignalingIface: 1131s # * 1131s # * Abstract interface type for the D-Bus interface org.project.SignalingIface. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceIface: 1131s # * @parent_iface: The parent interface. 1131s # * @signal_with_many_args: Handler for the #OrgProjectSignalingIface::signal-with-many-args signal. 1131s # * @simple_signal: Handler for the #OrgProjectSignalingIface::simple-signal signal. 1131s # * 1131s # * Virtual table for the D-Bus interface org.project.SignalingIface. 1131s # */ 1131s # 1131s # typedef OrgProjectSignalingIfaceIface OrgProjectSignalingIfaceInterface; 1131s # G_DEFINE_INTERFACE (OrgProjectSignalingIface, org_project_signaling_iface, G_TYPE_OBJECT) 1131s # 1131s # static void 1131s # org_project_signaling_iface_default_init (OrgProjectSignalingIfaceIface *iface) 1131s # { 1131s # /* GObject signals for received D-Bus signals: */ 1131s # /** 1131s # * OrgProjectSignalingIface::simple-signal: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * 1131s # * On the client-side, this signal is emitted whenever the D-Bus signal "SimpleSignal" is received. 1131s # * 1131s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1131s # */ 1131s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL] = 1131s # g_signal_new ("simple-signal", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, simple_signal), 1131s # NULL, 1131s # NULL, 1131s # org_project_signaling_iface_signal_marshal_simple_signal, 1131s # G_TYPE_NONE, 1131s # 0); 1131s # 1131s # /** 1131s # * OrgProjectSignalingIface::signal-with-many-args: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * @arg_an_b: Argument. 1131s # * @arg_an_y: Argument. 1131s # * @arg_an_n: Argument. 1131s # * @arg_an_q: Argument. 1131s # * @arg_an_i: Argument. 1131s # * @arg_an_u: Argument. 1131s # * @arg_an_x: Argument. 1131s # * @arg_an_t: Argument. 1131s # * @arg_an_d: Argument. 1131s # * @arg_an_s: Argument. 1131s # * @arg_an_o: Argument. 1131s # * @arg_an_g: Argument. 1131s # * @arg_an_h: Argument. 1131s # * @arg_an_ay: Argument. 1131s # * @arg_an_as: Argument. 1131s # * @arg_an_ao: Argument. 1131s # * @arg_an_aay: Argument. 1131s # * @arg_an_asv: Argument. 1131s # * 1131s # * On the client-side, this signal is emitted whenever the D-Bus signal "SignalWithManyArgs" is received. 1131s # * 1131s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1131s # */ 1131s # _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIGNAL_WITH_MANY_ARGS] = 1131s # g_signal_new ("signal-with-many-args", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (OrgProjectSignalingIfaceIface, signal_with_many_args), 1131s # NULL, 1131s # NULL, 1131s # org_project_signaling_iface_signal_marshal_signal_with_many_args, 1131s # G_TYPE_NONE, 1131s # 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); 1131s # 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_emit_simple_signal: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * 1131s # * Emits the "SimpleSignal" D-Bus signal. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_emit_simple_signal ( 1131s # OrgProjectSignalingIface *object) 1131s # { 1131s # g_signal_emit (object, _ORG_PROJECT_SIGNALING_IFACE_SIGNALS[_ORG_PROJECT_SIGNALING_IFACE_SIMPLE_SIGNAL], 0); 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_emit_signal_with_many_args: 1131s # * @object: A #OrgProjectSignalingIface. 1131s # * @arg_an_b: Argument to pass with the signal. 1131s # * @arg_an_y: Argument to pass with the signal. 1131s # * @arg_an_n: Argument to pass with the signal. 1131s # * @arg_an_q: Argument to pass with the signal. 1131s # * @arg_an_i: Argument to pass with the signal. 1131s # * @arg_an_u: Argument to pass with the signal. 1131s # * @arg_an_x: Argument to pass with the signal. 1131s # * @arg_an_t: Argument to pass with the signal. 1131s # * @arg_an_d: Argument to pass with the signal. 1131s # * @arg_an_s: Argument to pass with the signal. 1131s # * @arg_an_o: Argument to pass with the signal. 1131s # * @arg_an_g: Argument to pass with the signal. 1131s # * @arg_an_h: Argument to pass with the signal. 1131s # * @arg_an_ay: Argument to pass with the signal. 1131s # * @arg_an_as: Argument to pass with the signal. 1131s # * @arg_an_ao: Argument to pass with the signal. 1131s # * @arg_an_aay: Argument to pass with the signal. 1131s # * @arg_an_asv: Argument to pass with the signal. 1131s # * 1131s # * Emits the "SignalWithManyArgs" D-Bus signal. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_emit_signal_with_many_args ( 1131s # OrgProjectSignalingIface *object, 1131s # gboolean arg_an_b, 1131s # guchar arg_an_y, 1131s # gint16 arg_an_n, 1131s # guint16 arg_an_q, 1131s # gint arg_an_i, 1131s # guint arg_an_u, 1131s # gint64 arg_an_x, 1131s # guint64 arg_an_t, 1131s # gdouble arg_an_d, 1131s # const gchar *arg_an_s, 1131s # const gchar *arg_an_o, 1131s # const gchar *arg_an_g, 1131s # GVariant *arg_an_h, 1131s # const gchar *arg_an_ay, 1131s # const gchar *const *arg_an_as, 1131s # const gchar *const *arg_an_ao, 1131s # const gchar *const *arg_an_aay, 1131s # GVariant *arg_an_asv) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceProxy: 1131s # * 1131s # * The #OrgProjectSignalingIfaceProxy structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceProxyClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #OrgProjectSignalingIfaceProxy. 1131s # */ 1131s # 1131s # struct _OrgProjectSignalingIfaceProxyPrivate 1131s # { 1131s # GData *qdata; 1131s # }; 1131s # 1131s # static void org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface); 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1131s # G_ADD_PRIVATE (OrgProjectSignalingIfaceProxy) 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceProxy, org_project_signaling_iface_proxy, G_TYPE_DBUS_PROXY, 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_proxy_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # org_project_signaling_iface_proxy_finalize (GObject *object) 1131s # { 1131s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (object); 1131s # g_datalist_clear (&proxy->priv->qdata); 1131s # G_OBJECT_CLASS (org_project_signaling_iface_proxy_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_get_property (GObject *object G_GNUC_UNUSED, 1131s # guint prop_id G_GNUC_UNUSED, 1131s # GValue *value G_GNUC_UNUSED, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_set_property (GObject *object G_GNUC_UNUSED, 1131s # guint prop_id G_GNUC_UNUSED, 1131s # const GValue *value G_GNUC_UNUSED, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_g_signal (GDBusProxy *proxy, 1131s # const gchar *sender_name G_GNUC_UNUSED, 1131s # const gchar *signal_name, 1131s # GVariant *parameters) 1131s # { 1131s # _ExtendedGDBusSignalInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # gsize n; 1131s # guint signal_id; 1131s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, signal_name); 1131s # if (info == NULL) 1131s # return; 1131s # num_params = g_variant_n_children (parameters); 1131s # paramv = g_new0 (GValue, num_params + 1); 1131s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_value_set_object (¶mv[0], proxy); 1131s # g_variant_iter_init (&iter, parameters); 1131s # n = 1; 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_signal_emitv (paramv, signal_id, 0, NULL); 1131s # for (n = 0; n < num_params + 1; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_g_properties_changed (GDBusProxy *_proxy, 1131s # GVariant *changed_properties, 1131s # const gchar *const *invalidated_properties) 1131s # { 1131s # OrgProjectSignalingIfaceProxy *proxy = ORG_PROJECT_SIGNALING_IFACE_PROXY (_proxy); 1131s # guint n; 1131s # const gchar *key; 1131s # GVariantIter *iter; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # g_variant_get (changed_properties, "a{sv}", &iter); 1131s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, key); 1131s # g_datalist_remove_data (&proxy->priv->qdata, key); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # g_variant_iter_free (iter); 1131s # for (n = 0; invalidated_properties[n] != NULL; n++) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, invalidated_properties[n]); 1131s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_init (OrgProjectSignalingIfaceProxy *proxy) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # proxy->priv = org_project_signaling_iface_proxy_get_instance_private (proxy); 1131s # #else 1131s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_SIGNALING_IFACE_PROXY, OrgProjectSignalingIfaceProxyPrivate); 1131s # #endif 1131s # 1131s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_signaling_iface_interface_info ()); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_class_init (OrgProjectSignalingIfaceProxyClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusProxyClass *proxy_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = org_project_signaling_iface_proxy_finalize; 1131s # gobject_class->get_property = org_project_signaling_iface_proxy_get_property; 1131s # gobject_class->set_property = org_project_signaling_iface_proxy_set_property; 1131s # 1131s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1131s # proxy_class->g_signal = org_project_signaling_iface_proxy_g_signal; 1131s # proxy_class->g_properties_changed = org_project_signaling_iface_proxy_g_properties_changed; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceProxyPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_proxy_iface_init (OrgProjectSignalingIfaceIface *iface G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new() for more details. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_signaling_iface_proxy_new_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with org_project_signaling_iface_proxy_new(). 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_sync: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Synchronously creates a proxy for the D-Bus interface org.project.SignalingIface. See g_dbus_proxy_new_sync() for more details. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_for_bus: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Like org_project_signaling_iface_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_signaling_iface_proxy_new_for_bus_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # org_project_signaling_iface_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_for_bus_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_signaling_iface_proxy_new_for_bus(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with org_project_signaling_iface_proxy_new_for_bus(). 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_proxy_new_for_bus_sync: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Like org_project_signaling_iface_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_signaling_iface_proxy_new_for_bus() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_SIGNALING_IFACE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceSkeleton: 1131s # * 1131s # * The #OrgProjectSignalingIfaceSkeleton structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectSignalingIfaceSkeletonClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #OrgProjectSignalingIfaceSkeleton. 1131s # */ 1131s # 1131s # struct _OrgProjectSignalingIfaceSkeletonPrivate 1131s # { 1131s # GValue *properties; 1131s # GList *changed_properties; 1131s # GSource *changed_properties_idle_source; 1131s # GMainContext *context; 1131s # GMutex lock; 1131s # }; 1131s # 1131s # static void 1131s # _org_project_signaling_iface_skeleton_handle_method_call ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name, 1131s # const gchar *method_name, 1131s # GVariant *parameters, 1131s # GDBusMethodInvocation *invocation, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1131s # _ExtendedGDBusMethodInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # guint num_extra; 1131s # gsize n; 1131s # guint signal_id; 1131s # GValue return_value = G_VALUE_INIT; 1131s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1131s # g_assert (info != NULL); 1131s # num_params = g_variant_n_children (parameters); 1131s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1131s # n = 0; 1131s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_value_set_object (¶mv[n++], skeleton); 1131s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1131s # g_value_set_object (¶mv[n++], invocation); 1131s # if (info->pass_fdlist) 1131s # { 1131s # #ifdef G_OS_UNIX 1131s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1131s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1131s # #else 1131s # g_assert_not_reached (); 1131s # #endif 1131s # } 1131s # g_variant_iter_init (&iter, parameters); 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_SIGNALING_IFACE); 1131s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1131s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1131s # if (!g_value_get_boolean (&return_value)) 1131s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1131s # g_value_unset (&return_value); 1131s # for (n = 0; n < num_params + num_extra; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static GVariant * 1131s # _org_project_signaling_iface_skeleton_handle_get_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # GVariant *ret; 1131s # ret = NULL; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # g_value_init (&value, pspec->value_type); 1131s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1131s # g_value_unset (&value); 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static gboolean 1131s # _org_project_signaling_iface_skeleton_handle_set_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GVariant *variant, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # gboolean ret; 1131s # ret = FALSE; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_signaling_iface_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # if (info->use_gvariant) 1131s # g_value_set_variant (&value, variant); 1131s # else 1131s # g_dbus_gvariant_to_gvalue (variant, &value); 1131s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # g_value_unset (&value); 1131s # ret = TRUE; 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static const GDBusInterfaceVTable _org_project_signaling_iface_skeleton_vtable = 1131s # { 1131s # _org_project_signaling_iface_skeleton_handle_method_call, 1131s # _org_project_signaling_iface_skeleton_handle_get_property, 1131s # _org_project_signaling_iface_skeleton_handle_set_property, 1131s # {NULL} 1131s # }; 1131s # 1131s # static GDBusInterfaceInfo * 1131s # org_project_signaling_iface_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return org_project_signaling_iface_interface_info (); 1131s # } 1131s # 1131s # static GDBusInterfaceVTable * 1131s # org_project_signaling_iface_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return (GDBusInterfaceVTable *) &_org_project_signaling_iface_skeleton_vtable; 1131s # } 1131s # 1131s # static GVariant * 1131s # org_project_signaling_iface_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (_skeleton); 1131s # 1131s # GVariantBuilder builder; 1131s # guint n; 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1131s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #else 1131s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #endif 1131s # if (_org_project_signaling_iface_interface_info.parent_struct.properties == NULL) 1131s # goto out; 1131s # for (n = 0; _org_project_signaling_iface_interface_info.parent_struct.properties[n] != NULL; n++) 1131s # { 1131s # GDBusPropertyInfo *info = _org_project_signaling_iface_interface_info.parent_struct.properties[n]; 1131s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1131s # { 1131s # GVariant *value; 1131s # 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); 1131s # if (value != NULL) 1131s # { 1131s # g_variant_take_ref (value); 1131s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1131s # g_variant_unref (value); 1131s # } 1131s # } 1131s # } 1131s # out: 1131s # return g_variant_builder_end (&builder); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # _org_project_signaling_iface_on_signal_simple_signal ( 1131s # OrgProjectSignalingIface *object) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1131s # 1131s # GList *connections, *l; 1131s # GVariant *signal_variant; 1131s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1131s # 1131s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1131s # for (l = connections; l != NULL; l = l->next) 1131s # { 1131s # GDBusConnection *connection = l->data; 1131s # g_dbus_connection_emit_signal (connection, 1131s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SimpleSignal", 1131s # signal_variant, NULL); 1131s # } 1131s # g_variant_unref (signal_variant); 1131s # g_list_free_full (connections, g_object_unref); 1131s # } 1131s # 1131s # static void 1131s # _org_project_signaling_iface_on_signal_signal_with_many_args ( 1131s # OrgProjectSignalingIface *object, 1131s # gboolean arg_an_b, 1131s # guchar arg_an_y, 1131s # gint16 arg_an_n, 1131s # guint16 arg_an_q, 1131s # gint arg_an_i, 1131s # guint arg_an_u, 1131s # gint64 arg_an_x, 1131s # guint64 arg_an_t, 1131s # gdouble arg_an_d, 1131s # const gchar *arg_an_s, 1131s # const gchar *arg_an_o, 1131s # const gchar *arg_an_g, 1131s # GVariant *arg_an_h, 1131s # const gchar *arg_an_ay, 1131s # const gchar *const *arg_an_as, 1131s # const gchar *const *arg_an_ao, 1131s # const gchar *const *arg_an_aay, 1131s # GVariant *arg_an_asv) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1131s # 1131s # GList *connections, *l; 1131s # GVariant *signal_variant; 1131s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1131s # 1131s # signal_variant = g_variant_ref_sink (g_variant_new ("(bynqiuxtdsog@h^ay^as^ao^aay@a{sv})", 1131s # arg_an_b, 1131s # arg_an_y, 1131s # arg_an_n, 1131s # arg_an_q, 1131s # arg_an_i, 1131s # arg_an_u, 1131s # arg_an_x, 1131s # arg_an_t, 1131s # arg_an_d, 1131s # arg_an_s, 1131s # arg_an_o, 1131s # arg_an_g, 1131s # arg_an_h, 1131s # arg_an_ay, 1131s # arg_an_as, 1131s # arg_an_ao, 1131s # arg_an_aay, 1131s # arg_an_asv)); 1131s # for (l = connections; l != NULL; l = l->next) 1131s # { 1131s # GDBusConnection *connection = l->data; 1131s # g_dbus_connection_emit_signal (connection, 1131s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "org.project.SignalingIface", "SignalWithManyArgs", 1131s # signal_variant, NULL); 1131s # } 1131s # g_variant_unref (signal_variant); 1131s # g_list_free_full (connections, g_object_unref); 1131s # } 1131s # 1131s # static void org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface); 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_ADD_PRIVATE (OrgProjectSignalingIfaceSkeleton) 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectSignalingIfaceSkeleton, org_project_signaling_iface_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_SIGNALING_IFACE, org_project_signaling_iface_skeleton_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # org_project_signaling_iface_skeleton_finalize (GObject *object) 1131s # { 1131s # OrgProjectSignalingIfaceSkeleton *skeleton = ORG_PROJECT_SIGNALING_IFACE_SKELETON (object); 1131s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1131s # if (skeleton->priv->changed_properties_idle_source != NULL) 1131s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1131s # g_main_context_unref (skeleton->priv->context); 1131s # g_mutex_clear (&skeleton->priv->lock); 1131s # G_OBJECT_CLASS (org_project_signaling_iface_skeleton_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_init (OrgProjectSignalingIfaceSkeleton *skeleton) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # skeleton->priv = org_project_signaling_iface_skeleton_get_instance_private (skeleton); 1131s # #else 1131s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, OrgProjectSignalingIfaceSkeletonPrivate); 1131s # #endif 1131s # 1131s # g_mutex_init (&skeleton->priv->lock); 1131s # skeleton->priv->context = g_main_context_ref_thread_default (); 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_class_init (OrgProjectSignalingIfaceSkeletonClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusInterfaceSkeletonClass *skeleton_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = org_project_signaling_iface_skeleton_finalize; 1131s # 1131s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1131s # skeleton_class->get_info = org_project_signaling_iface_skeleton_dbus_interface_get_info; 1131s # skeleton_class->get_properties = org_project_signaling_iface_skeleton_dbus_interface_get_properties; 1131s # skeleton_class->flush = org_project_signaling_iface_skeleton_dbus_interface_flush; 1131s # skeleton_class->get_vtable = org_project_signaling_iface_skeleton_dbus_interface_get_vtable; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (OrgProjectSignalingIfaceSkeletonPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # org_project_signaling_iface_skeleton_iface_init (OrgProjectSignalingIfaceIface *iface) 1131s # { 1131s # iface->simple_signal = _org_project_signaling_iface_on_signal_simple_signal; 1131s # iface->signal_with_many_args = _org_project_signaling_iface_on_signal_signal_with_many_args; 1131s # } 1131s # 1131s # /** 1131s # * org_project_signaling_iface_skeleton_new: 1131s # * 1131s # * Creates a skeleton object for the D-Bus interface org.project.SignalingIface. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectSignalingIfaceSkeleton): The skeleton object. 1131s # */ 1131s # OrgProjectSignalingIface * 1131s # org_project_signaling_iface_skeleton_new (void) 1131s # { 1131s # return ORG_PROJECT_SIGNALING_IFACE (g_object_new (TYPE_ORG_PROJECT_SIGNALING_IFACE_SKELETON, NULL)); 1131s # } 1131s # Error: 1131s ok 25 __main__.TestCodegen.test_generate_valid_docbook 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmp1wz5c_e0 1131s # /tmp/tmp1wz5c_e0/tmp4kqfyneo.xml: 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmp1wz5c_e0/tmp4kqfyneo.xml', '--generate-docbook', 'test'] 1131s # Return code: 0 1131s # Output: 1131s # 1131s # Error: 1131s ok 26 __main__.TestCodegen.test_glib_max_allowed_less_than_min_required 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmpi4sdar_0 1131s # /tmp/tmpi4sdar_0/tmpfggj99g9.xml: 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpi4sdar_0/tmpfggj99g9.xml', '--output', '-', '--body', '--glib-max-allowed', '2.62', '--glib-min-required', '2.64'] 1131s # Return code: 1 1131s # Output: 1131s # 1131s # Error: 1131s # ERROR: Invalid versions: --glib-min-required ((2, 64)) must be less than or equal to --glib-max-allowed ((2, 62)) 1131s ok 27 __main__.TestCodegen.test_glib_max_allowed_major_only 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmprblqjdct 1131s # /tmp/tmprblqjdct/tmpentlox49.xml: 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmprblqjdct/tmpentlox49.xml', '--output', '-', '--header', '--glib-max-allowed', '3'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifndef __STDOUT__ 1131s # #define __STDOUT__ 1131s # 1131s # #include 1131s # 1131s # G_BEGIN_DECLS 1131s # 1131s # 1131s # G_END_DECLS 1131s # 1131s # #endif /* __STDOUT__ */ 1131s # Error: 1131s ok 28 __main__.TestCodegen.test_glib_max_allowed_too_low 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmpgvh4j18b 1131s # /tmp/tmpgvh4j18b/tmprdryu9hj.xml: 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpgvh4j18b/tmprdryu9hj.xml', '--output', '-', '--body', '--glib-max-allowed', '2.6'] 1131s # Return code: 1 1131s # Output: 1131s # 1131s # Error: 1131s # ERROR: Invalid versions: --glib-min-required ((2, 30)) must be less than or equal to --glib-max-allowed ((2, 6)) 1131s ok 29 __main__.TestCodegen.test_glib_max_allowed_unstable 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmpmaa8pyte 1131s # /tmp/tmpmaa8pyte/tmphllgfhrk.xml: 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpmaa8pyte/tmphllgfhrk.xml', '--output', '-', '--header', '--glib-max-allowed', '2.63', '--glib-min-required', '2.64'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifndef __STDOUT__ 1131s # #define __STDOUT__ 1131s # 1131s # #include 1131s # 1131s # G_BEGIN_DECLS 1131s # 1131s # 1131s # G_END_DECLS 1131s # 1131s # #endif /* __STDOUT__ */ 1131s # Error: 1131s ok 30 __main__.TestCodegen.test_glib_max_allowed_with_micro 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmpol6ihbf4 1131s # /tmp/tmpol6ihbf4/tmptoce343w.xml: 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpol6ihbf4/tmptoce343w.xml', '--output', '-', '--header', '--glib-max-allowed', '2.46.2'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifndef __STDOUT__ 1131s # #define __STDOUT__ 1131s # 1131s # #include 1131s # 1131s # G_BEGIN_DECLS 1131s # 1131s # 1131s # G_END_DECLS 1131s # 1131s # #endif /* __STDOUT__ */ 1131s # Error: 1131s ok 31 __main__.TestCodegen.test_glib_min_required_invalid 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmpn0nuw86m 1131s # /tmp/tmpn0nuw86m/tmpfty2t4fi.xml: 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpn0nuw86m/tmpfty2t4fi.xml', '--output', '-', '--body', '--glib-min-required', 'hello mum'] 1131s # Return code: 1 1131s # Output: 1131s # 1131s # Error: 1131s # ERROR: Unrecognized --glib-min-required string ‘hello mum’ 1131s ok 32 __main__.TestCodegen.test_glib_min_required_major_only 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmpm2dulxq7 1131s # /tmp/tmpm2dulxq7/tmpm2_uz5mu.xml: 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpm2dulxq7/tmpm2_uz5mu.xml', '--output', '-', '--header', '--glib-min-required', '3', '--glib-max-allowed', '3.2'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifndef __STDOUT__ 1131s # #define __STDOUT__ 1131s # 1131s # #include 1131s # 1131s # G_BEGIN_DECLS 1131s # 1131s # 1131s # G_END_DECLS 1131s # 1131s # #endif /* __STDOUT__ */ 1131s # Error: 1131s ok 33 __main__.TestCodegen.test_glib_min_required_too_low 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmpniadneb6 1131s # /tmp/tmpniadneb6/tmpjl8zv9cw.xml: 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpniadneb6/tmpjl8zv9cw.xml', '--output', '-', '--body', '--glib-min-required', '2.6'] 1131s # Return code: 1 1131s # Output: 1131s # 1131s # Error: 1131s # ERROR: Invalid --glib-min-required string ‘2.6’: minimum version is 2.30 1131s ok 34 __main__.TestCodegen.test_glib_min_required_with_micro 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmpu6651c2u 1131s # /tmp/tmpu6651c2u/tmp5ygazmor.xml: 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpu6651c2u/tmp5ygazmor.xml', '--output', '-', '--header', '--glib-min-required', '2.46.2'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifndef __STDOUT__ 1131s # #define __STDOUT__ 1131s # 1131s # #include 1131s # 1131s # G_BEGIN_DECLS 1131s # 1131s # 1131s # G_END_DECLS 1131s # 1131s # #endif /* __STDOUT__ */ 1131s # Error: 1131s ok 35 __main__.TestCodegen.test_help 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmpt4my5rx5 1131s # Running: ['/usr/bin/gdbus-codegen', '--help'] 1131s # Return code: 0 1131s # Output: 1131s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1131s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1131s # [--c-generate-autocleanup {none,objects,all}] 1131s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1131s # [--generate-rst OUTFILES] [--pragma-once] 1131s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1131s # [--glib-min-required VERSION] 1131s # [--glib-max-allowed VERSION] 1131s # [--symbol-decorator SYMBOL_DECORATOR] 1131s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1131s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1131s # [--generate-c-code OUTFILES | --header | --body | 1131s # --interface-info-header | --interface-info-body] 1131s # [--output FILE | --output-directory OUTDIR] 1131s # FILE [FILE ...] 1131s # 1131s # D-Bus code and documentation generator 1131s # 1131s # positional arguments: 1131s # FILE D-Bus introspection XML file 1131s # 1131s # options: 1131s # -h, --help show this help message and exit 1131s # --interface-prefix PREFIX 1131s # String to strip from D-Bus interface names for code 1131s # and docs 1131s # --c-namespace NAMESPACE 1131s # The namespace to use for generated C code 1131s # --c-generate-object-manager 1131s # Generate a GDBusObjectManagerClient subclass when 1131s # generating C code 1131s # --c-generate-autocleanup {none,objects,all} 1131s # Generate autocleanup support 1131s # --generate-docbook OUTFILES 1131s # Generate Docbook in OUTFILES-org.Project.IFace.xml 1131s # --generate-md OUTFILES 1131s # Generate Markdown in OUTFILES-org.Project.IFace.md 1131s # --generate-rst OUTFILES 1131s # Generate reStructuredText in OUTFILES- 1131s # org.Project.IFace.rst 1131s # --pragma-once Use "pragma once" as the inclusion guard 1131s # --annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE 1131s # Add annotation (may be used several times) 1131s # --glib-min-required VERSION 1131s # Minimum version of GLib to be supported by the 1131s # outputted code (default: 2.30) 1131s # --glib-max-allowed VERSION 1131s # Maximum version of GLib to be used by the outputted 1131s # code (default: current GLib version) 1131s # --symbol-decorator SYMBOL_DECORATOR 1131s # Macro used to decorate a symbol in the outputted 1131s # header, possibly to export symbols 1131s # --symbol-decorator-header SYMBOL_DECORATOR_HEADER 1131s # Additional header required for decorator specified by 1131s # --symbol-decorator 1131s # --symbol-decorator-define SYMBOL_DECORATOR_DEFINE 1131s # Additional define required for decorator specified by 1131s # --symbol-decorator 1131s # --generate-c-code OUTFILES 1131s # Generate C code in OUTFILES.[ch] 1131s # --header Generate C headers 1131s # --body Generate C code 1131s # --interface-info-header 1131s # Generate GDBusInterfaceInfo C header 1131s # --interface-info-body 1131s # Generate GDBusInterfaceInfo C code 1131s # --output FILE Write output into the specified file 1131s # --output-directory OUTDIR 1131s # Location to output generated files 1131s # Error: 1131s ok 36 __main__.TestCodegen.test_indentation_preservation_in_comments 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmpn6ilpkal 1131s # /tmp/tmpn6ilpkal/tmpn563oqki.xml: 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpn6ilpkal/tmpn563oqki.xml', '--generate-rst', 'test'] 1131s # Return code: 0 1131s # Output: 1131s # 1131s # Error: 1131s # 1131s # /tmp/tmpn6ilpkal/tmpu8z1cqoh.xml: 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpn6ilpkal/tmpu8z1cqoh.xml', '--generate-md', 'test'] 1131s # Return code: 0 1131s # Output: 1131s # 1131s # Error: 1131s # 1131s # /tmp/tmpn6ilpkal/tmpbs370e8k.xml: 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpn6ilpkal/tmpbs370e8k.xml', '--generate-docbook', 'test'] 1131s # Return code: 0 1131s # Output: 1131s # 1131s # Error: 1131s ok 37 __main__.TestCodegen.test_no_args 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmpgw0awg56 1131s # Running: ['/usr/bin/gdbus-codegen'] 1131s # Return code: 2 1131s # Output: 1131s # 1131s # Error: 1131s # usage: gdbus-codegen [-h] [--interface-prefix PREFIX] 1131s # [--c-namespace NAMESPACE] [--c-generate-object-manager] 1131s # [--c-generate-autocleanup {none,objects,all}] 1131s # [--generate-docbook OUTFILES] [--generate-md OUTFILES] 1131s # [--generate-rst OUTFILES] [--pragma-once] 1131s # [--annotate WHAT KEY VALUE WHAT KEY VALUE WHAT KEY VALUE] 1131s # [--glib-min-required VERSION] 1131s # [--glib-max-allowed VERSION] 1131s # [--symbol-decorator SYMBOL_DECORATOR] 1131s # [--symbol-decorator-header SYMBOL_DECORATOR_HEADER] 1131s # [--symbol-decorator-define SYMBOL_DECORATOR_DEFINE] 1131s # [--generate-c-code OUTFILES | --header | --body | 1131s # --interface-info-header | --interface-info-body] 1131s # [--output FILE | --output-directory OUTDIR] 1131s # FILE [FILE ...] 1131s # gdbus-codegen: error: the following arguments are required: FILE 1131s ok 38 __main__.TestCodegen.test_reproducible 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmpk23rydue 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpk23rydue/tmpbuev1ayt1.xml', '/tmp/tmpk23rydue/tmpkg_e5m6i2.xml', '--output', '-', '--header'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifndef __STDOUT__ 1131s # #define __STDOUT__ 1131s # 1131s # #include 1131s # 1131s # G_BEGIN_DECLS 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # /* Declarations for com.acme.Coyote */ 1131s # 1131s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1131s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1131s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1131s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1131s # 1131s # struct _ComAcmeCoyote; 1131s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1131s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1131s # 1131s # struct _ComAcmeCoyoteIface 1131s # { 1131s # GTypeInterface parent_iface; 1131s # 1131s # 1131s # 1131s # gboolean (*handle_attack) ( 1131s # ComAcmeCoyote *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # gboolean (*handle_run) ( 1131s # ComAcmeCoyote *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # gboolean (*handle_sleep) ( 1131s # ComAcmeCoyote *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1131s # 1131s # void (*surprised) ( 1131s # ComAcmeCoyote *object); 1131s # 1131s # }; 1131s # 1131s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1131s # 1131s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1131s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1131s # 1131s # 1131s # /* D-Bus method call completion functions: */ 1131s # void com_acme_coyote_complete_run ( 1131s # ComAcmeCoyote *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # void com_acme_coyote_complete_sleep ( 1131s # ComAcmeCoyote *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # void com_acme_coyote_complete_attack ( 1131s # ComAcmeCoyote *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # 1131s # 1131s # /* D-Bus signal emissions functions: */ 1131s # void com_acme_coyote_emit_surprised ( 1131s # ComAcmeCoyote *object); 1131s # 1131s # 1131s # 1131s # /* D-Bus method calls: */ 1131s # void com_acme_coyote_call_run ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean com_acme_coyote_call_run_finish ( 1131s # ComAcmeCoyote *proxy, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean com_acme_coyote_call_run_sync ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void com_acme_coyote_call_sleep ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean com_acme_coyote_call_sleep_finish ( 1131s # ComAcmeCoyote *proxy, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean com_acme_coyote_call_sleep_sync ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void com_acme_coyote_call_attack ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean com_acme_coyote_call_attack_finish ( 1131s # ComAcmeCoyote *proxy, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean com_acme_coyote_call_attack_sync ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # 1131s # 1131s # /* D-Bus property accessors: */ 1131s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1131s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1131s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1131s # 1131s # 1131s # /* ---- */ 1131s # 1131s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1131s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1131s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1131s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1131s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1131s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1131s # 1131s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1131s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1131s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1131s # 1131s # struct _ComAcmeCoyoteProxy 1131s # { 1131s # /*< private >*/ 1131s # GDBusProxy parent_instance; 1131s # ComAcmeCoyoteProxyPrivate *priv; 1131s # }; 1131s # 1131s # struct _ComAcmeCoyoteProxyClass 1131s # { 1131s # GDBusProxyClass parent_class; 1131s # }; 1131s # 1131s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1131s # 1131s # #if GLIB_CHECK_VERSION(2, 44, 0) 1131s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1131s # #endif 1131s # 1131s # void com_acme_coyote_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void com_acme_coyote_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # 1131s # /* ---- */ 1131s # 1131s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1131s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1131s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1131s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1131s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1131s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1131s # 1131s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1131s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1131s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1131s # 1131s # struct _ComAcmeCoyoteSkeleton 1131s # { 1131s # /*< private >*/ 1131s # GDBusInterfaceSkeleton parent_instance; 1131s # ComAcmeCoyoteSkeletonPrivate *priv; 1131s # }; 1131s # 1131s # struct _ComAcmeCoyoteSkeletonClass 1131s # { 1131s # GDBusInterfaceSkeletonClass parent_class; 1131s # }; 1131s # 1131s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1131s # 1131s # #if GLIB_CHECK_VERSION(2, 44, 0) 1131s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1131s # #endif 1131s # 1131s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # /* Declarations for org.project.Bar.Frobnicator */ 1131s # 1131s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1131s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1131s # 1131s # struct _OrgProjectBarFrobnicator; 1131s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1131s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1131s # 1131s # struct _OrgProjectBarFrobnicatorIface 1131s # { 1131s # GTypeInterface parent_iface; 1131s # 1131s # gboolean (*handle_random_method) ( 1131s # OrgProjectBarFrobnicator *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # }; 1131s # 1131s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1131s # 1131s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1131s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1131s # 1131s # 1131s # /* D-Bus method call completion functions: */ 1131s # void org_project_bar_frobnicator_complete_random_method ( 1131s # OrgProjectBarFrobnicator *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # 1131s # 1131s # /* D-Bus method calls: */ 1131s # void org_project_bar_frobnicator_call_random_method ( 1131s # OrgProjectBarFrobnicator *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1131s # OrgProjectBarFrobnicator *proxy, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1131s # OrgProjectBarFrobnicator *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # 1131s # 1131s # /* ---- */ 1131s # 1131s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1131s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1131s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1131s # 1131s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1131s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1131s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1131s # 1131s # struct _OrgProjectBarFrobnicatorProxy 1131s # { 1131s # /*< private >*/ 1131s # GDBusProxy parent_instance; 1131s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1131s # }; 1131s # 1131s # struct _OrgProjectBarFrobnicatorProxyClass 1131s # { 1131s # GDBusProxyClass parent_class; 1131s # }; 1131s # 1131s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1131s # 1131s # #if GLIB_CHECK_VERSION(2, 44, 0) 1131s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1131s # #endif 1131s # 1131s # void org_project_bar_frobnicator_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # 1131s # /* ---- */ 1131s # 1131s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1131s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1131s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1131s # 1131s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1131s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1131s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1131s # 1131s # struct _OrgProjectBarFrobnicatorSkeleton 1131s # { 1131s # /*< private >*/ 1131s # GDBusInterfaceSkeleton parent_instance; 1131s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1131s # }; 1131s # 1131s # struct _OrgProjectBarFrobnicatorSkeletonClass 1131s # { 1131s # GDBusInterfaceSkeletonClass parent_class; 1131s # }; 1131s # 1131s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1131s # 1131s # #if GLIB_CHECK_VERSION(2, 44, 0) 1131s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1131s # #endif 1131s # 1131s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1131s # 1131s # 1131s # G_END_DECLS 1131s # 1131s # #endif /* __STDOUT__ */ 1131s # Error: 1131s # 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpk23rydue/tmpkg_e5m6i2.xml', '/tmp/tmpk23rydue/tmpbuev1ayt1.xml', '--output', '-', '--header'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifndef __STDOUT__ 1131s # #define __STDOUT__ 1131s # 1131s # #include 1131s # 1131s # G_BEGIN_DECLS 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # /* Declarations for com.acme.Coyote */ 1131s # 1131s # #define TYPE_COM_ACME_COYOTE (com_acme_coyote_get_type ()) 1131s # #define COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyote)) 1131s # #define IS_COM_ACME_COYOTE(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE)) 1131s # #define COM_ACME_COYOTE_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_COM_ACME_COYOTE, ComAcmeCoyoteIface)) 1131s # 1131s # struct _ComAcmeCoyote; 1131s # typedef struct _ComAcmeCoyote ComAcmeCoyote; 1131s # typedef struct _ComAcmeCoyoteIface ComAcmeCoyoteIface; 1131s # 1131s # struct _ComAcmeCoyoteIface 1131s # { 1131s # GTypeInterface parent_iface; 1131s # 1131s # 1131s # 1131s # gboolean (*handle_attack) ( 1131s # ComAcmeCoyote *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # gboolean (*handle_run) ( 1131s # ComAcmeCoyote *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # gboolean (*handle_sleep) ( 1131s # ComAcmeCoyote *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # const gchar * (*get_mood) (ComAcmeCoyote *object); 1131s # 1131s # void (*surprised) ( 1131s # ComAcmeCoyote *object); 1131s # 1131s # }; 1131s # 1131s # GType com_acme_coyote_get_type (void) G_GNUC_CONST; 1131s # 1131s # GDBusInterfaceInfo *com_acme_coyote_interface_info (void); 1131s # guint com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin); 1131s # 1131s # 1131s # /* D-Bus method call completion functions: */ 1131s # void com_acme_coyote_complete_run ( 1131s # ComAcmeCoyote *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # void com_acme_coyote_complete_sleep ( 1131s # ComAcmeCoyote *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # void com_acme_coyote_complete_attack ( 1131s # ComAcmeCoyote *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # 1131s # 1131s # /* D-Bus signal emissions functions: */ 1131s # void com_acme_coyote_emit_surprised ( 1131s # ComAcmeCoyote *object); 1131s # 1131s # 1131s # 1131s # /* D-Bus method calls: */ 1131s # void com_acme_coyote_call_run ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean com_acme_coyote_call_run_finish ( 1131s # ComAcmeCoyote *proxy, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean com_acme_coyote_call_run_sync ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void com_acme_coyote_call_sleep ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean com_acme_coyote_call_sleep_finish ( 1131s # ComAcmeCoyote *proxy, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean com_acme_coyote_call_sleep_sync ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void com_acme_coyote_call_attack ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean com_acme_coyote_call_attack_finish ( 1131s # ComAcmeCoyote *proxy, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean com_acme_coyote_call_attack_sync ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # 1131s # 1131s # /* D-Bus property accessors: */ 1131s # const gchar *com_acme_coyote_get_mood (ComAcmeCoyote *object); 1131s # gchar *com_acme_coyote_dup_mood (ComAcmeCoyote *object); 1131s # void com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value); 1131s # 1131s # 1131s # /* ---- */ 1131s # 1131s # #define TYPE_COM_ACME_COYOTE_PROXY (com_acme_coyote_proxy_get_type ()) 1131s # #define COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxy)) 1131s # #define COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1131s # #define COM_ACME_COYOTE_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyClass)) 1131s # #define IS_COM_ACME_COYOTE_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_PROXY)) 1131s # #define IS_COM_ACME_COYOTE_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_PROXY)) 1131s # 1131s # typedef struct _ComAcmeCoyoteProxy ComAcmeCoyoteProxy; 1131s # typedef struct _ComAcmeCoyoteProxyClass ComAcmeCoyoteProxyClass; 1131s # typedef struct _ComAcmeCoyoteProxyPrivate ComAcmeCoyoteProxyPrivate; 1131s # 1131s # struct _ComAcmeCoyoteProxy 1131s # { 1131s # /*< private >*/ 1131s # GDBusProxy parent_instance; 1131s # ComAcmeCoyoteProxyPrivate *priv; 1131s # }; 1131s # 1131s # struct _ComAcmeCoyoteProxyClass 1131s # { 1131s # GDBusProxyClass parent_class; 1131s # }; 1131s # 1131s # GType com_acme_coyote_proxy_get_type (void) G_GNUC_CONST; 1131s # 1131s # #if GLIB_CHECK_VERSION(2, 44, 0) 1131s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteProxy, g_object_unref) 1131s # #endif 1131s # 1131s # void com_acme_coyote_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # ComAcmeCoyote *com_acme_coyote_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # ComAcmeCoyote *com_acme_coyote_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void com_acme_coyote_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # ComAcmeCoyote *com_acme_coyote_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # 1131s # /* ---- */ 1131s # 1131s # #define TYPE_COM_ACME_COYOTE_SKELETON (com_acme_coyote_skeleton_get_type ()) 1131s # #define COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeleton)) 1131s # #define COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1131s # #define COM_ACME_COYOTE_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonClass)) 1131s # #define IS_COM_ACME_COYOTE_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_COM_ACME_COYOTE_SKELETON)) 1131s # #define IS_COM_ACME_COYOTE_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_COM_ACME_COYOTE_SKELETON)) 1131s # 1131s # typedef struct _ComAcmeCoyoteSkeleton ComAcmeCoyoteSkeleton; 1131s # typedef struct _ComAcmeCoyoteSkeletonClass ComAcmeCoyoteSkeletonClass; 1131s # typedef struct _ComAcmeCoyoteSkeletonPrivate ComAcmeCoyoteSkeletonPrivate; 1131s # 1131s # struct _ComAcmeCoyoteSkeleton 1131s # { 1131s # /*< private >*/ 1131s # GDBusInterfaceSkeleton parent_instance; 1131s # ComAcmeCoyoteSkeletonPrivate *priv; 1131s # }; 1131s # 1131s # struct _ComAcmeCoyoteSkeletonClass 1131s # { 1131s # GDBusInterfaceSkeletonClass parent_class; 1131s # }; 1131s # 1131s # GType com_acme_coyote_skeleton_get_type (void) G_GNUC_CONST; 1131s # 1131s # #if GLIB_CHECK_VERSION(2, 44, 0) 1131s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (ComAcmeCoyoteSkeleton, g_object_unref) 1131s # #endif 1131s # 1131s # ComAcmeCoyote *com_acme_coyote_skeleton_new (void); 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # /* Declarations for org.project.Bar.Frobnicator */ 1131s # 1131s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR (org_project_bar_frobnicator_get_type ()) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicator)) 1131s # #define IS_ORG_PROJECT_BAR_FROBNICATOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR)) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR, OrgProjectBarFrobnicatorIface)) 1131s # 1131s # struct _OrgProjectBarFrobnicator; 1131s # typedef struct _OrgProjectBarFrobnicator OrgProjectBarFrobnicator; 1131s # typedef struct _OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorIface; 1131s # 1131s # struct _OrgProjectBarFrobnicatorIface 1131s # { 1131s # GTypeInterface parent_iface; 1131s # 1131s # gboolean (*handle_random_method) ( 1131s # OrgProjectBarFrobnicator *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # }; 1131s # 1131s # GType org_project_bar_frobnicator_get_type (void) G_GNUC_CONST; 1131s # 1131s # GDBusInterfaceInfo *org_project_bar_frobnicator_interface_info (void); 1131s # guint org_project_bar_frobnicator_override_properties (GObjectClass *klass, guint property_id_begin); 1131s # 1131s # 1131s # /* D-Bus method call completion functions: */ 1131s # void org_project_bar_frobnicator_complete_random_method ( 1131s # OrgProjectBarFrobnicator *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # 1131s # 1131s # /* D-Bus method calls: */ 1131s # void org_project_bar_frobnicator_call_random_method ( 1131s # OrgProjectBarFrobnicator *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean org_project_bar_frobnicator_call_random_method_finish ( 1131s # OrgProjectBarFrobnicator *proxy, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean org_project_bar_frobnicator_call_random_method_sync ( 1131s # OrgProjectBarFrobnicator *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # 1131s # 1131s # /* ---- */ 1131s # 1131s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY (org_project_bar_frobnicator_proxy_get_type ()) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxy)) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyClass)) 1131s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1131s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY)) 1131s # 1131s # typedef struct _OrgProjectBarFrobnicatorProxy OrgProjectBarFrobnicatorProxy; 1131s # typedef struct _OrgProjectBarFrobnicatorProxyClass OrgProjectBarFrobnicatorProxyClass; 1131s # typedef struct _OrgProjectBarFrobnicatorProxyPrivate OrgProjectBarFrobnicatorProxyPrivate; 1131s # 1131s # struct _OrgProjectBarFrobnicatorProxy 1131s # { 1131s # /*< private >*/ 1131s # GDBusProxy parent_instance; 1131s # OrgProjectBarFrobnicatorProxyPrivate *priv; 1131s # }; 1131s # 1131s # struct _OrgProjectBarFrobnicatorProxyClass 1131s # { 1131s # GDBusProxyClass parent_class; 1131s # }; 1131s # 1131s # GType org_project_bar_frobnicator_proxy_get_type (void) G_GNUC_CONST; 1131s # 1131s # #if GLIB_CHECK_VERSION(2, 44, 0) 1131s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorProxy, g_object_unref) 1131s # #endif 1131s # 1131s # void org_project_bar_frobnicator_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void org_project_bar_frobnicator_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # 1131s # /* ---- */ 1131s # 1131s # #define TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON (org_project_bar_frobnicator_skeleton_get_type ()) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeleton)) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1131s # #define ORG_PROJECT_BAR_FROBNICATOR_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonClass)) 1131s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1131s # #define IS_ORG_PROJECT_BAR_FROBNICATOR_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON)) 1131s # 1131s # typedef struct _OrgProjectBarFrobnicatorSkeleton OrgProjectBarFrobnicatorSkeleton; 1131s # typedef struct _OrgProjectBarFrobnicatorSkeletonClass OrgProjectBarFrobnicatorSkeletonClass; 1131s # typedef struct _OrgProjectBarFrobnicatorSkeletonPrivate OrgProjectBarFrobnicatorSkeletonPrivate; 1131s # 1131s # struct _OrgProjectBarFrobnicatorSkeleton 1131s # { 1131s # /*< private >*/ 1131s # GDBusInterfaceSkeleton parent_instance; 1131s # OrgProjectBarFrobnicatorSkeletonPrivate *priv; 1131s # }; 1131s # 1131s # struct _OrgProjectBarFrobnicatorSkeletonClass 1131s # { 1131s # GDBusInterfaceSkeletonClass parent_class; 1131s # }; 1131s # 1131s # GType org_project_bar_frobnicator_skeleton_get_type (void) G_GNUC_CONST; 1131s # 1131s # #if GLIB_CHECK_VERSION(2, 44, 0) 1131s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (OrgProjectBarFrobnicatorSkeleton, g_object_unref) 1131s # #endif 1131s # 1131s # OrgProjectBarFrobnicator *org_project_bar_frobnicator_skeleton_new (void); 1131s # 1131s # 1131s # G_END_DECLS 1131s # 1131s # #endif /* __STDOUT__ */ 1131s # Error: 1131s # 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpk23rydue/tmpbuev1ayt1.xml', '/tmp/tmpk23rydue/tmpkg_e5m6i2.xml', '--output', '-', '--body'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifdef HAVE_CONFIG_H 1131s # # include "config.h" 1131s # #endif 1131s # 1131s # #include 1131s # #ifdef G_OS_UNIX 1131s # # include 1131s # #endif 1131s # 1131s # #ifdef G_ENABLE_DEBUG 1131s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1131s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1131s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1131s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1131s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1131s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1131s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1131s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1131s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1131s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1131s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1131s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1131s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1131s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1131s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1131s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1131s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1131s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1131s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1131s # #else /* !G_ENABLE_DEBUG */ 1131s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1131s # * Do not access GValues directly in your code. Instead, use the 1131s # * g_value_get_*() functions 1131s # */ 1131s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1131s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1131s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1131s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1131s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1131s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1131s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1131s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1131s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1131s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1131s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1131s # #endif /* !G_ENABLE_DEBUG */ 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusArgInfo parent_struct; 1131s # gboolean use_gvariant; 1131s # } _ExtendedGDBusArgInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusMethodInfo parent_struct; 1131s # const gchar *signal_name; 1131s # gboolean pass_fdlist; 1131s # } _ExtendedGDBusMethodInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusSignalInfo parent_struct; 1131s # const gchar *signal_name; 1131s # } _ExtendedGDBusSignalInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusPropertyInfo parent_struct; 1131s # const gchar *hyphen_name; 1131s # guint use_gvariant : 1; 1131s # guint emits_changed_signal : 1; 1131s # } _ExtendedGDBusPropertyInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusInterfaceInfo parent_struct; 1131s # const gchar *hyphen_name; 1131s # } _ExtendedGDBusInterfaceInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # const _ExtendedGDBusPropertyInfo *info; 1131s # guint prop_id; 1131s # GValue orig_value; /* the value before the change */ 1131s # } ChangedProperty; 1131s # 1131s # static void 1131s # _changed_property_free (ChangedProperty *data) 1131s # { 1131s # g_value_unset (&data->orig_value); 1131s # g_free (data); 1131s # } 1131s # 1131s # static gboolean 1131s # _g_strv_equal0 (gchar **a, gchar **b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # guint n; 1131s # if (a == NULL && b == NULL) 1131s # { 1131s # ret = TRUE; 1131s # goto out; 1131s # } 1131s # if (a == NULL || b == NULL) 1131s # goto out; 1131s # if (g_strv_length (a) != g_strv_length (b)) 1131s # goto out; 1131s # for (n = 0; a[n] != NULL; n++) 1131s # if (g_strcmp0 (a[n], b[n]) != 0) 1131s # goto out; 1131s # ret = TRUE; 1131s # out: 1131s # return ret; 1131s # } 1131s # 1131s # static gboolean 1131s # _g_variant_equal0 (GVariant *a, GVariant *b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # if (a == NULL && b == NULL) 1131s # { 1131s # ret = TRUE; 1131s # goto out; 1131s # } 1131s # if (a == NULL || b == NULL) 1131s # goto out; 1131s # ret = g_variant_equal (a, b); 1131s # out: 1131s # return ret; 1131s # } 1131s # 1131s # G_GNUC_UNUSED static gboolean 1131s # _g_value_equal (const GValue *a, const GValue *b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1131s # switch (G_VALUE_TYPE (a)) 1131s # { 1131s # case G_TYPE_BOOLEAN: 1131s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1131s # break; 1131s # case G_TYPE_UCHAR: 1131s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1131s # break; 1131s # case G_TYPE_INT: 1131s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1131s # break; 1131s # case G_TYPE_UINT: 1131s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1131s # break; 1131s # case G_TYPE_INT64: 1131s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1131s # break; 1131s # case G_TYPE_UINT64: 1131s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1131s # break; 1131s # case G_TYPE_DOUBLE: 1131s # { 1131s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1131s # gdouble da = g_value_get_double (a); 1131s # gdouble db = g_value_get_double (b); 1131s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1131s # } 1131s # break; 1131s # case G_TYPE_STRING: 1131s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1131s # break; 1131s # case G_TYPE_VARIANT: 1131s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1131s # break; 1131s # default: 1131s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1131s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1131s # else 1131s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1131s # break; 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static void 1131s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint G_GNUC_UNUSED, 1131s # void *marshal_data) 1131s # { 1131s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1131s # (void *data1, 1131s # GDBusMethodInvocation *arg_method_invocation, 1131s # void *data2); 1131s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1131s # GCClosure *cc = (GCClosure*) closure; 1131s # void *data1, *data2; 1131s # gboolean v_return; 1131s # 1131s # g_return_if_fail (return_value != NULL); 1131s # g_return_if_fail (n_param_values == 2); 1131s # 1131s # if (G_CCLOSURE_SWAP_DATA (closure)) 1131s # { 1131s # data1 = closure->data; 1131s # data2 = g_value_peek_pointer (param_values + 0); 1131s # } 1131s # else 1131s # { 1131s # data1 = g_value_peek_pointer (param_values + 0); 1131s # data2 = closure->data; 1131s # } 1131s # 1131s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1131s # (marshal_data ? marshal_data : cc->callback); 1131s # 1131s # v_return = 1131s # callback (data1, 1131s # g_marshal_value_peek_object (param_values + 1), 1131s # data2); 1131s # 1131s # g_value_set_boolean (return_value, v_return); 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ 1131s # * Code for interface com.acme.Coyote 1131s # * ------------------------------------------------------------------------ 1131s # */ 1131s # 1131s # /** 1131s # * SECTION:ComAcmeCoyote 1131s # * @title: ComAcmeCoyote 1131s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1131s # * 1131s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1131s # */ 1131s # 1131s # enum 1131s # { 1131s # _COM_ACME_COYOTE_SURPRISED, 1131s # }; 1131s # 1131s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1131s # 1131s # /* ---- Introspection data for com.acme.Coyote ---- */ 1131s # 1131s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "Run", 1131s # NULL, 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "handle-run", 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "Sleep", 1131s # NULL, 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "handle-sleep", 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "Attack", 1131s # NULL, 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "handle-attack", 1131s # FALSE 1131s # }; 1131s # 1131s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1131s # { 1131s # &_com_acme_coyote_method_info_run.parent_struct, 1131s # &_com_acme_coyote_method_info_sleep.parent_struct, 1131s # &_com_acme_coyote_method_info_attack.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "Surprised", 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "surprised" 1131s # }; 1131s # 1131s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1131s # { 1131s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "Mood", 1131s # (gchar *) "s", 1131s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1131s # NULL 1131s # }, 1131s # "mood", 1131s # FALSE, 1131s # TRUE 1131s # }; 1131s # 1131s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1131s # { 1131s # &_com_acme_coyote_property_info_mood.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "com.acme.Coyote", 1131s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1131s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1131s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1131s # NULL 1131s # }, 1131s # "com-acme-coyote", 1131s # }; 1131s # 1131s # 1131s # /** 1131s # * com_acme_coyote_interface_info: 1131s # * 1131s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1131s # * 1131s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1131s # */ 1131s # GDBusInterfaceInfo * 1131s # com_acme_coyote_interface_info (void) 1131s # { 1131s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_override_properties: 1131s # * @klass: The class structure for a #GObject derived class. 1131s # * @property_id_begin: The property id to assign to the first overridden property. 1131s # * 1131s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1131s # * The properties are overridden in the order they are defined. 1131s # * 1131s # * Returns: The last property id. 1131s # */ 1131s # guint 1131s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1131s # { 1131s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1131s # return property_id_begin - 1; 1131s # } 1131s # 1131s # 1131s # inline static void 1131s # com_acme_coyote_signal_marshal_surprised ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # g_cclosure_marshal_VOID__VOID (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # inline static void 1131s # com_acme_coyote_method_marshal_run ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # inline static void 1131s # com_acme_coyote_method_marshal_sleep ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # inline static void 1131s # com_acme_coyote_method_marshal_attack ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # 1131s # /** 1131s # * ComAcmeCoyote: 1131s # * 1131s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1131s # */ 1131s # 1131s # /** 1131s # * ComAcmeCoyoteIface: 1131s # * @parent_iface: The parent interface. 1131s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1131s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1131s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1131s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1131s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1131s # * 1131s # * Virtual table for the D-Bus interface com.acme.Coyote. 1131s # */ 1131s # 1131s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1131s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1131s # 1131s # static void 1131s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1131s # { 1131s # /* GObject signals for incoming D-Bus method calls: */ 1131s # /** 1131s # * ComAcmeCoyote::handle-run: 1131s # * @object: A #ComAcmeCoyote. 1131s # * @invocation: A #GDBusMethodInvocation. 1131s # * 1131s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1131s # * 1131s # * 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. 1131s # * 1131s # * 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. 1131s # */ 1131s # g_signal_new ("handle-run", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1131s # g_signal_accumulator_true_handled, 1131s # NULL, 1131s # com_acme_coyote_method_marshal_run, 1131s # G_TYPE_BOOLEAN, 1131s # 1, 1131s # G_TYPE_DBUS_METHOD_INVOCATION); 1131s # 1131s # /** 1131s # * ComAcmeCoyote::handle-sleep: 1131s # * @object: A #ComAcmeCoyote. 1131s # * @invocation: A #GDBusMethodInvocation. 1131s # * 1131s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1131s # * 1131s # * 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. 1131s # * 1131s # * 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. 1131s # */ 1131s # g_signal_new ("handle-sleep", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1131s # g_signal_accumulator_true_handled, 1131s # NULL, 1131s # com_acme_coyote_method_marshal_sleep, 1131s # G_TYPE_BOOLEAN, 1131s # 1, 1131s # G_TYPE_DBUS_METHOD_INVOCATION); 1131s # 1131s # /** 1131s # * ComAcmeCoyote::handle-attack: 1131s # * @object: A #ComAcmeCoyote. 1131s # * @invocation: A #GDBusMethodInvocation. 1131s # * 1131s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1131s # * 1131s # * 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. 1131s # * 1131s # * 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. 1131s # */ 1131s # g_signal_new ("handle-attack", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1131s # g_signal_accumulator_true_handled, 1131s # NULL, 1131s # com_acme_coyote_method_marshal_attack, 1131s # G_TYPE_BOOLEAN, 1131s # 1, 1131s # G_TYPE_DBUS_METHOD_INVOCATION); 1131s # 1131s # /* GObject signals for received D-Bus signals: */ 1131s # /** 1131s # * ComAcmeCoyote::surprised: 1131s # * @object: A #ComAcmeCoyote. 1131s # * 1131s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1131s # * 1131s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1131s # */ 1131s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1131s # g_signal_new ("surprised", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1131s # NULL, 1131s # NULL, 1131s # com_acme_coyote_signal_marshal_surprised, 1131s # G_TYPE_NONE, 1131s # 0); 1131s # 1131s # /* GObject properties for D-Bus properties: */ 1131s # /** 1131s # * ComAcmeCoyote:mood: 1131s # * 1131s # * Represents the D-Bus property "Mood". 1131s # * 1131s # * 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. 1131s # */ 1131s # g_object_interface_install_property (iface, 1131s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_get_mood: (skip) 1131s # * @object: A #ComAcmeCoyote. 1131s # * 1131s # * Gets the value of the "Mood" D-Bus property. 1131s # * 1131s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1131s # * 1131s # * 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. 1131s # * 1131s # * 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. 1131s # */ 1131s # const gchar * 1131s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1131s # { 1131s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1131s # 1131s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_dup_mood: (skip) 1131s # * @object: A #ComAcmeCoyote. 1131s # * 1131s # * Gets a copy of the "Mood" D-Bus property. 1131s # * 1131s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1131s # * 1131s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1131s # */ 1131s # gchar * 1131s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1131s # { 1131s # gchar *value; 1131s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1131s # return value; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_set_mood: (skip) 1131s # * @object: A #ComAcmeCoyote. 1131s # * @value: The value to set. 1131s # * 1131s # * Sets the "Mood" D-Bus property to @value. 1131s # * 1131s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1131s # */ 1131s # void 1131s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1131s # { 1131s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_emit_surprised: 1131s # * @object: A #ComAcmeCoyote. 1131s # * 1131s # * Emits the "Surprised" D-Bus signal. 1131s # */ 1131s # void 1131s # com_acme_coyote_emit_surprised ( 1131s # ComAcmeCoyote *object) 1131s # { 1131s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_run: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1131s # * 1131s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1131s # */ 1131s # void 1131s # com_acme_coyote_call_run ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1131s # "Run", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # callback, 1131s # user_data); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_run_finish: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Finishes an operation started with com_acme_coyote_call_run(). 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # com_acme_coyote_call_run_finish ( 1131s # ComAcmeCoyote *proxy, 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_run_sync: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1131s # * 1131s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # com_acme_coyote_call_run_sync ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1131s # "Run", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_sleep: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1131s # * 1131s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1131s # */ 1131s # void 1131s # com_acme_coyote_call_sleep ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1131s # "Sleep", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # callback, 1131s # user_data); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_sleep_finish: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # com_acme_coyote_call_sleep_finish ( 1131s # ComAcmeCoyote *proxy, 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_sleep_sync: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1131s # * 1131s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # com_acme_coyote_call_sleep_sync ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1131s # "Sleep", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_attack: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1131s # * 1131s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1131s # */ 1131s # void 1131s # com_acme_coyote_call_attack ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1131s # "Attack", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # callback, 1131s # user_data); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_attack_finish: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Finishes an operation started with com_acme_coyote_call_attack(). 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # com_acme_coyote_call_attack_finish ( 1131s # ComAcmeCoyote *proxy, 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_attack_sync: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1131s # * 1131s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # com_acme_coyote_call_attack_sync ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1131s # "Attack", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_complete_run: 1131s # * @object: A #ComAcmeCoyote. 1131s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1131s # * 1131s # * 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. 1131s # * 1131s # * This method will free @invocation, you cannot use it afterwards. 1131s # */ 1131s # void 1131s # com_acme_coyote_complete_run ( 1131s # ComAcmeCoyote *object G_GNUC_UNUSED, 1131s # GDBusMethodInvocation *invocation) 1131s # { 1131s # g_dbus_method_invocation_return_value (invocation, 1131s # g_variant_new ("()")); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_complete_sleep: 1131s # * @object: A #ComAcmeCoyote. 1131s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1131s # * 1131s # * 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. 1131s # * 1131s # * This method will free @invocation, you cannot use it afterwards. 1131s # */ 1131s # void 1131s # com_acme_coyote_complete_sleep ( 1131s # ComAcmeCoyote *object G_GNUC_UNUSED, 1131s # GDBusMethodInvocation *invocation) 1131s # { 1131s # g_dbus_method_invocation_return_value (invocation, 1131s # g_variant_new ("()")); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_complete_attack: 1131s # * @object: A #ComAcmeCoyote. 1131s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1131s # * 1131s # * 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. 1131s # * 1131s # * This method will free @invocation, you cannot use it afterwards. 1131s # */ 1131s # void 1131s # com_acme_coyote_complete_attack ( 1131s # ComAcmeCoyote *object G_GNUC_UNUSED, 1131s # GDBusMethodInvocation *invocation) 1131s # { 1131s # g_dbus_method_invocation_return_value (invocation, 1131s # g_variant_new ("()")); 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * ComAcmeCoyoteProxy: 1131s # * 1131s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * ComAcmeCoyoteProxyClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #ComAcmeCoyoteProxy. 1131s # */ 1131s # 1131s # struct _ComAcmeCoyoteProxyPrivate 1131s # { 1131s # GData *qdata; 1131s # }; 1131s # 1131s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1131s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1131s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1131s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # com_acme_coyote_proxy_finalize (GObject *object) 1131s # { 1131s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1131s # g_datalist_clear (&proxy->priv->qdata); 1131s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_get_property (GObject *object, 1131s # guint prop_id, 1131s # GValue *value, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # const _ExtendedGDBusPropertyInfo *info; 1131s # GVariant *variant; 1131s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1131s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1131s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1131s # if (info->use_gvariant) 1131s # { 1131s # g_value_set_variant (value, variant); 1131s # } 1131s # else 1131s # { 1131s # if (variant != NULL) 1131s # g_dbus_gvariant_to_gvalue (variant, value); 1131s # } 1131s # if (variant != NULL) 1131s # g_variant_unref (variant); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1131s # GAsyncResult *res, 1131s # gpointer user_data) 1131s # { 1131s # const _ExtendedGDBusPropertyInfo *info = user_data; 1131s # GError *error; 1131s # GVariant *_ret; 1131s # error = NULL; 1131s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1131s # if (!_ret) 1131s # { 1131s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1131s # info->parent_struct.name, 1131s # error->message, g_quark_to_string (error->domain), error->code); 1131s # g_error_free (error); 1131s # } 1131s # else 1131s # { 1131s # g_variant_unref (_ret); 1131s # } 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_set_property (GObject *object, 1131s # guint prop_id, 1131s # const GValue *value, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # const _ExtendedGDBusPropertyInfo *info; 1131s # GVariant *variant; 1131s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1131s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1131s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1131s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1131s # "org.freedesktop.DBus.Properties.Set", 1131s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1131s # g_variant_unref (variant); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1131s # const gchar *sender_name G_GNUC_UNUSED, 1131s # const gchar *signal_name, 1131s # GVariant *parameters) 1131s # { 1131s # _ExtendedGDBusSignalInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # gsize n; 1131s # guint signal_id; 1131s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1131s # if (info == NULL) 1131s # return; 1131s # num_params = g_variant_n_children (parameters); 1131s # paramv = g_new0 (GValue, num_params + 1); 1131s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1131s # g_value_set_object (¶mv[0], proxy); 1131s # g_variant_iter_init (&iter, parameters); 1131s # n = 1; 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1131s # g_signal_emitv (paramv, signal_id, 0, NULL); 1131s # for (n = 0; n < num_params + 1; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1131s # GVariant *changed_properties, 1131s # const gchar *const *invalidated_properties) 1131s # { 1131s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1131s # guint n; 1131s # const gchar *key; 1131s # GVariantIter *iter; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # g_variant_get (changed_properties, "a{sv}", &iter); 1131s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1131s # g_datalist_remove_data (&proxy->priv->qdata, key); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # g_variant_iter_free (iter); 1131s # for (n = 0; invalidated_properties[n] != NULL; n++) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1131s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # } 1131s # 1131s # static const gchar * 1131s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1131s # { 1131s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1131s # GVariant *variant; 1131s # const gchar *value = NULL; 1131s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1131s # if (variant != NULL) 1131s # { 1131s # value = g_variant_get_string (variant, NULL); 1131s # g_variant_unref (variant); 1131s # } 1131s # return value; 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1131s # #else 1131s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1131s # #endif 1131s # 1131s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusProxyClass *proxy_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1131s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1131s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1131s # 1131s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1131s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1131s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1131s # 1131s # com_acme_coyote_override_properties (gobject_class, 1); 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1131s # { 1131s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_proxy_new: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1131s # * 1131s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # com_acme_coyote_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_proxy_new_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1131s # * 1131s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # ComAcmeCoyote * 1131s # com_acme_coyote_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return COM_ACME_COYOTE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_proxy_new_sync: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # ComAcmeCoyote * 1131s # com_acme_coyote_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return COM_ACME_COYOTE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /** 1131s # * com_acme_coyote_proxy_new_for_bus: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1131s # * 1131s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # com_acme_coyote_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_proxy_new_for_bus_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1131s # * 1131s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # ComAcmeCoyote * 1131s # com_acme_coyote_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return COM_ACME_COYOTE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_proxy_new_for_bus_sync: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # ComAcmeCoyote * 1131s # com_acme_coyote_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return COM_ACME_COYOTE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * ComAcmeCoyoteSkeleton: 1131s # * 1131s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * ComAcmeCoyoteSkeletonClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #ComAcmeCoyoteSkeleton. 1131s # */ 1131s # 1131s # struct _ComAcmeCoyoteSkeletonPrivate 1131s # { 1131s # GValue *properties; 1131s # GList *changed_properties; 1131s # GSource *changed_properties_idle_source; 1131s # GMainContext *context; 1131s # GMutex lock; 1131s # }; 1131s # 1131s # static void 1131s # _com_acme_coyote_skeleton_handle_method_call ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name, 1131s # const gchar *method_name, 1131s # GVariant *parameters, 1131s # GDBusMethodInvocation *invocation, 1131s # gpointer user_data) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1131s # _ExtendedGDBusMethodInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # guint num_extra; 1131s # gsize n; 1131s # guint signal_id; 1131s # GValue return_value = G_VALUE_INIT; 1131s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1131s # g_assert (info != NULL); 1131s # num_params = g_variant_n_children (parameters); 1131s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1131s # n = 0; 1131s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1131s # g_value_set_object (¶mv[n++], skeleton); 1131s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1131s # g_value_set_object (¶mv[n++], invocation); 1131s # if (info->pass_fdlist) 1131s # { 1131s # #ifdef G_OS_UNIX 1131s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1131s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1131s # #else 1131s # g_assert_not_reached (); 1131s # #endif 1131s # } 1131s # g_variant_iter_init (&iter, parameters); 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1131s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1131s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1131s # if (!g_value_get_boolean (&return_value)) 1131s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1131s # g_value_unset (&return_value); 1131s # for (n = 0; n < num_params + num_extra; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static GVariant * 1131s # _com_acme_coyote_skeleton_handle_get_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # GVariant *ret; 1131s # ret = NULL; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # g_value_init (&value, pspec->value_type); 1131s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1131s # g_value_unset (&value); 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static gboolean 1131s # _com_acme_coyote_skeleton_handle_set_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GVariant *variant, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # gboolean ret; 1131s # ret = FALSE; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # if (info->use_gvariant) 1131s # g_value_set_variant (&value, variant); 1131s # else 1131s # g_dbus_gvariant_to_gvalue (variant, &value); 1131s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # g_value_unset (&value); 1131s # ret = TRUE; 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1131s # { 1131s # _com_acme_coyote_skeleton_handle_method_call, 1131s # _com_acme_coyote_skeleton_handle_get_property, 1131s # _com_acme_coyote_skeleton_handle_set_property, 1131s # {NULL} 1131s # }; 1131s # 1131s # static GDBusInterfaceInfo * 1131s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return com_acme_coyote_interface_info (); 1131s # } 1131s # 1131s # static GDBusInterfaceVTable * 1131s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1131s # } 1131s # 1131s # static GVariant * 1131s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1131s # 1131s # GVariantBuilder builder; 1131s # guint n; 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1131s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #else 1131s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #endif 1131s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1131s # goto out; 1131s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1131s # { 1131s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1131s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1131s # { 1131s # GVariant *value; 1131s # 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); 1131s # if (value != NULL) 1131s # { 1131s # g_variant_take_ref (value); 1131s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1131s # g_variant_unref (value); 1131s # } 1131s # } 1131s # } 1131s # out: 1131s # return g_variant_builder_end (&builder); 1131s # } 1131s # 1131s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1131s # 1131s # static void 1131s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1131s # gboolean emit_changed = FALSE; 1131s # 1131s # g_mutex_lock (&skeleton->priv->lock); 1131s # if (skeleton->priv->changed_properties_idle_source != NULL) 1131s # { 1131s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1131s # skeleton->priv->changed_properties_idle_source = NULL; 1131s # emit_changed = TRUE; 1131s # } 1131s # g_mutex_unlock (&skeleton->priv->lock); 1131s # 1131s # if (emit_changed) 1131s # _com_acme_coyote_emit_changed (skeleton); 1131s # } 1131s # 1131s # static void 1131s # _com_acme_coyote_on_signal_surprised ( 1131s # ComAcmeCoyote *object) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1131s # 1131s # GList *connections, *l; 1131s # GVariant *signal_variant; 1131s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1131s # 1131s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1131s # for (l = connections; l != NULL; l = l->next) 1131s # { 1131s # GDBusConnection *connection = l->data; 1131s # g_dbus_connection_emit_signal (connection, 1131s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1131s # signal_variant, NULL); 1131s # } 1131s # g_variant_unref (signal_variant); 1131s # g_list_free_full (connections, g_object_unref); 1131s # } 1131s # 1131s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1131s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # com_acme_coyote_skeleton_finalize (GObject *object) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1131s # guint n; 1131s # for (n = 0; n < 1; n++) 1131s # g_value_unset (&skeleton->priv->properties[n]); 1131s # g_free (skeleton->priv->properties); 1131s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1131s # if (skeleton->priv->changed_properties_idle_source != NULL) 1131s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1131s # g_main_context_unref (skeleton->priv->context); 1131s # g_mutex_clear (&skeleton->priv->lock); 1131s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_skeleton_get_property (GObject *object, 1131s # guint prop_id, 1131s # GValue *value, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1131s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1131s # g_mutex_lock (&skeleton->priv->lock); 1131s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1131s # g_mutex_unlock (&skeleton->priv->lock); 1131s # } 1131s # 1131s # static gboolean 1131s # _com_acme_coyote_emit_changed (gpointer user_data) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1131s # GList *l; 1131s # GVariantBuilder builder; 1131s # GVariantBuilder invalidated_builder; 1131s # guint num_changes; 1131s # 1131s # g_mutex_lock (&skeleton->priv->lock); 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1131s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1131s # #else 1131s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1131s # #endif 1131s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1131s # { 1131s # ChangedProperty *cp = l->data; 1131s # GVariant *variant; 1131s # const GValue *cur_value; 1131s # 1131s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1131s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1131s # { 1131s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1131s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1131s # g_variant_unref (variant); 1131s # num_changes++; 1131s # } 1131s # } 1131s # if (num_changes > 0) 1131s # { 1131s # GList *connections, *ll; 1131s # GVariant *signal_variant; 1131s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1131s # &builder, &invalidated_builder)); 1131s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1131s # for (ll = connections; ll != NULL; ll = ll->next) 1131s # { 1131s # GDBusConnection *connection = ll->data; 1131s # 1131s # g_dbus_connection_emit_signal (connection, 1131s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1131s # "org.freedesktop.DBus.Properties", 1131s # "PropertiesChanged", 1131s # signal_variant, 1131s # NULL); 1131s # } 1131s # g_variant_unref (signal_variant); 1131s # g_list_free_full (connections, g_object_unref); 1131s # } 1131s # else 1131s # { 1131s # g_variant_builder_clear (&builder); 1131s # g_variant_builder_clear (&invalidated_builder); 1131s # } 1131s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1131s # skeleton->priv->changed_properties = NULL; 1131s # skeleton->priv->changed_properties_idle_source = NULL; 1131s # g_mutex_unlock (&skeleton->priv->lock); 1131s # return FALSE; 1131s # } 1131s # 1131s # static void 1131s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1131s # { 1131s # ChangedProperty *cp; 1131s # GList *l; 1131s # cp = NULL; 1131s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1131s # { 1131s # ChangedProperty *i_cp = l->data; 1131s # if (i_cp->info == info) 1131s # { 1131s # cp = i_cp; 1131s # break; 1131s # } 1131s # } 1131s # if (cp == NULL) 1131s # { 1131s # cp = g_new0 (ChangedProperty, 1); 1131s # cp->prop_id = prop_id; 1131s # cp->info = info; 1131s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1131s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1131s # g_value_copy (orig_value, &cp->orig_value); 1131s # } 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_skeleton_notify (GObject *object, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1131s # g_mutex_lock (&skeleton->priv->lock); 1131s # if (skeleton->priv->changed_properties != NULL && 1131s # skeleton->priv->changed_properties_idle_source == NULL) 1131s # { 1131s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1131s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1131s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1131s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1131s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1131s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1131s # } 1131s # g_mutex_unlock (&skeleton->priv->lock); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_skeleton_set_property (GObject *object, 1131s # guint prop_id, 1131s # const GValue *value, 1131s # GParamSpec *pspec) 1131s # { 1131s # const _ExtendedGDBusPropertyInfo *info; 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1131s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1131s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1131s # g_mutex_lock (&skeleton->priv->lock); 1131s # g_object_freeze_notify (object); 1131s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1131s # { 1131s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1131s # info->emits_changed_signal) 1131s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1131s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1131s # g_object_notify_by_pspec (object, pspec); 1131s # } 1131s # g_mutex_unlock (&skeleton->priv->lock); 1131s # g_object_thaw_notify (object); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1131s # #else 1131s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1131s # #endif 1131s # 1131s # g_mutex_init (&skeleton->priv->lock); 1131s # skeleton->priv->context = g_main_context_ref_thread_default (); 1131s # skeleton->priv->properties = g_new0 (GValue, 1); 1131s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1131s # } 1131s # 1131s # static const gchar * 1131s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1131s # const gchar *value; 1131s # g_mutex_lock (&skeleton->priv->lock); 1131s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1131s # g_mutex_unlock (&skeleton->priv->lock); 1131s # return value; 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusInterfaceSkeletonClass *skeleton_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1131s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1131s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1131s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1131s # 1131s # 1131s # com_acme_coyote_override_properties (gobject_class, 1); 1131s # 1131s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1131s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1131s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1131s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1131s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1131s # { 1131s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1131s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_skeleton_new: 1131s # * 1131s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1131s # * 1131s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1131s # */ 1131s # ComAcmeCoyote * 1131s # com_acme_coyote_skeleton_new (void) 1131s # { 1131s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ 1131s # * Code for interface org.project.Bar.Frobnicator 1131s # * ------------------------------------------------------------------------ 1131s # */ 1131s # 1131s # /** 1131s # * SECTION:OrgProjectBarFrobnicator 1131s # * @title: OrgProjectBarFrobnicator 1131s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1131s # * 1131s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1131s # */ 1131s # 1131s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1131s # 1131s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "RandomMethod", 1131s # NULL, 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "handle-random-method", 1131s # FALSE 1131s # }; 1131s # 1131s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1131s # { 1131s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "org.project.Bar.Frobnicator", 1131s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1131s # NULL, 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "org-project-bar-frobnicator", 1131s # }; 1131s # 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_interface_info: 1131s # * 1131s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1131s # * 1131s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1131s # */ 1131s # GDBusInterfaceInfo * 1131s # org_project_bar_frobnicator_interface_info (void) 1131s # { 1131s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_override_properties: 1131s # * @klass: The class structure for a #GObject derived class. 1131s # * @property_id_begin: The property id to assign to the first overridden property. 1131s # * 1131s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1131s # * The properties are overridden in the order they are defined. 1131s # * 1131s # * Returns: The last property id. 1131s # */ 1131s # guint 1131s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1131s # { 1131s # return property_id_begin - 1; 1131s # } 1131s # 1131s # 1131s # inline static void 1131s # org_project_bar_frobnicator_method_marshal_random_method ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # 1131s # /** 1131s # * OrgProjectBarFrobnicator: 1131s # * 1131s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectBarFrobnicatorIface: 1131s # * @parent_iface: The parent interface. 1131s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1131s # * 1131s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1131s # */ 1131s # 1131s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1131s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1131s # { 1131s # /* GObject signals for incoming D-Bus method calls: */ 1131s # /** 1131s # * OrgProjectBarFrobnicator::handle-random-method: 1131s # * @object: A #OrgProjectBarFrobnicator. 1131s # * @invocation: A #GDBusMethodInvocation. 1131s # * 1131s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1131s # * 1131s # * 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. 1131s # * 1131s # * 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. 1131s # */ 1131s # g_signal_new ("handle-random-method", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1131s # g_signal_accumulator_true_handled, 1131s # NULL, 1131s # org_project_bar_frobnicator_method_marshal_random_method, 1131s # G_TYPE_BOOLEAN, 1131s # 1, 1131s # G_TYPE_DBUS_METHOD_INVOCATION); 1131s # 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_call_random_method: 1131s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1131s # */ 1131s # void 1131s # org_project_bar_frobnicator_call_random_method ( 1131s # OrgProjectBarFrobnicator *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1131s # "RandomMethod", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # callback, 1131s # user_data); 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_call_random_method_finish: 1131s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # org_project_bar_frobnicator_call_random_method_finish ( 1131s # OrgProjectBarFrobnicator *proxy, 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_call_random_method_sync: 1131s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # org_project_bar_frobnicator_call_random_method_sync ( 1131s # OrgProjectBarFrobnicator *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1131s # "RandomMethod", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_complete_random_method: 1131s # * @object: A #OrgProjectBarFrobnicator. 1131s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1131s # * 1131s # * 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. 1131s # * 1131s # * This method will free @invocation, you cannot use it afterwards. 1131s # */ 1131s # void 1131s # org_project_bar_frobnicator_complete_random_method ( 1131s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1131s # GDBusMethodInvocation *invocation) 1131s # { 1131s # g_dbus_method_invocation_return_value (invocation, 1131s # g_variant_new ("()")); 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * OrgProjectBarFrobnicatorProxy: 1131s # * 1131s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectBarFrobnicatorProxyClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1131s # */ 1131s # 1131s # struct _OrgProjectBarFrobnicatorProxyPrivate 1131s # { 1131s # GData *qdata; 1131s # }; 1131s # 1131s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1131s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1131s # { 1131s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1131s # g_datalist_clear (&proxy->priv->qdata); 1131s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1131s # guint prop_id G_GNUC_UNUSED, 1131s # GValue *value G_GNUC_UNUSED, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1131s # guint prop_id G_GNUC_UNUSED, 1131s # const GValue *value G_GNUC_UNUSED, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1131s # const gchar *sender_name G_GNUC_UNUSED, 1131s # const gchar *signal_name, 1131s # GVariant *parameters) 1131s # { 1131s # _ExtendedGDBusSignalInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # gsize n; 1131s # guint signal_id; 1131s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1131s # if (info == NULL) 1131s # return; 1131s # num_params = g_variant_n_children (parameters); 1131s # paramv = g_new0 (GValue, num_params + 1); 1131s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1131s # g_value_set_object (¶mv[0], proxy); 1131s # g_variant_iter_init (&iter, parameters); 1131s # n = 1; 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1131s # g_signal_emitv (paramv, signal_id, 0, NULL); 1131s # for (n = 0; n < num_params + 1; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1131s # GVariant *changed_properties, 1131s # const gchar *const *invalidated_properties) 1131s # { 1131s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1131s # guint n; 1131s # const gchar *key; 1131s # GVariantIter *iter; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # g_variant_get (changed_properties, "a{sv}", &iter); 1131s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1131s # g_datalist_remove_data (&proxy->priv->qdata, key); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # g_variant_iter_free (iter); 1131s # for (n = 0; invalidated_properties[n] != NULL; n++) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1131s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1131s # #else 1131s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1131s # #endif 1131s # 1131s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusProxyClass *proxy_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1131s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1131s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1131s # 1131s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1131s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1131s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_proxy_new: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # org_project_bar_frobnicator_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_proxy_new_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectBarFrobnicator * 1131s # org_project_bar_frobnicator_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_proxy_new_sync: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectBarFrobnicator * 1131s # org_project_bar_frobnicator_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_proxy_new_for_bus: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # org_project_bar_frobnicator_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectBarFrobnicator * 1131s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectBarFrobnicator * 1131s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * OrgProjectBarFrobnicatorSkeleton: 1131s # * 1131s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectBarFrobnicatorSkeletonClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1131s # */ 1131s # 1131s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1131s # { 1131s # GValue *properties; 1131s # GList *changed_properties; 1131s # GSource *changed_properties_idle_source; 1131s # GMainContext *context; 1131s # GMutex lock; 1131s # }; 1131s # 1131s # static void 1131s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name, 1131s # const gchar *method_name, 1131s # GVariant *parameters, 1131s # GDBusMethodInvocation *invocation, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1131s # _ExtendedGDBusMethodInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # guint num_extra; 1131s # gsize n; 1131s # guint signal_id; 1131s # GValue return_value = G_VALUE_INIT; 1131s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1131s # g_assert (info != NULL); 1131s # num_params = g_variant_n_children (parameters); 1131s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1131s # n = 0; 1131s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1131s # g_value_set_object (¶mv[n++], skeleton); 1131s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1131s # g_value_set_object (¶mv[n++], invocation); 1131s # if (info->pass_fdlist) 1131s # { 1131s # #ifdef G_OS_UNIX 1131s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1131s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1131s # #else 1131s # g_assert_not_reached (); 1131s # #endif 1131s # } 1131s # g_variant_iter_init (&iter, parameters); 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1131s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1131s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1131s # if (!g_value_get_boolean (&return_value)) 1131s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1131s # g_value_unset (&return_value); 1131s # for (n = 0; n < num_params + num_extra; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static GVariant * 1131s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # GVariant *ret; 1131s # ret = NULL; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # g_value_init (&value, pspec->value_type); 1131s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1131s # g_value_unset (&value); 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static gboolean 1131s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GVariant *variant, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # gboolean ret; 1131s # ret = FALSE; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # if (info->use_gvariant) 1131s # g_value_set_variant (&value, variant); 1131s # else 1131s # g_dbus_gvariant_to_gvalue (variant, &value); 1131s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # g_value_unset (&value); 1131s # ret = TRUE; 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1131s # { 1131s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1131s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1131s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1131s # {NULL} 1131s # }; 1131s # 1131s # static GDBusInterfaceInfo * 1131s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return org_project_bar_frobnicator_interface_info (); 1131s # } 1131s # 1131s # static GDBusInterfaceVTable * 1131s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1131s # } 1131s # 1131s # static GVariant * 1131s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1131s # { 1131s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1131s # 1131s # GVariantBuilder builder; 1131s # guint n; 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1131s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #else 1131s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #endif 1131s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1131s # goto out; 1131s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1131s # { 1131s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1131s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1131s # { 1131s # GVariant *value; 1131s # 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); 1131s # if (value != NULL) 1131s # { 1131s # g_variant_take_ref (value); 1131s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1131s # g_variant_unref (value); 1131s # } 1131s # } 1131s # } 1131s # out: 1131s # return g_variant_builder_end (&builder); 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1131s # { 1131s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1131s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1131s # if (skeleton->priv->changed_properties_idle_source != NULL) 1131s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1131s # g_main_context_unref (skeleton->priv->context); 1131s # g_mutex_clear (&skeleton->priv->lock); 1131s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1131s # #else 1131s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1131s # #endif 1131s # 1131s # g_mutex_init (&skeleton->priv->lock); 1131s # skeleton->priv->context = g_main_context_ref_thread_default (); 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusInterfaceSkeletonClass *skeleton_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1131s # 1131s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1131s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1131s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1131s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1131s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_skeleton_new: 1131s # * 1131s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1131s # */ 1131s # OrgProjectBarFrobnicator * 1131s # org_project_bar_frobnicator_skeleton_new (void) 1131s # { 1131s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1131s # } 1131s # Error: 1131s # 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmpk23rydue/tmpkg_e5m6i2.xml', '/tmp/tmpk23rydue/tmpbuev1ayt1.xml', '--output', '-', '--body'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifdef HAVE_CONFIG_H 1131s # # include "config.h" 1131s # #endif 1131s # 1131s # #include 1131s # #ifdef G_OS_UNIX 1131s # # include 1131s # #endif 1131s # 1131s # #ifdef G_ENABLE_DEBUG 1131s # #define g_marshal_value_peek_boolean(v) g_value_get_boolean (v) 1131s # #define g_marshal_value_peek_char(v) g_value_get_schar (v) 1131s # #define g_marshal_value_peek_uchar(v) g_value_get_uchar (v) 1131s # #define g_marshal_value_peek_int(v) g_value_get_int (v) 1131s # #define g_marshal_value_peek_uint(v) g_value_get_uint (v) 1131s # #define g_marshal_value_peek_long(v) g_value_get_long (v) 1131s # #define g_marshal_value_peek_ulong(v) g_value_get_ulong (v) 1131s # #define g_marshal_value_peek_int64(v) g_value_get_int64 (v) 1131s # #define g_marshal_value_peek_uint64(v) g_value_get_uint64 (v) 1131s # #define g_marshal_value_peek_enum(v) g_value_get_enum (v) 1131s # #define g_marshal_value_peek_flags(v) g_value_get_flags (v) 1131s # #define g_marshal_value_peek_float(v) g_value_get_float (v) 1131s # #define g_marshal_value_peek_double(v) g_value_get_double (v) 1131s # #define g_marshal_value_peek_string(v) (char*) g_value_get_string (v) 1131s # #define g_marshal_value_peek_param(v) g_value_get_param (v) 1131s # #define g_marshal_value_peek_boxed(v) g_value_get_boxed (v) 1131s # #define g_marshal_value_peek_pointer(v) g_value_get_pointer (v) 1131s # #define g_marshal_value_peek_object(v) g_value_get_object (v) 1131s # #define g_marshal_value_peek_variant(v) g_value_get_variant (v) 1131s # #else /* !G_ENABLE_DEBUG */ 1131s # /* WARNING: This code accesses GValues directly, which is UNSUPPORTED API. 1131s # * Do not access GValues directly in your code. Instead, use the 1131s # * g_value_get_*() functions 1131s # */ 1131s # #define g_marshal_value_peek_boolean(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_char(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_uchar(v) (v)->data[0].v_uint 1131s # #define g_marshal_value_peek_int(v) (v)->data[0].v_int 1131s # #define g_marshal_value_peek_uint(v) (v)->data[0].v_uint 1131s # #define g_marshal_value_peek_long(v) (v)->data[0].v_long 1131s # #define g_marshal_value_peek_ulong(v) (v)->data[0].v_ulong 1131s # #define g_marshal_value_peek_int64(v) (v)->data[0].v_int64 1131s # #define g_marshal_value_peek_uint64(v) (v)->data[0].v_uint64 1131s # #define g_marshal_value_peek_enum(v) (v)->data[0].v_long 1131s # #define g_marshal_value_peek_flags(v) (v)->data[0].v_ulong 1131s # #define g_marshal_value_peek_float(v) (v)->data[0].v_float 1131s # #define g_marshal_value_peek_double(v) (v)->data[0].v_double 1131s # #define g_marshal_value_peek_string(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_param(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_boxed(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_pointer(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_object(v) (v)->data[0].v_pointer 1131s # #define g_marshal_value_peek_variant(v) (v)->data[0].v_pointer 1131s # #endif /* !G_ENABLE_DEBUG */ 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusArgInfo parent_struct; 1131s # gboolean use_gvariant; 1131s # } _ExtendedGDBusArgInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusMethodInfo parent_struct; 1131s # const gchar *signal_name; 1131s # gboolean pass_fdlist; 1131s # } _ExtendedGDBusMethodInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusSignalInfo parent_struct; 1131s # const gchar *signal_name; 1131s # } _ExtendedGDBusSignalInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusPropertyInfo parent_struct; 1131s # const gchar *hyphen_name; 1131s # guint use_gvariant : 1; 1131s # guint emits_changed_signal : 1; 1131s # } _ExtendedGDBusPropertyInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # GDBusInterfaceInfo parent_struct; 1131s # const gchar *hyphen_name; 1131s # } _ExtendedGDBusInterfaceInfo; 1131s # 1131s # typedef struct 1131s # { 1131s # const _ExtendedGDBusPropertyInfo *info; 1131s # guint prop_id; 1131s # GValue orig_value; /* the value before the change */ 1131s # } ChangedProperty; 1131s # 1131s # static void 1131s # _changed_property_free (ChangedProperty *data) 1131s # { 1131s # g_value_unset (&data->orig_value); 1131s # g_free (data); 1131s # } 1131s # 1131s # static gboolean 1131s # _g_strv_equal0 (gchar **a, gchar **b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # guint n; 1131s # if (a == NULL && b == NULL) 1131s # { 1131s # ret = TRUE; 1131s # goto out; 1131s # } 1131s # if (a == NULL || b == NULL) 1131s # goto out; 1131s # if (g_strv_length (a) != g_strv_length (b)) 1131s # goto out; 1131s # for (n = 0; a[n] != NULL; n++) 1131s # if (g_strcmp0 (a[n], b[n]) != 0) 1131s # goto out; 1131s # ret = TRUE; 1131s # out: 1131s # return ret; 1131s # } 1131s # 1131s # static gboolean 1131s # _g_variant_equal0 (GVariant *a, GVariant *b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # if (a == NULL && b == NULL) 1131s # { 1131s # ret = TRUE; 1131s # goto out; 1131s # } 1131s # if (a == NULL || b == NULL) 1131s # goto out; 1131s # ret = g_variant_equal (a, b); 1131s # out: 1131s # return ret; 1131s # } 1131s # 1131s # G_GNUC_UNUSED static gboolean 1131s # _g_value_equal (const GValue *a, const GValue *b) 1131s # { 1131s # gboolean ret = FALSE; 1131s # g_assert (G_VALUE_TYPE (a) == G_VALUE_TYPE (b)); 1131s # switch (G_VALUE_TYPE (a)) 1131s # { 1131s # case G_TYPE_BOOLEAN: 1131s # ret = (g_value_get_boolean (a) == g_value_get_boolean (b)); 1131s # break; 1131s # case G_TYPE_UCHAR: 1131s # ret = (g_value_get_uchar (a) == g_value_get_uchar (b)); 1131s # break; 1131s # case G_TYPE_INT: 1131s # ret = (g_value_get_int (a) == g_value_get_int (b)); 1131s # break; 1131s # case G_TYPE_UINT: 1131s # ret = (g_value_get_uint (a) == g_value_get_uint (b)); 1131s # break; 1131s # case G_TYPE_INT64: 1131s # ret = (g_value_get_int64 (a) == g_value_get_int64 (b)); 1131s # break; 1131s # case G_TYPE_UINT64: 1131s # ret = (g_value_get_uint64 (a) == g_value_get_uint64 (b)); 1131s # break; 1131s # case G_TYPE_DOUBLE: 1131s # { 1131s # /* Avoid -Wfloat-equal warnings by doing a direct bit compare */ 1131s # gdouble da = g_value_get_double (a); 1131s # gdouble db = g_value_get_double (b); 1131s # ret = memcmp (&da, &db, sizeof (gdouble)) == 0; 1131s # } 1131s # break; 1131s # case G_TYPE_STRING: 1131s # ret = (g_strcmp0 (g_value_get_string (a), g_value_get_string (b)) == 0); 1131s # break; 1131s # case G_TYPE_VARIANT: 1131s # ret = _g_variant_equal0 (g_value_get_variant (a), g_value_get_variant (b)); 1131s # break; 1131s # default: 1131s # if (G_VALUE_TYPE (a) == G_TYPE_STRV) 1131s # ret = _g_strv_equal0 (g_value_get_boxed (a), g_value_get_boxed (b)); 1131s # else 1131s # g_critical ("_g_value_equal() does not handle type %s", g_type_name (G_VALUE_TYPE (a))); 1131s # break; 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static void 1131s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint G_GNUC_UNUSED, 1131s # void *marshal_data) 1131s # { 1131s # typedef gboolean (*_GDbusCodegenMarshalBoolean_ObjectFunc) 1131s # (void *data1, 1131s # GDBusMethodInvocation *arg_method_invocation, 1131s # void *data2); 1131s # _GDbusCodegenMarshalBoolean_ObjectFunc callback; 1131s # GCClosure *cc = (GCClosure*) closure; 1131s # void *data1, *data2; 1131s # gboolean v_return; 1131s # 1131s # g_return_if_fail (return_value != NULL); 1131s # g_return_if_fail (n_param_values == 2); 1131s # 1131s # if (G_CCLOSURE_SWAP_DATA (closure)) 1131s # { 1131s # data1 = closure->data; 1131s # data2 = g_value_peek_pointer (param_values + 0); 1131s # } 1131s # else 1131s # { 1131s # data1 = g_value_peek_pointer (param_values + 0); 1131s # data2 = closure->data; 1131s # } 1131s # 1131s # callback = (_GDbusCodegenMarshalBoolean_ObjectFunc) 1131s # (marshal_data ? marshal_data : cc->callback); 1131s # 1131s # v_return = 1131s # callback (data1, 1131s # g_marshal_value_peek_object (param_values + 1), 1131s # data2); 1131s # 1131s # g_value_set_boolean (return_value, v_return); 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ 1131s # * Code for interface com.acme.Coyote 1131s # * ------------------------------------------------------------------------ 1131s # */ 1131s # 1131s # /** 1131s # * SECTION:ComAcmeCoyote 1131s # * @title: ComAcmeCoyote 1131s # * @short_description: Generated C code for the com.acme.Coyote D-Bus interface 1131s # * 1131s # * This section contains code for working with the com.acme.Coyote D-Bus interface in C. 1131s # */ 1131s # 1131s # enum 1131s # { 1131s # _COM_ACME_COYOTE_SURPRISED, 1131s # }; 1131s # 1131s # static unsigned _COM_ACME_COYOTE_SIGNALS[1] = { 0 }; 1131s # 1131s # /* ---- Introspection data for com.acme.Coyote ---- */ 1131s # 1131s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_run = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "Run", 1131s # NULL, 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "handle-run", 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_sleep = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "Sleep", 1131s # NULL, 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "handle-sleep", 1131s # FALSE 1131s # }; 1131s # 1131s # static const _ExtendedGDBusMethodInfo _com_acme_coyote_method_info_attack = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "Attack", 1131s # NULL, 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "handle-attack", 1131s # FALSE 1131s # }; 1131s # 1131s # static const GDBusMethodInfo * const _com_acme_coyote_method_info_pointers[] = 1131s # { 1131s # &_com_acme_coyote_method_info_run.parent_struct, 1131s # &_com_acme_coyote_method_info_sleep.parent_struct, 1131s # &_com_acme_coyote_method_info_attack.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusSignalInfo _com_acme_coyote_signal_info_surprised = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "Surprised", 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "surprised" 1131s # }; 1131s # 1131s # static const GDBusSignalInfo * const _com_acme_coyote_signal_info_pointers[] = 1131s # { 1131s # &_com_acme_coyote_signal_info_surprised.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusPropertyInfo _com_acme_coyote_property_info_mood = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "Mood", 1131s # (gchar *) "s", 1131s # G_DBUS_PROPERTY_INFO_FLAGS_READABLE, 1131s # NULL 1131s # }, 1131s # "mood", 1131s # FALSE, 1131s # TRUE 1131s # }; 1131s # 1131s # static const GDBusPropertyInfo * const _com_acme_coyote_property_info_pointers[] = 1131s # { 1131s # &_com_acme_coyote_property_info_mood.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusInterfaceInfo _com_acme_coyote_interface_info = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "com.acme.Coyote", 1131s # (GDBusMethodInfo **) &_com_acme_coyote_method_info_pointers, 1131s # (GDBusSignalInfo **) &_com_acme_coyote_signal_info_pointers, 1131s # (GDBusPropertyInfo **) &_com_acme_coyote_property_info_pointers, 1131s # NULL 1131s # }, 1131s # "com-acme-coyote", 1131s # }; 1131s # 1131s # 1131s # /** 1131s # * com_acme_coyote_interface_info: 1131s # * 1131s # * Gets a machine-readable description of the com.acme.Coyote D-Bus interface. 1131s # * 1131s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1131s # */ 1131s # GDBusInterfaceInfo * 1131s # com_acme_coyote_interface_info (void) 1131s # { 1131s # return (GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_override_properties: 1131s # * @klass: The class structure for a #GObject derived class. 1131s # * @property_id_begin: The property id to assign to the first overridden property. 1131s # * 1131s # * Overrides all #GObject properties in the #ComAcmeCoyote interface for a concrete class. 1131s # * The properties are overridden in the order they are defined. 1131s # * 1131s # * Returns: The last property id. 1131s # */ 1131s # guint 1131s # com_acme_coyote_override_properties (GObjectClass *klass, guint property_id_begin) 1131s # { 1131s # g_object_class_override_property (klass, property_id_begin++, "mood"); 1131s # return property_id_begin - 1; 1131s # } 1131s # 1131s # 1131s # inline static void 1131s # com_acme_coyote_signal_marshal_surprised ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # g_cclosure_marshal_VOID__VOID (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # inline static void 1131s # com_acme_coyote_method_marshal_run ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # inline static void 1131s # com_acme_coyote_method_marshal_sleep ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # inline static void 1131s # com_acme_coyote_method_marshal_attack ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # 1131s # /** 1131s # * ComAcmeCoyote: 1131s # * 1131s # * Abstract interface type for the D-Bus interface com.acme.Coyote. 1131s # */ 1131s # 1131s # /** 1131s # * ComAcmeCoyoteIface: 1131s # * @parent_iface: The parent interface. 1131s # * @handle_attack: Handler for the #ComAcmeCoyote::handle-attack signal. 1131s # * @handle_run: Handler for the #ComAcmeCoyote::handle-run signal. 1131s # * @handle_sleep: Handler for the #ComAcmeCoyote::handle-sleep signal. 1131s # * @get_mood: Getter for the #ComAcmeCoyote:mood property. 1131s # * @surprised: Handler for the #ComAcmeCoyote::surprised signal. 1131s # * 1131s # * Virtual table for the D-Bus interface com.acme.Coyote. 1131s # */ 1131s # 1131s # typedef ComAcmeCoyoteIface ComAcmeCoyoteInterface; 1131s # G_DEFINE_INTERFACE (ComAcmeCoyote, com_acme_coyote, G_TYPE_OBJECT) 1131s # 1131s # static void 1131s # com_acme_coyote_default_init (ComAcmeCoyoteIface *iface) 1131s # { 1131s # /* GObject signals for incoming D-Bus method calls: */ 1131s # /** 1131s # * ComAcmeCoyote::handle-run: 1131s # * @object: A #ComAcmeCoyote. 1131s # * @invocation: A #GDBusMethodInvocation. 1131s # * 1131s # * Signal emitted when a remote caller is invoking the Run() D-Bus method. 1131s # * 1131s # * 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. 1131s # * 1131s # * 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. 1131s # */ 1131s # g_signal_new ("handle-run", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_run), 1131s # g_signal_accumulator_true_handled, 1131s # NULL, 1131s # com_acme_coyote_method_marshal_run, 1131s # G_TYPE_BOOLEAN, 1131s # 1, 1131s # G_TYPE_DBUS_METHOD_INVOCATION); 1131s # 1131s # /** 1131s # * ComAcmeCoyote::handle-sleep: 1131s # * @object: A #ComAcmeCoyote. 1131s # * @invocation: A #GDBusMethodInvocation. 1131s # * 1131s # * Signal emitted when a remote caller is invoking the Sleep() D-Bus method. 1131s # * 1131s # * 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. 1131s # * 1131s # * 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. 1131s # */ 1131s # g_signal_new ("handle-sleep", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_sleep), 1131s # g_signal_accumulator_true_handled, 1131s # NULL, 1131s # com_acme_coyote_method_marshal_sleep, 1131s # G_TYPE_BOOLEAN, 1131s # 1, 1131s # G_TYPE_DBUS_METHOD_INVOCATION); 1131s # 1131s # /** 1131s # * ComAcmeCoyote::handle-attack: 1131s # * @object: A #ComAcmeCoyote. 1131s # * @invocation: A #GDBusMethodInvocation. 1131s # * 1131s # * Signal emitted when a remote caller is invoking the Attack() D-Bus method. 1131s # * 1131s # * 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. 1131s # * 1131s # * 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. 1131s # */ 1131s # g_signal_new ("handle-attack", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, handle_attack), 1131s # g_signal_accumulator_true_handled, 1131s # NULL, 1131s # com_acme_coyote_method_marshal_attack, 1131s # G_TYPE_BOOLEAN, 1131s # 1, 1131s # G_TYPE_DBUS_METHOD_INVOCATION); 1131s # 1131s # /* GObject signals for received D-Bus signals: */ 1131s # /** 1131s # * ComAcmeCoyote::surprised: 1131s # * @object: A #ComAcmeCoyote. 1131s # * 1131s # * On the client-side, this signal is emitted whenever the D-Bus signal "Surprised" is received. 1131s # * 1131s # * On the service-side, this signal can be used with e.g. g_signal_emit_by_name() to make the object emit the D-Bus signal. 1131s # */ 1131s # _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED] = 1131s # g_signal_new ("surprised", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (ComAcmeCoyoteIface, surprised), 1131s # NULL, 1131s # NULL, 1131s # com_acme_coyote_signal_marshal_surprised, 1131s # G_TYPE_NONE, 1131s # 0); 1131s # 1131s # /* GObject properties for D-Bus properties: */ 1131s # /** 1131s # * ComAcmeCoyote:mood: 1131s # * 1131s # * Represents the D-Bus property "Mood". 1131s # * 1131s # * 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. 1131s # */ 1131s # g_object_interface_install_property (iface, 1131s # g_param_spec_string ("mood", "Mood", "Mood", NULL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_get_mood: (skip) 1131s # * @object: A #ComAcmeCoyote. 1131s # * 1131s # * Gets the value of the "Mood" D-Bus property. 1131s # * 1131s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1131s # * 1131s # * 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. 1131s # * 1131s # * 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. 1131s # */ 1131s # const gchar * 1131s # com_acme_coyote_get_mood (ComAcmeCoyote *object) 1131s # { 1131s # g_return_val_if_fail (IS_COM_ACME_COYOTE (object), NULL); 1131s # 1131s # return COM_ACME_COYOTE_GET_IFACE (object)->get_mood (object); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_dup_mood: (skip) 1131s # * @object: A #ComAcmeCoyote. 1131s # * 1131s # * Gets a copy of the "Mood" D-Bus property. 1131s # * 1131s # * Since this D-Bus property is readable, it is meaningful to use this function on both the client- and service-side. 1131s # * 1131s # * Returns: (transfer full) (nullable): The property value or %NULL if the property is not set. The returned value should be freed with g_free(). 1131s # */ 1131s # gchar * 1131s # com_acme_coyote_dup_mood (ComAcmeCoyote *object) 1131s # { 1131s # gchar *value; 1131s # g_object_get (G_OBJECT (object), "mood", &value, NULL); 1131s # return value; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_set_mood: (skip) 1131s # * @object: A #ComAcmeCoyote. 1131s # * @value: The value to set. 1131s # * 1131s # * Sets the "Mood" D-Bus property to @value. 1131s # * 1131s # * Since this D-Bus property is not writable, it is only meaningful to use this function on the service-side. 1131s # */ 1131s # void 1131s # com_acme_coyote_set_mood (ComAcmeCoyote *object, const gchar *value) 1131s # { 1131s # g_object_set (G_OBJECT (object), "mood", value, NULL); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_emit_surprised: 1131s # * @object: A #ComAcmeCoyote. 1131s # * 1131s # * Emits the "Surprised" D-Bus signal. 1131s # */ 1131s # void 1131s # com_acme_coyote_emit_surprised ( 1131s # ComAcmeCoyote *object) 1131s # { 1131s # g_signal_emit (object, _COM_ACME_COYOTE_SIGNALS[_COM_ACME_COYOTE_SURPRISED], 0); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_run: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously invokes the Run() D-Bus method on @proxy. 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call com_acme_coyote_call_run_finish() to get the result of the operation. 1131s # * 1131s # * See com_acme_coyote_call_run_sync() for the synchronous, blocking version of this method. 1131s # */ 1131s # void 1131s # com_acme_coyote_call_run ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1131s # "Run", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # callback, 1131s # user_data); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_run_finish: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_run(). 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Finishes an operation started with com_acme_coyote_call_run(). 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # com_acme_coyote_call_run_finish ( 1131s # ComAcmeCoyote *proxy, 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_run_sync: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Synchronously invokes the Run() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1131s # * 1131s # * See com_acme_coyote_call_run() for the asynchronous version of this method. 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # com_acme_coyote_call_run_sync ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1131s # "Run", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_sleep: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously invokes the Sleep() D-Bus method on @proxy. 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call com_acme_coyote_call_sleep_finish() to get the result of the operation. 1131s # * 1131s # * See com_acme_coyote_call_sleep_sync() for the synchronous, blocking version of this method. 1131s # */ 1131s # void 1131s # com_acme_coyote_call_sleep ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1131s # "Sleep", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # callback, 1131s # user_data); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_sleep_finish: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_sleep(). 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Finishes an operation started with com_acme_coyote_call_sleep(). 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # com_acme_coyote_call_sleep_finish ( 1131s # ComAcmeCoyote *proxy, 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_sleep_sync: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Synchronously invokes the Sleep() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1131s # * 1131s # * See com_acme_coyote_call_sleep() for the asynchronous version of this method. 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # com_acme_coyote_call_sleep_sync ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1131s # "Sleep", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_attack: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously invokes the Attack() D-Bus method on @proxy. 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call com_acme_coyote_call_attack_finish() to get the result of the operation. 1131s # * 1131s # * See com_acme_coyote_call_attack_sync() for the synchronous, blocking version of this method. 1131s # */ 1131s # void 1131s # com_acme_coyote_call_attack ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1131s # "Attack", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # callback, 1131s # user_data); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_attack_finish: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_call_attack(). 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Finishes an operation started with com_acme_coyote_call_attack(). 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # com_acme_coyote_call_attack_finish ( 1131s # ComAcmeCoyote *proxy, 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_call_attack_sync: 1131s # * @proxy: A #ComAcmeCoyoteProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Synchronously invokes the Attack() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1131s # * 1131s # * See com_acme_coyote_call_attack() for the asynchronous version of this method. 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # com_acme_coyote_call_attack_sync ( 1131s # ComAcmeCoyote *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1131s # "Attack", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_complete_run: 1131s # * @object: A #ComAcmeCoyote. 1131s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1131s # * 1131s # * 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. 1131s # * 1131s # * This method will free @invocation, you cannot use it afterwards. 1131s # */ 1131s # void 1131s # com_acme_coyote_complete_run ( 1131s # ComAcmeCoyote *object G_GNUC_UNUSED, 1131s # GDBusMethodInvocation *invocation) 1131s # { 1131s # g_dbus_method_invocation_return_value (invocation, 1131s # g_variant_new ("()")); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_complete_sleep: 1131s # * @object: A #ComAcmeCoyote. 1131s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1131s # * 1131s # * 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. 1131s # * 1131s # * This method will free @invocation, you cannot use it afterwards. 1131s # */ 1131s # void 1131s # com_acme_coyote_complete_sleep ( 1131s # ComAcmeCoyote *object G_GNUC_UNUSED, 1131s # GDBusMethodInvocation *invocation) 1131s # { 1131s # g_dbus_method_invocation_return_value (invocation, 1131s # g_variant_new ("()")); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_complete_attack: 1131s # * @object: A #ComAcmeCoyote. 1131s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1131s # * 1131s # * 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. 1131s # * 1131s # * This method will free @invocation, you cannot use it afterwards. 1131s # */ 1131s # void 1131s # com_acme_coyote_complete_attack ( 1131s # ComAcmeCoyote *object G_GNUC_UNUSED, 1131s # GDBusMethodInvocation *invocation) 1131s # { 1131s # g_dbus_method_invocation_return_value (invocation, 1131s # g_variant_new ("()")); 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * ComAcmeCoyoteProxy: 1131s # * 1131s # * The #ComAcmeCoyoteProxy structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * ComAcmeCoyoteProxyClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #ComAcmeCoyoteProxy. 1131s # */ 1131s # 1131s # struct _ComAcmeCoyoteProxyPrivate 1131s # { 1131s # GData *qdata; 1131s # }; 1131s # 1131s # static void com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface); 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1131s # G_ADD_PRIVATE (ComAcmeCoyoteProxy) 1131s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteProxy, com_acme_coyote_proxy, G_TYPE_DBUS_PROXY, 1131s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_proxy_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # com_acme_coyote_proxy_finalize (GObject *object) 1131s # { 1131s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1131s # g_datalist_clear (&proxy->priv->qdata); 1131s # G_OBJECT_CLASS (com_acme_coyote_proxy_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_get_property (GObject *object, 1131s # guint prop_id, 1131s # GValue *value, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # const _ExtendedGDBusPropertyInfo *info; 1131s # GVariant *variant; 1131s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1131s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1131s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (object), info->parent_struct.name); 1131s # if (info->use_gvariant) 1131s # { 1131s # g_value_set_variant (value, variant); 1131s # } 1131s # else 1131s # { 1131s # if (variant != NULL) 1131s # g_dbus_gvariant_to_gvalue (variant, value); 1131s # } 1131s # if (variant != NULL) 1131s # g_variant_unref (variant); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_set_property_cb (GDBusProxy *proxy, 1131s # GAsyncResult *res, 1131s # gpointer user_data) 1131s # { 1131s # const _ExtendedGDBusPropertyInfo *info = user_data; 1131s # GError *error; 1131s # GVariant *_ret; 1131s # error = NULL; 1131s # _ret = g_dbus_proxy_call_finish (proxy, res, &error); 1131s # if (!_ret) 1131s # { 1131s # g_warning ("Error setting property '%s' on interface com.acme.Coyote: %s (%s, %d)", 1131s # info->parent_struct.name, 1131s # error->message, g_quark_to_string (error->domain), error->code); 1131s # g_error_free (error); 1131s # } 1131s # else 1131s # { 1131s # g_variant_unref (_ret); 1131s # } 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_set_property (GObject *object, 1131s # guint prop_id, 1131s # const GValue *value, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # const _ExtendedGDBusPropertyInfo *info; 1131s # GVariant *variant; 1131s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1131s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1131s # variant = g_dbus_gvalue_to_gvariant (value, G_VARIANT_TYPE (info->parent_struct.signature)); 1131s # g_dbus_proxy_call (G_DBUS_PROXY (object), 1131s # "org.freedesktop.DBus.Properties.Set", 1131s # g_variant_new ("(ssv)", "com.acme.Coyote", info->parent_struct.name, variant), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # NULL, (GAsyncReadyCallback) com_acme_coyote_proxy_set_property_cb, (GDBusPropertyInfo *) &info->parent_struct); 1131s # g_variant_unref (variant); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_g_signal (GDBusProxy *proxy, 1131s # const gchar *sender_name G_GNUC_UNUSED, 1131s # const gchar *signal_name, 1131s # GVariant *parameters) 1131s # { 1131s # _ExtendedGDBusSignalInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # gsize n; 1131s # guint signal_id; 1131s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, signal_name); 1131s # if (info == NULL) 1131s # return; 1131s # num_params = g_variant_n_children (parameters); 1131s # paramv = g_new0 (GValue, num_params + 1); 1131s # g_value_init (¶mv[0], TYPE_COM_ACME_COYOTE); 1131s # g_value_set_object (¶mv[0], proxy); 1131s # g_variant_iter_init (&iter, parameters); 1131s # n = 1; 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1131s # g_signal_emitv (paramv, signal_id, 0, NULL); 1131s # for (n = 0; n < num_params + 1; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_g_properties_changed (GDBusProxy *_proxy, 1131s # GVariant *changed_properties, 1131s # const gchar *const *invalidated_properties) 1131s # { 1131s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (_proxy); 1131s # guint n; 1131s # const gchar *key; 1131s # GVariantIter *iter; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # g_variant_get (changed_properties, "a{sv}", &iter); 1131s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, key); 1131s # g_datalist_remove_data (&proxy->priv->qdata, key); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # g_variant_iter_free (iter); 1131s # for (n = 0; invalidated_properties[n] != NULL; n++) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, invalidated_properties[n]); 1131s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # } 1131s # 1131s # static const gchar * 1131s # com_acme_coyote_proxy_get_mood (ComAcmeCoyote *object) 1131s # { 1131s # ComAcmeCoyoteProxy *proxy = COM_ACME_COYOTE_PROXY (object); 1131s # GVariant *variant; 1131s # const gchar *value = NULL; 1131s # variant = g_dbus_proxy_get_cached_property (G_DBUS_PROXY (proxy), "Mood"); 1131s # if (variant != NULL) 1131s # { 1131s # value = g_variant_get_string (variant, NULL); 1131s # g_variant_unref (variant); 1131s # } 1131s # return value; 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_init (ComAcmeCoyoteProxy *proxy) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # proxy->priv = com_acme_coyote_proxy_get_instance_private (proxy); 1131s # #else 1131s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_COM_ACME_COYOTE_PROXY, ComAcmeCoyoteProxyPrivate); 1131s # #endif 1131s # 1131s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), com_acme_coyote_interface_info ()); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_class_init (ComAcmeCoyoteProxyClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusProxyClass *proxy_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = com_acme_coyote_proxy_finalize; 1131s # gobject_class->get_property = com_acme_coyote_proxy_get_property; 1131s # gobject_class->set_property = com_acme_coyote_proxy_set_property; 1131s # 1131s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1131s # proxy_class->g_signal = com_acme_coyote_proxy_g_signal; 1131s # proxy_class->g_properties_changed = com_acme_coyote_proxy_g_properties_changed; 1131s # 1131s # com_acme_coyote_override_properties (gobject_class, 1); 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteProxyPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_proxy_iface_init (ComAcmeCoyoteIface *iface) 1131s # { 1131s # iface->get_mood = com_acme_coyote_proxy_get_mood; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_proxy_new: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new() for more details. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call com_acme_coyote_proxy_new_finish() to get the result of the operation. 1131s # * 1131s # * See com_acme_coyote_proxy_new_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # com_acme_coyote_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_proxy_new_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with com_acme_coyote_proxy_new(). 1131s # * 1131s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # ComAcmeCoyote * 1131s # com_acme_coyote_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return COM_ACME_COYOTE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_proxy_new_sync: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Synchronously creates a proxy for the D-Bus interface com.acme.Coyote. See g_dbus_proxy_new_sync() for more details. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See com_acme_coyote_proxy_new() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # ComAcmeCoyote * 1131s # com_acme_coyote_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return COM_ACME_COYOTE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /** 1131s # * com_acme_coyote_proxy_new_for_bus: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Like com_acme_coyote_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call com_acme_coyote_proxy_new_for_bus_finish() to get the result of the operation. 1131s # * 1131s # * See com_acme_coyote_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # com_acme_coyote_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_proxy_new_for_bus_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to com_acme_coyote_proxy_new_for_bus(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with com_acme_coyote_proxy_new_for_bus(). 1131s # * 1131s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # ComAcmeCoyote * 1131s # com_acme_coyote_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return COM_ACME_COYOTE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_proxy_new_for_bus_sync: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Like com_acme_coyote_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See com_acme_coyote_proxy_new_for_bus() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type ComAcmeCoyoteProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # ComAcmeCoyote * 1131s # com_acme_coyote_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return COM_ACME_COYOTE (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * ComAcmeCoyoteSkeleton: 1131s # * 1131s # * The #ComAcmeCoyoteSkeleton structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * ComAcmeCoyoteSkeletonClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #ComAcmeCoyoteSkeleton. 1131s # */ 1131s # 1131s # struct _ComAcmeCoyoteSkeletonPrivate 1131s # { 1131s # GValue *properties; 1131s # GList *changed_properties; 1131s # GSource *changed_properties_idle_source; 1131s # GMainContext *context; 1131s # GMutex lock; 1131s # }; 1131s # 1131s # static void 1131s # _com_acme_coyote_skeleton_handle_method_call ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name, 1131s # const gchar *method_name, 1131s # GVariant *parameters, 1131s # GDBusMethodInvocation *invocation, 1131s # gpointer user_data) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1131s # _ExtendedGDBusMethodInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # guint num_extra; 1131s # gsize n; 1131s # guint signal_id; 1131s # GValue return_value = G_VALUE_INIT; 1131s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1131s # g_assert (info != NULL); 1131s # num_params = g_variant_n_children (parameters); 1131s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1131s # n = 0; 1131s # g_value_init (¶mv[n], TYPE_COM_ACME_COYOTE); 1131s # g_value_set_object (¶mv[n++], skeleton); 1131s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1131s # g_value_set_object (¶mv[n++], invocation); 1131s # if (info->pass_fdlist) 1131s # { 1131s # #ifdef G_OS_UNIX 1131s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1131s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1131s # #else 1131s # g_assert_not_reached (); 1131s # #endif 1131s # } 1131s # g_variant_iter_init (&iter, parameters); 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_COM_ACME_COYOTE); 1131s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1131s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1131s # if (!g_value_get_boolean (&return_value)) 1131s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1131s # g_value_unset (&return_value); 1131s # for (n = 0; n < num_params + num_extra; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static GVariant * 1131s # _com_acme_coyote_skeleton_handle_get_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # GVariant *ret; 1131s # ret = NULL; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # g_value_init (&value, pspec->value_type); 1131s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1131s # g_value_unset (&value); 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static gboolean 1131s # _com_acme_coyote_skeleton_handle_set_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GVariant *variant, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # gboolean ret; 1131s # ret = FALSE; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_com_acme_coyote_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # if (info->use_gvariant) 1131s # g_value_set_variant (&value, variant); 1131s # else 1131s # g_dbus_gvariant_to_gvalue (variant, &value); 1131s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # g_value_unset (&value); 1131s # ret = TRUE; 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static const GDBusInterfaceVTable _com_acme_coyote_skeleton_vtable = 1131s # { 1131s # _com_acme_coyote_skeleton_handle_method_call, 1131s # _com_acme_coyote_skeleton_handle_get_property, 1131s # _com_acme_coyote_skeleton_handle_set_property, 1131s # {NULL} 1131s # }; 1131s # 1131s # static GDBusInterfaceInfo * 1131s # com_acme_coyote_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return com_acme_coyote_interface_info (); 1131s # } 1131s # 1131s # static GDBusInterfaceVTable * 1131s # com_acme_coyote_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return (GDBusInterfaceVTable *) &_com_acme_coyote_skeleton_vtable; 1131s # } 1131s # 1131s # static GVariant * 1131s # com_acme_coyote_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1131s # 1131s # GVariantBuilder builder; 1131s # guint n; 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1131s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #else 1131s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #endif 1131s # if (_com_acme_coyote_interface_info.parent_struct.properties == NULL) 1131s # goto out; 1131s # for (n = 0; _com_acme_coyote_interface_info.parent_struct.properties[n] != NULL; n++) 1131s # { 1131s # GDBusPropertyInfo *info = _com_acme_coyote_interface_info.parent_struct.properties[n]; 1131s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1131s # { 1131s # GVariant *value; 1131s # 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); 1131s # if (value != NULL) 1131s # { 1131s # g_variant_take_ref (value); 1131s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1131s # g_variant_unref (value); 1131s # } 1131s # } 1131s # } 1131s # out: 1131s # return g_variant_builder_end (&builder); 1131s # } 1131s # 1131s # static gboolean _com_acme_coyote_emit_changed (gpointer user_data); 1131s # 1131s # static void 1131s # com_acme_coyote_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (_skeleton); 1131s # gboolean emit_changed = FALSE; 1131s # 1131s # g_mutex_lock (&skeleton->priv->lock); 1131s # if (skeleton->priv->changed_properties_idle_source != NULL) 1131s # { 1131s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1131s # skeleton->priv->changed_properties_idle_source = NULL; 1131s # emit_changed = TRUE; 1131s # } 1131s # g_mutex_unlock (&skeleton->priv->lock); 1131s # 1131s # if (emit_changed) 1131s # _com_acme_coyote_emit_changed (skeleton); 1131s # } 1131s # 1131s # static void 1131s # _com_acme_coyote_on_signal_surprised ( 1131s # ComAcmeCoyote *object) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1131s # 1131s # GList *connections, *l; 1131s # GVariant *signal_variant; 1131s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1131s # 1131s # signal_variant = g_variant_ref_sink (g_variant_new ("()")); 1131s # for (l = connections; l != NULL; l = l->next) 1131s # { 1131s # GDBusConnection *connection = l->data; 1131s # g_dbus_connection_emit_signal (connection, 1131s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), "com.acme.Coyote", "Surprised", 1131s # signal_variant, NULL); 1131s # } 1131s # g_variant_unref (signal_variant); 1131s # g_list_free_full (connections, g_object_unref); 1131s # } 1131s # 1131s # static void com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface); 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_ADD_PRIVATE (ComAcmeCoyoteSkeleton) 1131s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (ComAcmeCoyoteSkeleton, com_acme_coyote_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_IMPLEMENT_INTERFACE (TYPE_COM_ACME_COYOTE, com_acme_coyote_skeleton_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # com_acme_coyote_skeleton_finalize (GObject *object) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1131s # guint n; 1131s # for (n = 0; n < 1; n++) 1131s # g_value_unset (&skeleton->priv->properties[n]); 1131s # g_free (skeleton->priv->properties); 1131s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1131s # if (skeleton->priv->changed_properties_idle_source != NULL) 1131s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1131s # g_main_context_unref (skeleton->priv->context); 1131s # g_mutex_clear (&skeleton->priv->lock); 1131s # G_OBJECT_CLASS (com_acme_coyote_skeleton_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_skeleton_get_property (GObject *object, 1131s # guint prop_id, 1131s # GValue *value, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1131s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1131s # g_mutex_lock (&skeleton->priv->lock); 1131s # g_value_copy (&skeleton->priv->properties[prop_id - 1], value); 1131s # g_mutex_unlock (&skeleton->priv->lock); 1131s # } 1131s # 1131s # static gboolean 1131s # _com_acme_coyote_emit_changed (gpointer user_data) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (user_data); 1131s # GList *l; 1131s # GVariantBuilder builder; 1131s # GVariantBuilder invalidated_builder; 1131s # guint num_changes; 1131s # 1131s # g_mutex_lock (&skeleton->priv->lock); 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1131s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # g_variant_builder_init_static (&invalidated_builder, G_VARIANT_TYPE ("as")); 1131s # #else 1131s # g_variant_builder_init (&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # g_variant_builder_init (&invalidated_builder, G_VARIANT_TYPE ("as")); 1131s # #endif 1131s # for (l = skeleton->priv->changed_properties, num_changes = 0; l != NULL; l = l->next) 1131s # { 1131s # ChangedProperty *cp = l->data; 1131s # GVariant *variant; 1131s # const GValue *cur_value; 1131s # 1131s # cur_value = &skeleton->priv->properties[cp->prop_id - 1]; 1131s # if (!_g_value_equal (cur_value, &cp->orig_value)) 1131s # { 1131s # variant = g_dbus_gvalue_to_gvariant (cur_value, G_VARIANT_TYPE (cp->info->parent_struct.signature)); 1131s # g_variant_builder_add (&builder, "{sv}", cp->info->parent_struct.name, variant); 1131s # g_variant_unref (variant); 1131s # num_changes++; 1131s # } 1131s # } 1131s # if (num_changes > 0) 1131s # { 1131s # GList *connections, *ll; 1131s # GVariant *signal_variant; 1131s # signal_variant = g_variant_ref_sink (g_variant_new ("(sa{sv}as)", "com.acme.Coyote", 1131s # &builder, &invalidated_builder)); 1131s # connections = g_dbus_interface_skeleton_get_connections (G_DBUS_INTERFACE_SKELETON (skeleton)); 1131s # for (ll = connections; ll != NULL; ll = ll->next) 1131s # { 1131s # GDBusConnection *connection = ll->data; 1131s # 1131s # g_dbus_connection_emit_signal (connection, 1131s # NULL, g_dbus_interface_skeleton_get_object_path (G_DBUS_INTERFACE_SKELETON (skeleton)), 1131s # "org.freedesktop.DBus.Properties", 1131s # "PropertiesChanged", 1131s # signal_variant, 1131s # NULL); 1131s # } 1131s # g_variant_unref (signal_variant); 1131s # g_list_free_full (connections, g_object_unref); 1131s # } 1131s # else 1131s # { 1131s # g_variant_builder_clear (&builder); 1131s # g_variant_builder_clear (&invalidated_builder); 1131s # } 1131s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1131s # skeleton->priv->changed_properties = NULL; 1131s # skeleton->priv->changed_properties_idle_source = NULL; 1131s # g_mutex_unlock (&skeleton->priv->lock); 1131s # return FALSE; 1131s # } 1131s # 1131s # static void 1131s # _com_acme_coyote_schedule_emit_changed (ComAcmeCoyoteSkeleton *skeleton, const _ExtendedGDBusPropertyInfo *info, guint prop_id, const GValue *orig_value) 1131s # { 1131s # ChangedProperty *cp; 1131s # GList *l; 1131s # cp = NULL; 1131s # for (l = skeleton->priv->changed_properties; l != NULL; l = l->next) 1131s # { 1131s # ChangedProperty *i_cp = l->data; 1131s # if (i_cp->info == info) 1131s # { 1131s # cp = i_cp; 1131s # break; 1131s # } 1131s # } 1131s # if (cp == NULL) 1131s # { 1131s # cp = g_new0 (ChangedProperty, 1); 1131s # cp->prop_id = prop_id; 1131s # cp->info = info; 1131s # skeleton->priv->changed_properties = g_list_prepend (skeleton->priv->changed_properties, cp); 1131s # g_value_init (&cp->orig_value, G_VALUE_TYPE (orig_value)); 1131s # g_value_copy (orig_value, &cp->orig_value); 1131s # } 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_skeleton_notify (GObject *object, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1131s # g_mutex_lock (&skeleton->priv->lock); 1131s # if (skeleton->priv->changed_properties != NULL && 1131s # skeleton->priv->changed_properties_idle_source == NULL) 1131s # { 1131s # skeleton->priv->changed_properties_idle_source = g_idle_source_new (); 1131s # g_source_set_priority (skeleton->priv->changed_properties_idle_source, G_PRIORITY_DEFAULT); 1131s # g_source_set_callback (skeleton->priv->changed_properties_idle_source, _com_acme_coyote_emit_changed, g_object_ref (skeleton), (GDestroyNotify) g_object_unref); 1131s # g_source_set_name (skeleton->priv->changed_properties_idle_source, "[generated] _com_acme_coyote_emit_changed"); 1131s # g_source_attach (skeleton->priv->changed_properties_idle_source, skeleton->priv->context); 1131s # g_source_unref (skeleton->priv->changed_properties_idle_source); 1131s # } 1131s # g_mutex_unlock (&skeleton->priv->lock); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_skeleton_set_property (GObject *object, 1131s # guint prop_id, 1131s # const GValue *value, 1131s # GParamSpec *pspec) 1131s # { 1131s # const _ExtendedGDBusPropertyInfo *info; 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1131s # g_assert (prop_id != 0 && prop_id - 1 < 1); 1131s # info = (const _ExtendedGDBusPropertyInfo *) _com_acme_coyote_property_info_pointers[prop_id - 1]; 1131s # g_mutex_lock (&skeleton->priv->lock); 1131s # g_object_freeze_notify (object); 1131s # if (!_g_value_equal (value, &skeleton->priv->properties[prop_id - 1])) 1131s # { 1131s # if (g_dbus_interface_skeleton_get_connection (G_DBUS_INTERFACE_SKELETON (skeleton)) != NULL && 1131s # info->emits_changed_signal) 1131s # _com_acme_coyote_schedule_emit_changed (skeleton, info, prop_id, &skeleton->priv->properties[prop_id - 1]); 1131s # g_value_copy (value, &skeleton->priv->properties[prop_id - 1]); 1131s # g_object_notify_by_pspec (object, pspec); 1131s # } 1131s # g_mutex_unlock (&skeleton->priv->lock); 1131s # g_object_thaw_notify (object); 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_skeleton_init (ComAcmeCoyoteSkeleton *skeleton) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # skeleton->priv = com_acme_coyote_skeleton_get_instance_private (skeleton); 1131s # #else 1131s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_COM_ACME_COYOTE_SKELETON, ComAcmeCoyoteSkeletonPrivate); 1131s # #endif 1131s # 1131s # g_mutex_init (&skeleton->priv->lock); 1131s # skeleton->priv->context = g_main_context_ref_thread_default (); 1131s # skeleton->priv->properties = g_new0 (GValue, 1); 1131s # g_value_init (&skeleton->priv->properties[0], G_TYPE_STRING); 1131s # } 1131s # 1131s # static const gchar * 1131s # com_acme_coyote_skeleton_get_mood (ComAcmeCoyote *object) 1131s # { 1131s # ComAcmeCoyoteSkeleton *skeleton = COM_ACME_COYOTE_SKELETON (object); 1131s # const gchar *value; 1131s # g_mutex_lock (&skeleton->priv->lock); 1131s # value = g_marshal_value_peek_string (&(skeleton->priv->properties[0])); 1131s # g_mutex_unlock (&skeleton->priv->lock); 1131s # return value; 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_skeleton_class_init (ComAcmeCoyoteSkeletonClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusInterfaceSkeletonClass *skeleton_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = com_acme_coyote_skeleton_finalize; 1131s # gobject_class->get_property = com_acme_coyote_skeleton_get_property; 1131s # gobject_class->set_property = com_acme_coyote_skeleton_set_property; 1131s # gobject_class->notify = com_acme_coyote_skeleton_notify; 1131s # 1131s # 1131s # com_acme_coyote_override_properties (gobject_class, 1); 1131s # 1131s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1131s # skeleton_class->get_info = com_acme_coyote_skeleton_dbus_interface_get_info; 1131s # skeleton_class->get_properties = com_acme_coyote_skeleton_dbus_interface_get_properties; 1131s # skeleton_class->flush = com_acme_coyote_skeleton_dbus_interface_flush; 1131s # skeleton_class->get_vtable = com_acme_coyote_skeleton_dbus_interface_get_vtable; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (ComAcmeCoyoteSkeletonPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # com_acme_coyote_skeleton_iface_init (ComAcmeCoyoteIface *iface) 1131s # { 1131s # iface->surprised = _com_acme_coyote_on_signal_surprised; 1131s # iface->get_mood = com_acme_coyote_skeleton_get_mood; 1131s # } 1131s # 1131s # /** 1131s # * com_acme_coyote_skeleton_new: 1131s # * 1131s # * Creates a skeleton object for the D-Bus interface com.acme.Coyote. 1131s # * 1131s # * Returns: (transfer full) (type ComAcmeCoyoteSkeleton): The skeleton object. 1131s # */ 1131s # ComAcmeCoyote * 1131s # com_acme_coyote_skeleton_new (void) 1131s # { 1131s # return COM_ACME_COYOTE (g_object_new (TYPE_COM_ACME_COYOTE_SKELETON, NULL)); 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ 1131s # * Code for interface org.project.Bar.Frobnicator 1131s # * ------------------------------------------------------------------------ 1131s # */ 1131s # 1131s # /** 1131s # * SECTION:OrgProjectBarFrobnicator 1131s # * @title: OrgProjectBarFrobnicator 1131s # * @short_description: Generated C code for the org.project.Bar.Frobnicator D-Bus interface 1131s # * 1131s # * This section contains code for working with the org.project.Bar.Frobnicator D-Bus interface in C. 1131s # */ 1131s # 1131s # /* ---- Introspection data for org.project.Bar.Frobnicator ---- */ 1131s # 1131s # static const _ExtendedGDBusMethodInfo _org_project_bar_frobnicator_method_info_random_method = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "RandomMethod", 1131s # NULL, 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "handle-random-method", 1131s # FALSE 1131s # }; 1131s # 1131s # static const GDBusMethodInfo * const _org_project_bar_frobnicator_method_info_pointers[] = 1131s # { 1131s # &_org_project_bar_frobnicator_method_info_random_method.parent_struct, 1131s # NULL 1131s # }; 1131s # 1131s # static const _ExtendedGDBusInterfaceInfo _org_project_bar_frobnicator_interface_info = 1131s # { 1131s # { 1131s # -1, 1131s # (gchar *) "org.project.Bar.Frobnicator", 1131s # (GDBusMethodInfo **) &_org_project_bar_frobnicator_method_info_pointers, 1131s # NULL, 1131s # NULL, 1131s # NULL 1131s # }, 1131s # "org-project-bar-frobnicator", 1131s # }; 1131s # 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_interface_info: 1131s # * 1131s # * Gets a machine-readable description of the org.project.Bar.Frobnicator D-Bus interface. 1131s # * 1131s # * Returns: (transfer none): A #GDBusInterfaceInfo. Do not free. 1131s # */ 1131s # GDBusInterfaceInfo * 1131s # org_project_bar_frobnicator_interface_info (void) 1131s # { 1131s # return (GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct; 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_override_properties: 1131s # * @klass: The class structure for a #GObject derived class. 1131s # * @property_id_begin: The property id to assign to the first overridden property. 1131s # * 1131s # * Overrides all #GObject properties in the #OrgProjectBarFrobnicator interface for a concrete class. 1131s # * The properties are overridden in the order they are defined. 1131s # * 1131s # * Returns: The last property id. 1131s # */ 1131s # guint 1131s # org_project_bar_frobnicator_override_properties (GObjectClass *klass G_GNUC_UNUSED, guint property_id_begin) 1131s # { 1131s # return property_id_begin - 1; 1131s # } 1131s # 1131s # 1131s # inline static void 1131s # org_project_bar_frobnicator_method_marshal_random_method ( 1131s # GClosure *closure, 1131s # GValue *return_value, 1131s # unsigned int n_param_values, 1131s # const GValue *param_values, 1131s # void *invocation_hint, 1131s # void *marshal_data) 1131s # { 1131s # _g_dbus_codegen_marshal_BOOLEAN__OBJECT (closure, 1131s # return_value, n_param_values, param_values, invocation_hint, marshal_data); 1131s # } 1131s # 1131s # 1131s # /** 1131s # * OrgProjectBarFrobnicator: 1131s # * 1131s # * Abstract interface type for the D-Bus interface org.project.Bar.Frobnicator. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectBarFrobnicatorIface: 1131s # * @parent_iface: The parent interface. 1131s # * @handle_random_method: Handler for the #OrgProjectBarFrobnicator::handle-random-method signal. 1131s # * 1131s # * Virtual table for the D-Bus interface org.project.Bar.Frobnicator. 1131s # */ 1131s # 1131s # typedef OrgProjectBarFrobnicatorIface OrgProjectBarFrobnicatorInterface; 1131s # G_DEFINE_INTERFACE (OrgProjectBarFrobnicator, org_project_bar_frobnicator, G_TYPE_OBJECT) 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_default_init (OrgProjectBarFrobnicatorIface *iface) 1131s # { 1131s # /* GObject signals for incoming D-Bus method calls: */ 1131s # /** 1131s # * OrgProjectBarFrobnicator::handle-random-method: 1131s # * @object: A #OrgProjectBarFrobnicator. 1131s # * @invocation: A #GDBusMethodInvocation. 1131s # * 1131s # * Signal emitted when a remote caller is invoking the RandomMethod() D-Bus method. 1131s # * 1131s # * 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. 1131s # * 1131s # * 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. 1131s # */ 1131s # g_signal_new ("handle-random-method", 1131s # G_TYPE_FROM_INTERFACE (iface), 1131s # G_SIGNAL_RUN_LAST, 1131s # G_STRUCT_OFFSET (OrgProjectBarFrobnicatorIface, handle_random_method), 1131s # g_signal_accumulator_true_handled, 1131s # NULL, 1131s # org_project_bar_frobnicator_method_marshal_random_method, 1131s # G_TYPE_BOOLEAN, 1131s # 1, 1131s # G_TYPE_DBUS_METHOD_INVOCATION); 1131s # 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_call_random_method: 1131s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied or %NULL. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously invokes the RandomMethod() D-Bus method on @proxy. 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_bar_frobnicator_call_random_method_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_bar_frobnicator_call_random_method_sync() for the synchronous, blocking version of this method. 1131s # */ 1131s # void 1131s # org_project_bar_frobnicator_call_random_method ( 1131s # OrgProjectBarFrobnicator *proxy, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # g_dbus_proxy_call (G_DBUS_PROXY (proxy), 1131s # "RandomMethod", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # callback, 1131s # user_data); 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_call_random_method_finish: 1131s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_call_random_method(). 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Finishes an operation started with org_project_bar_frobnicator_call_random_method(). 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # org_project_bar_frobnicator_call_random_method_finish ( 1131s # OrgProjectBarFrobnicator *proxy, 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_finish (G_DBUS_PROXY (proxy), res, error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_call_random_method_sync: 1131s # * @proxy: A #OrgProjectBarFrobnicatorProxy. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL. 1131s # * 1131s # * Synchronously invokes the RandomMethod() D-Bus method on @proxy. The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_bar_frobnicator_call_random_method() for the asynchronous version of this method. 1131s # * 1131s # * Returns: (skip): %TRUE if the call succeeded, %FALSE if @error is set. 1131s # */ 1131s # gboolean 1131s # org_project_bar_frobnicator_call_random_method_sync ( 1131s # OrgProjectBarFrobnicator *proxy, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GVariant *_ret; 1131s # _ret = g_dbus_proxy_call_sync (G_DBUS_PROXY (proxy), 1131s # "RandomMethod", 1131s # g_variant_new ("()"), 1131s # G_DBUS_CALL_FLAGS_NONE, 1131s # -1, 1131s # cancellable, 1131s # error); 1131s # if (_ret == NULL) 1131s # goto _out; 1131s # g_variant_get (_ret, 1131s # "()"); 1131s # g_variant_unref (_ret); 1131s # _out: 1131s # return _ret != NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_complete_random_method: 1131s # * @object: A #OrgProjectBarFrobnicator. 1131s # * @invocation: (transfer full): A #GDBusMethodInvocation. 1131s # * 1131s # * 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. 1131s # * 1131s # * This method will free @invocation, you cannot use it afterwards. 1131s # */ 1131s # void 1131s # org_project_bar_frobnicator_complete_random_method ( 1131s # OrgProjectBarFrobnicator *object G_GNUC_UNUSED, 1131s # GDBusMethodInvocation *invocation) 1131s # { 1131s # g_dbus_method_invocation_return_value (invocation, 1131s # g_variant_new ("()")); 1131s # } 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * OrgProjectBarFrobnicatorProxy: 1131s # * 1131s # * The #OrgProjectBarFrobnicatorProxy structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectBarFrobnicatorProxyClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #OrgProjectBarFrobnicatorProxy. 1131s # */ 1131s # 1131s # struct _OrgProjectBarFrobnicatorProxyPrivate 1131s # { 1131s # GData *qdata; 1131s # }; 1131s # 1131s # static void org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface); 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1131s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorProxy) 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorProxy, org_project_bar_frobnicator_proxy, G_TYPE_DBUS_PROXY, 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_proxy_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # org_project_bar_frobnicator_proxy_finalize (GObject *object) 1131s # { 1131s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (object); 1131s # g_datalist_clear (&proxy->priv->qdata); 1131s # G_OBJECT_CLASS (org_project_bar_frobnicator_proxy_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_proxy_get_property (GObject *object G_GNUC_UNUSED, 1131s # guint prop_id G_GNUC_UNUSED, 1131s # GValue *value G_GNUC_UNUSED, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_proxy_set_property (GObject *object G_GNUC_UNUSED, 1131s # guint prop_id G_GNUC_UNUSED, 1131s # const GValue *value G_GNUC_UNUSED, 1131s # GParamSpec *pspec G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_proxy_g_signal (GDBusProxy *proxy, 1131s # const gchar *sender_name G_GNUC_UNUSED, 1131s # const gchar *signal_name, 1131s # GVariant *parameters) 1131s # { 1131s # _ExtendedGDBusSignalInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # gsize n; 1131s # guint signal_id; 1131s # info = (_ExtendedGDBusSignalInfo *) g_dbus_interface_info_lookup_signal ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, signal_name); 1131s # if (info == NULL) 1131s # return; 1131s # num_params = g_variant_n_children (parameters); 1131s # paramv = g_new0 (GValue, num_params + 1); 1131s # g_value_init (¶mv[0], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1131s # g_value_set_object (¶mv[0], proxy); 1131s # g_variant_iter_init (&iter, parameters); 1131s # n = 1; 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.args[n - 1]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1131s # g_signal_emitv (paramv, signal_id, 0, NULL); 1131s # for (n = 0; n < num_params + 1; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_proxy_g_properties_changed (GDBusProxy *_proxy, 1131s # GVariant *changed_properties, 1131s # const gchar *const *invalidated_properties) 1131s # { 1131s # OrgProjectBarFrobnicatorProxy *proxy = ORG_PROJECT_BAR_FROBNICATOR_PROXY (_proxy); 1131s # guint n; 1131s # const gchar *key; 1131s # GVariantIter *iter; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # g_variant_get (changed_properties, "a{sv}", &iter); 1131s # while (g_variant_iter_next (iter, "{&sv}", &key, NULL)) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, key); 1131s # g_datalist_remove_data (&proxy->priv->qdata, key); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # g_variant_iter_free (iter); 1131s # for (n = 0; invalidated_properties[n] != NULL; n++) 1131s # { 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, invalidated_properties[n]); 1131s # g_datalist_remove_data (&proxy->priv->qdata, invalidated_properties[n]); 1131s # if (info != NULL) 1131s # g_object_notify (G_OBJECT (proxy), info->hyphen_name); 1131s # } 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_proxy_init (OrgProjectBarFrobnicatorProxy *proxy) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # proxy->priv = org_project_bar_frobnicator_proxy_get_instance_private (proxy); 1131s # #else 1131s # proxy->priv = G_TYPE_INSTANCE_GET_PRIVATE (proxy, TYPE_ORG_PROJECT_BAR_FROBNICATOR_PROXY, OrgProjectBarFrobnicatorProxyPrivate); 1131s # #endif 1131s # 1131s # g_dbus_proxy_set_interface_info (G_DBUS_PROXY (proxy), org_project_bar_frobnicator_interface_info ()); 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_proxy_class_init (OrgProjectBarFrobnicatorProxyClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusProxyClass *proxy_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = org_project_bar_frobnicator_proxy_finalize; 1131s # gobject_class->get_property = org_project_bar_frobnicator_proxy_get_property; 1131s # gobject_class->set_property = org_project_bar_frobnicator_proxy_set_property; 1131s # 1131s # proxy_class = G_DBUS_PROXY_CLASS (klass); 1131s # proxy_class->g_signal = org_project_bar_frobnicator_proxy_g_signal; 1131s # proxy_class->g_properties_changed = org_project_bar_frobnicator_proxy_g_properties_changed; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorProxyPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_proxy_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_proxy_new: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Asynchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new() for more details. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_bar_frobnicator_proxy_new_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_bar_frobnicator_proxy_new_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # org_project_bar_frobnicator_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_proxy_new_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new(). 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectBarFrobnicator * 1131s # org_project_bar_frobnicator_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_proxy_new_sync: 1131s # * @connection: A #GDBusConnection. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: (nullable): A bus name (well-known or unique) or %NULL if @connection is not a message bus connection. 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Synchronously creates a proxy for the D-Bus interface org.project.Bar.Frobnicator. See g_dbus_proxy_new_sync() for more details. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_bar_frobnicator_proxy_new() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectBarFrobnicator * 1131s # org_project_bar_frobnicator_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_proxy_new_for_bus: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @callback: A #GAsyncReadyCallback to call when the request is satisfied. 1131s # * @user_data: User data to pass to @callback. 1131s # * 1131s # * Like org_project_bar_frobnicator_proxy_new() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * When the operation is finished, @callback will be invoked in the thread-default main loop of the thread you are calling this method from (see g_main_context_push_thread_default()). 1131s # * You can then call org_project_bar_frobnicator_proxy_new_for_bus_finish() to get the result of the operation. 1131s # * 1131s # * See org_project_bar_frobnicator_proxy_new_for_bus_sync() for the synchronous, blocking version of this constructor. 1131s # */ 1131s # void 1131s # org_project_bar_frobnicator_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data) 1131s # { 1131s # 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); 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_proxy_new_for_bus_finish: 1131s # * @res: The #GAsyncResult obtained from the #GAsyncReadyCallback passed to org_project_bar_frobnicator_proxy_new_for_bus(). 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Finishes an operation started with org_project_bar_frobnicator_proxy_new_for_bus(). 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectBarFrobnicator * 1131s # org_project_bar_frobnicator_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error) 1131s # { 1131s # GObject *ret; 1131s # GObject *source_object; 1131s # source_object = g_async_result_get_source_object (res); 1131s # ret = g_async_initable_new_finish (G_ASYNC_INITABLE (source_object), res, error); 1131s # g_object_unref (source_object); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_proxy_new_for_bus_sync: 1131s # * @bus_type: A #GBusType. 1131s # * @flags: Flags from the #GDBusProxyFlags enumeration. 1131s # * @name: A bus name (well-known or unique). 1131s # * @object_path: An object path. 1131s # * @cancellable: (nullable): A #GCancellable or %NULL. 1131s # * @error: Return location for error or %NULL 1131s # * 1131s # * Like org_project_bar_frobnicator_proxy_new_sync() but takes a #GBusType instead of a #GDBusConnection. 1131s # * 1131s # * The calling thread is blocked until a reply is received. 1131s # * 1131s # * See org_project_bar_frobnicator_proxy_new_for_bus() for the asynchronous version of this constructor. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorProxy): The constructed proxy object or %NULL if @error is set. 1131s # */ 1131s # OrgProjectBarFrobnicator * 1131s # org_project_bar_frobnicator_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error) 1131s # { 1131s # GInitable *ret; 1131s # 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); 1131s # if (ret != NULL) 1131s # return ORG_PROJECT_BAR_FROBNICATOR (ret); 1131s # else 1131s # return NULL; 1131s # } 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # 1131s # /** 1131s # * OrgProjectBarFrobnicatorSkeleton: 1131s # * 1131s # * The #OrgProjectBarFrobnicatorSkeleton structure contains only private data and should only be accessed using the provided API. 1131s # */ 1131s # 1131s # /** 1131s # * OrgProjectBarFrobnicatorSkeletonClass: 1131s # * @parent_class: The parent class. 1131s # * 1131s # * Class structure for #OrgProjectBarFrobnicatorSkeleton. 1131s # */ 1131s # 1131s # struct _OrgProjectBarFrobnicatorSkeletonPrivate 1131s # { 1131s # GValue *properties; 1131s # GList *changed_properties; 1131s # GSource *changed_properties_idle_source; 1131s # GMainContext *context; 1131s # GMutex lock; 1131s # }; 1131s # 1131s # static void 1131s # _org_project_bar_frobnicator_skeleton_handle_method_call ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name, 1131s # const gchar *method_name, 1131s # GVariant *parameters, 1131s # GDBusMethodInvocation *invocation, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1131s # _ExtendedGDBusMethodInfo *info; 1131s # GVariantIter iter; 1131s # GVariant *child; 1131s # GValue *paramv; 1131s # gsize num_params; 1131s # guint num_extra; 1131s # gsize n; 1131s # guint signal_id; 1131s # GValue return_value = G_VALUE_INIT; 1131s # info = (_ExtendedGDBusMethodInfo *) g_dbus_method_invocation_get_method_info (invocation); 1131s # g_assert (info != NULL); 1131s # num_params = g_variant_n_children (parameters); 1131s # num_extra = info->pass_fdlist ? 3 : 2; paramv = g_new0 (GValue, num_params + num_extra); 1131s # n = 0; 1131s # g_value_init (¶mv[n], TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1131s # g_value_set_object (¶mv[n++], skeleton); 1131s # g_value_init (¶mv[n], G_TYPE_DBUS_METHOD_INVOCATION); 1131s # g_value_set_object (¶mv[n++], invocation); 1131s # if (info->pass_fdlist) 1131s # { 1131s # #ifdef G_OS_UNIX 1131s # g_value_init (¶mv[n], G_TYPE_UNIX_FD_LIST); 1131s # g_value_set_object (¶mv[n++], g_dbus_message_get_unix_fd_list (g_dbus_method_invocation_get_message (invocation))); 1131s # #else 1131s # g_assert_not_reached (); 1131s # #endif 1131s # } 1131s # g_variant_iter_init (&iter, parameters); 1131s # while ((child = g_variant_iter_next_value (&iter)) != NULL) 1131s # { 1131s # _ExtendedGDBusArgInfo *arg_info = (_ExtendedGDBusArgInfo *) info->parent_struct.in_args[n - num_extra]; 1131s # if (arg_info->use_gvariant) 1131s # { 1131s # g_value_init (¶mv[n], G_TYPE_VARIANT); 1131s # g_value_set_variant (¶mv[n], child); 1131s # n++; 1131s # } 1131s # else 1131s # g_dbus_gvariant_to_gvalue (child, ¶mv[n++]); 1131s # g_variant_unref (child); 1131s # } 1131s # signal_id = g_signal_lookup (info->signal_name, TYPE_ORG_PROJECT_BAR_FROBNICATOR); 1131s # g_value_init (&return_value, G_TYPE_BOOLEAN); 1131s # g_signal_emitv (paramv, signal_id, 0, &return_value); 1131s # if (!g_value_get_boolean (&return_value)) 1131s # g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNKNOWN_METHOD, "Method %s is not implemented on interface %s", method_name, interface_name); 1131s # g_value_unset (&return_value); 1131s # for (n = 0; n < num_params + num_extra; n++) 1131s # g_value_unset (¶mv[n]); 1131s # g_free (paramv); 1131s # } 1131s # 1131s # static GVariant * 1131s # _org_project_bar_frobnicator_skeleton_handle_get_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # GVariant *ret; 1131s # ret = NULL; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # g_value_init (&value, pspec->value_type); 1131s # g_object_get_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # ret = g_dbus_gvalue_to_gvariant (&value, G_VARIANT_TYPE (info->parent_struct.signature)); 1131s # g_value_unset (&value); 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static gboolean 1131s # _org_project_bar_frobnicator_skeleton_handle_set_property ( 1131s # GDBusConnection *connection G_GNUC_UNUSED, 1131s # const gchar *sender G_GNUC_UNUSED, 1131s # const gchar *object_path G_GNUC_UNUSED, 1131s # const gchar *interface_name G_GNUC_UNUSED, 1131s # const gchar *property_name, 1131s # GVariant *variant, 1131s # GError **error, 1131s # gpointer user_data) 1131s # { 1131s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (user_data); 1131s # GValue value = G_VALUE_INIT; 1131s # GParamSpec *pspec; 1131s # _ExtendedGDBusPropertyInfo *info; 1131s # gboolean ret; 1131s # ret = FALSE; 1131s # info = (_ExtendedGDBusPropertyInfo *) g_dbus_interface_info_lookup_property ((GDBusInterfaceInfo *) &_org_project_bar_frobnicator_interface_info.parent_struct, property_name); 1131s # g_assert (info != NULL); 1131s # pspec = g_object_class_find_property (G_OBJECT_GET_CLASS (skeleton), info->hyphen_name); 1131s # if (pspec == NULL) 1131s # { 1131s # g_set_error (error, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No property with name %s", property_name); 1131s # } 1131s # else 1131s # { 1131s # if (info->use_gvariant) 1131s # g_value_set_variant (&value, variant); 1131s # else 1131s # g_dbus_gvariant_to_gvalue (variant, &value); 1131s # g_object_set_property (G_OBJECT (skeleton), info->hyphen_name, &value); 1131s # g_value_unset (&value); 1131s # ret = TRUE; 1131s # } 1131s # return ret; 1131s # } 1131s # 1131s # static const GDBusInterfaceVTable _org_project_bar_frobnicator_skeleton_vtable = 1131s # { 1131s # _org_project_bar_frobnicator_skeleton_handle_method_call, 1131s # _org_project_bar_frobnicator_skeleton_handle_get_property, 1131s # _org_project_bar_frobnicator_skeleton_handle_set_property, 1131s # {NULL} 1131s # }; 1131s # 1131s # static GDBusInterfaceInfo * 1131s # org_project_bar_frobnicator_skeleton_dbus_interface_get_info (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return org_project_bar_frobnicator_interface_info (); 1131s # } 1131s # 1131s # static GDBusInterfaceVTable * 1131s # org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable (GDBusInterfaceSkeleton *skeleton G_GNUC_UNUSED) 1131s # { 1131s # return (GDBusInterfaceVTable *) &_org_project_bar_frobnicator_skeleton_vtable; 1131s # } 1131s # 1131s # static GVariant * 1131s # org_project_bar_frobnicator_skeleton_dbus_interface_get_properties (GDBusInterfaceSkeleton *_skeleton) 1131s # { 1131s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (_skeleton); 1131s # 1131s # GVariantBuilder builder; 1131s # guint n; 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_84 1131s # g_variant_builder_init_static (&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #else 1131s # g_variant_builder_init(&builder, G_VARIANT_TYPE ("a{sv}")); 1131s # #endif 1131s # if (_org_project_bar_frobnicator_interface_info.parent_struct.properties == NULL) 1131s # goto out; 1131s # for (n = 0; _org_project_bar_frobnicator_interface_info.parent_struct.properties[n] != NULL; n++) 1131s # { 1131s # GDBusPropertyInfo *info = _org_project_bar_frobnicator_interface_info.parent_struct.properties[n]; 1131s # if (info->flags & G_DBUS_PROPERTY_INFO_FLAGS_READABLE) 1131s # { 1131s # GVariant *value; 1131s # 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); 1131s # if (value != NULL) 1131s # { 1131s # g_variant_take_ref (value); 1131s # g_variant_builder_add (&builder, "{sv}", info->name, value); 1131s # g_variant_unref (value); 1131s # } 1131s # } 1131s # } 1131s # out: 1131s # return g_variant_builder_end (&builder); 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_skeleton_dbus_interface_flush (GDBusInterfaceSkeleton *_skeleton G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # static void org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface); 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_ADD_PRIVATE (OrgProjectBarFrobnicatorSkeleton) 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1131s # 1131s # #else 1131s # G_DEFINE_TYPE_WITH_CODE (OrgProjectBarFrobnicatorSkeleton, org_project_bar_frobnicator_skeleton, G_TYPE_DBUS_INTERFACE_SKELETON, 1131s # G_IMPLEMENT_INTERFACE (TYPE_ORG_PROJECT_BAR_FROBNICATOR, org_project_bar_frobnicator_skeleton_iface_init)) 1131s # 1131s # #endif 1131s # static void 1131s # org_project_bar_frobnicator_skeleton_finalize (GObject *object) 1131s # { 1131s # OrgProjectBarFrobnicatorSkeleton *skeleton = ORG_PROJECT_BAR_FROBNICATOR_SKELETON (object); 1131s # g_list_free_full (skeleton->priv->changed_properties, (GDestroyNotify) _changed_property_free); 1131s # if (skeleton->priv->changed_properties_idle_source != NULL) 1131s # g_source_destroy (skeleton->priv->changed_properties_idle_source); 1131s # g_main_context_unref (skeleton->priv->context); 1131s # g_mutex_clear (&skeleton->priv->lock); 1131s # G_OBJECT_CLASS (org_project_bar_frobnicator_skeleton_parent_class)->finalize (object); 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_skeleton_init (OrgProjectBarFrobnicatorSkeleton *skeleton) 1131s # { 1131s # #if GLIB_VERSION_MAX_ALLOWED >= GLIB_VERSION_2_38 1131s # skeleton->priv = org_project_bar_frobnicator_skeleton_get_instance_private (skeleton); 1131s # #else 1131s # skeleton->priv = G_TYPE_INSTANCE_GET_PRIVATE (skeleton, TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, OrgProjectBarFrobnicatorSkeletonPrivate); 1131s # #endif 1131s # 1131s # g_mutex_init (&skeleton->priv->lock); 1131s # skeleton->priv->context = g_main_context_ref_thread_default (); 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_skeleton_class_init (OrgProjectBarFrobnicatorSkeletonClass *klass) 1131s # { 1131s # GObjectClass *gobject_class; 1131s # GDBusInterfaceSkeletonClass *skeleton_class; 1131s # 1131s # gobject_class = G_OBJECT_CLASS (klass); 1131s # gobject_class->finalize = org_project_bar_frobnicator_skeleton_finalize; 1131s # 1131s # skeleton_class = G_DBUS_INTERFACE_SKELETON_CLASS (klass); 1131s # skeleton_class->get_info = org_project_bar_frobnicator_skeleton_dbus_interface_get_info; 1131s # skeleton_class->get_properties = org_project_bar_frobnicator_skeleton_dbus_interface_get_properties; 1131s # skeleton_class->flush = org_project_bar_frobnicator_skeleton_dbus_interface_flush; 1131s # skeleton_class->get_vtable = org_project_bar_frobnicator_skeleton_dbus_interface_get_vtable; 1131s # 1131s # #if GLIB_VERSION_MAX_ALLOWED < GLIB_VERSION_2_38 1131s # g_type_class_add_private (klass, sizeof (OrgProjectBarFrobnicatorSkeletonPrivate)); 1131s # #endif 1131s # } 1131s # 1131s # static void 1131s # org_project_bar_frobnicator_skeleton_iface_init (OrgProjectBarFrobnicatorIface *iface G_GNUC_UNUSED) 1131s # { 1131s # } 1131s # 1131s # /** 1131s # * org_project_bar_frobnicator_skeleton_new: 1131s # * 1131s # * Creates a skeleton object for the D-Bus interface org.project.Bar.Frobnicator. 1131s # * 1131s # * Returns: (transfer full) (type OrgProjectBarFrobnicatorSkeleton): The skeleton object. 1131s # */ 1131s # OrgProjectBarFrobnicator * 1131s # org_project_bar_frobnicator_skeleton_new (void) 1131s # { 1131s # return ORG_PROJECT_BAR_FROBNICATOR (g_object_new (TYPE_ORG_PROJECT_BAR_FROBNICATOR_SKELETON, NULL)); 1131s # } 1131s # Error: 1131s ok 39 __main__.TestCodegen.test_unix_fd_types_and_annotations 1131s # gdbus-codegen: /usr/bin/gdbus-codegen 1131s # tmpdir: /tmp/tmplfhq0m_6 1131s # /tmp/tmplfhq0m_6/tmprga42j9q.xml: 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplfhq0m_6/tmprga42j9q.xml', '--output', '-', '--header'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifndef __STDOUT__ 1131s # #define __STDOUT__ 1131s # 1131s # #include 1131s # 1131s # G_BEGIN_DECLS 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # /* Declarations for FDPassing */ 1131s # 1131s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1131s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1131s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1131s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1131s # 1131s # struct _FDPassing; 1131s # typedef struct _FDPassing FDPassing; 1131s # typedef struct _FDPassingIface FDPassingIface; 1131s # 1131s # struct _FDPassingIface 1131s # { 1131s # GTypeInterface parent_iface; 1131s # 1131s # gboolean (*handle_hello_fd) ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GUnixFDList *fd_list, 1131s # const gchar *arg_greeting); 1131s # 1131s # gboolean (*handle_no_annotation) ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GVariant *arg_greeting, 1131s # const gchar *arg_greeting_locale); 1131s # 1131s # gboolean (*handle_no_annotation_nested) ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GVariant *arg_files); 1131s # 1131s # }; 1131s # 1131s # GType fdpassing_get_type (void) G_GNUC_CONST; 1131s # 1131s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1131s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1131s # 1131s # 1131s # /* D-Bus method call completion functions: */ 1131s # void fdpassing_complete_hello_fd ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GUnixFDList *fd_list, 1131s # const gchar *response); 1131s # 1131s # void fdpassing_complete_no_annotation ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GVariant *response, 1131s # const gchar *response_locale); 1131s # 1131s # void fdpassing_complete_no_annotation_nested ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # 1131s # 1131s # /* D-Bus method calls: */ 1131s # void fdpassing_call_hello_fd ( 1131s # FDPassing *proxy, 1131s # const gchar *arg_greeting, 1131s # GUnixFDList *fd_list, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean fdpassing_call_hello_fd_finish ( 1131s # FDPassing *proxy, 1131s # gchar **out_response, 1131s # GUnixFDList **out_fd_list, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean fdpassing_call_hello_fd_sync ( 1131s # FDPassing *proxy, 1131s # const gchar *arg_greeting, 1131s # GUnixFDList *fd_list, 1131s # gchar **out_response, 1131s # GUnixFDList **out_fd_list, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void fdpassing_call_no_annotation ( 1131s # FDPassing *proxy, 1131s # GVariant *arg_greeting, 1131s # const gchar *arg_greeting_locale, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean fdpassing_call_no_annotation_finish ( 1131s # FDPassing *proxy, 1131s # GVariant **out_response, 1131s # gchar **out_response_locale, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean fdpassing_call_no_annotation_sync ( 1131s # FDPassing *proxy, 1131s # GVariant *arg_greeting, 1131s # const gchar *arg_greeting_locale, 1131s # GVariant **out_response, 1131s # gchar **out_response_locale, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void fdpassing_call_no_annotation_nested ( 1131s # FDPassing *proxy, 1131s # GVariant *arg_files, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean fdpassing_call_no_annotation_nested_finish ( 1131s # FDPassing *proxy, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean fdpassing_call_no_annotation_nested_sync ( 1131s # FDPassing *proxy, 1131s # GVariant *arg_files, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # 1131s # 1131s # /* ---- */ 1131s # 1131s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1131s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1131s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1131s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1131s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1131s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1131s # 1131s # typedef struct _FDPassingProxy FDPassingProxy; 1131s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1131s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1131s # 1131s # struct _FDPassingProxy 1131s # { 1131s # /*< private >*/ 1131s # GDBusProxy parent_instance; 1131s # FDPassingProxyPrivate *priv; 1131s # }; 1131s # 1131s # struct _FDPassingProxyClass 1131s # { 1131s # GDBusProxyClass parent_class; 1131s # }; 1131s # 1131s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1131s # 1131s # #if GLIB_CHECK_VERSION(2, 44, 0) 1131s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1131s # #endif 1131s # 1131s # void fdpassing_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # FDPassing *fdpassing_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # FDPassing *fdpassing_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void fdpassing_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # 1131s # /* ---- */ 1131s # 1131s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1131s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1131s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1131s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1131s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1131s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1131s # 1131s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1131s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1131s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1131s # 1131s # struct _FDPassingSkeleton 1131s # { 1131s # /*< private >*/ 1131s # GDBusInterfaceSkeleton parent_instance; 1131s # FDPassingSkeletonPrivate *priv; 1131s # }; 1131s # 1131s # struct _FDPassingSkeletonClass 1131s # { 1131s # GDBusInterfaceSkeletonClass parent_class; 1131s # }; 1131s # 1131s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1131s # 1131s # #if GLIB_CHECK_VERSION(2, 44, 0) 1131s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1131s # #endif 1131s # 1131s # FDPassing *fdpassing_skeleton_new (void); 1131s # 1131s # 1131s # G_END_DECLS 1131s # 1131s # #endif /* __STDOUT__ */ 1131s # Error: 1131s # 1131s # /tmp/tmplfhq0m_6/tmprxvcrfm3.xml: 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplfhq0m_6/tmprxvcrfm3.xml', '--output', '-', '--header', '--glib-min-required', '2.32'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifndef __STDOUT__ 1131s # #define __STDOUT__ 1131s # 1131s # #include 1131s # 1131s # G_BEGIN_DECLS 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # /* Declarations for FDPassing */ 1131s # 1131s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1131s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1131s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1131s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1131s # 1131s # struct _FDPassing; 1131s # typedef struct _FDPassing FDPassing; 1131s # typedef struct _FDPassingIface FDPassingIface; 1131s # 1131s # struct _FDPassingIface 1131s # { 1131s # GTypeInterface parent_iface; 1131s # 1131s # gboolean (*handle_hello_fd) ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GUnixFDList *fd_list, 1131s # const gchar *arg_greeting); 1131s # 1131s # gboolean (*handle_no_annotation) ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GVariant *arg_greeting, 1131s # const gchar *arg_greeting_locale); 1131s # 1131s # gboolean (*handle_no_annotation_nested) ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GVariant *arg_files); 1131s # 1131s # }; 1131s # 1131s # GType fdpassing_get_type (void) G_GNUC_CONST; 1131s # 1131s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1131s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1131s # 1131s # 1131s # /* D-Bus method call completion functions: */ 1131s # void fdpassing_complete_hello_fd ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GUnixFDList *fd_list, 1131s # const gchar *response); 1131s # 1131s # void fdpassing_complete_no_annotation ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GVariant *response, 1131s # const gchar *response_locale); 1131s # 1131s # void fdpassing_complete_no_annotation_nested ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation); 1131s # 1131s # 1131s # 1131s # /* D-Bus method calls: */ 1131s # void fdpassing_call_hello_fd ( 1131s # FDPassing *proxy, 1131s # const gchar *arg_greeting, 1131s # GUnixFDList *fd_list, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean fdpassing_call_hello_fd_finish ( 1131s # FDPassing *proxy, 1131s # gchar **out_response, 1131s # GUnixFDList **out_fd_list, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean fdpassing_call_hello_fd_sync ( 1131s # FDPassing *proxy, 1131s # const gchar *arg_greeting, 1131s # GUnixFDList *fd_list, 1131s # gchar **out_response, 1131s # GUnixFDList **out_fd_list, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void fdpassing_call_no_annotation ( 1131s # FDPassing *proxy, 1131s # GVariant *arg_greeting, 1131s # const gchar *arg_greeting_locale, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean fdpassing_call_no_annotation_finish ( 1131s # FDPassing *proxy, 1131s # GVariant **out_response, 1131s # gchar **out_response_locale, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean fdpassing_call_no_annotation_sync ( 1131s # FDPassing *proxy, 1131s # GVariant *arg_greeting, 1131s # const gchar *arg_greeting_locale, 1131s # GVariant **out_response, 1131s # gchar **out_response_locale, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void fdpassing_call_no_annotation_nested ( 1131s # FDPassing *proxy, 1131s # GVariant *arg_files, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean fdpassing_call_no_annotation_nested_finish ( 1131s # FDPassing *proxy, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean fdpassing_call_no_annotation_nested_sync ( 1131s # FDPassing *proxy, 1131s # GVariant *arg_files, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # 1131s # 1131s # /* ---- */ 1131s # 1131s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1131s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1131s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1131s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1131s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1131s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1131s # 1131s # typedef struct _FDPassingProxy FDPassingProxy; 1131s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1131s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1131s # 1131s # struct _FDPassingProxy 1131s # { 1131s # /*< private >*/ 1131s # GDBusProxy parent_instance; 1131s # FDPassingProxyPrivate *priv; 1131s # }; 1131s # 1131s # struct _FDPassingProxyClass 1131s # { 1131s # GDBusProxyClass parent_class; 1131s # }; 1131s # 1131s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1131s # 1131s # #if GLIB_CHECK_VERSION(2, 44, 0) 1131s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1131s # #endif 1131s # 1131s # void fdpassing_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # FDPassing *fdpassing_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # FDPassing *fdpassing_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void fdpassing_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # 1131s # /* ---- */ 1131s # 1131s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1131s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1131s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1131s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1131s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1131s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1131s # 1131s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1131s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1131s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1131s # 1131s # struct _FDPassingSkeleton 1131s # { 1131s # /*< private >*/ 1131s # GDBusInterfaceSkeleton parent_instance; 1131s # FDPassingSkeletonPrivate *priv; 1131s # }; 1131s # 1131s # struct _FDPassingSkeletonClass 1131s # { 1131s # GDBusInterfaceSkeletonClass parent_class; 1131s # }; 1131s # 1131s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1131s # 1131s # #if GLIB_CHECK_VERSION(2, 44, 0) 1131s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1131s # #endif 1131s # 1131s # FDPassing *fdpassing_skeleton_new (void); 1131s # 1131s # 1131s # G_END_DECLS 1131s # 1131s # #endif /* __STDOUT__ */ 1131s # Error: 1131s # 1131s # /tmp/tmplfhq0m_6/tmp_shpppjt.xml: 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # 1131s # Running: ['/usr/bin/gdbus-codegen', '/tmp/tmplfhq0m_6/tmp_shpppjt.xml', '--output', '-', '--header', '--glib-min-required', '2.64'] 1131s # Return code: 0 1131s # Output: 1131s # /* 1131s # * This file is generated by gdbus-codegen, do not modify it. 1131s # * 1131s # * The license of this code is the same as for the D-Bus interface description 1131s # * it was derived from. Note that it links to GLib, so must comply with the 1131s # * LGPL linking clauses. 1131s # */ 1131s # 1131s # #ifndef __STDOUT__ 1131s # #define __STDOUT__ 1131s # 1131s # #include 1131s # 1131s # G_BEGIN_DECLS 1131s # 1131s # 1131s # /* ------------------------------------------------------------------------ */ 1131s # /* Declarations for FDPassing */ 1131s # 1131s # #define TYPE_FDPASSING (fdpassing_get_type ()) 1131s # #define FDPASSING(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING, FDPassing)) 1131s # #define IS_FDPASSING(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING)) 1131s # #define FDPASSING_GET_IFACE(o) (G_TYPE_INSTANCE_GET_INTERFACE ((o), TYPE_FDPASSING, FDPassingIface)) 1131s # 1131s # struct _FDPassing; 1131s # typedef struct _FDPassing FDPassing; 1131s # typedef struct _FDPassingIface FDPassingIface; 1131s # 1131s # struct _FDPassingIface 1131s # { 1131s # GTypeInterface parent_iface; 1131s # 1131s # gboolean (*handle_hello_fd) ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GUnixFDList *fd_list, 1131s # const gchar *arg_greeting); 1131s # 1131s # gboolean (*handle_no_annotation) ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GUnixFDList *fd_list, 1131s # GVariant *arg_greeting, 1131s # const gchar *arg_greeting_locale); 1131s # 1131s # gboolean (*handle_no_annotation_nested) ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GUnixFDList *fd_list, 1131s # GVariant *arg_files); 1131s # 1131s # }; 1131s # 1131s # GType fdpassing_get_type (void) G_GNUC_CONST; 1131s # 1131s # GDBusInterfaceInfo *fdpassing_interface_info (void); 1131s # guint fdpassing_override_properties (GObjectClass *klass, guint property_id_begin); 1131s # 1131s # 1131s # /* D-Bus method call completion functions: */ 1131s # void fdpassing_complete_hello_fd ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GUnixFDList *fd_list, 1131s # const gchar *response); 1131s # 1131s # void fdpassing_complete_no_annotation ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GUnixFDList *fd_list, 1131s # GVariant *response, 1131s # const gchar *response_locale); 1131s # 1131s # void fdpassing_complete_no_annotation_nested ( 1131s # FDPassing *object, 1131s # GDBusMethodInvocation *invocation, 1131s # GUnixFDList *fd_list); 1131s # 1131s # 1131s # 1131s # /* D-Bus method calls: */ 1131s # void fdpassing_call_hello_fd ( 1131s # FDPassing *proxy, 1131s # const gchar *arg_greeting, 1131s # GDBusCallFlags call_flags, 1131s # gint timeout_msec, 1131s # GUnixFDList *fd_list, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean fdpassing_call_hello_fd_finish ( 1131s # FDPassing *proxy, 1131s # gchar **out_response, 1131s # GUnixFDList **out_fd_list, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean fdpassing_call_hello_fd_sync ( 1131s # FDPassing *proxy, 1131s # const gchar *arg_greeting, 1131s # GDBusCallFlags call_flags, 1131s # gint timeout_msec, 1131s # GUnixFDList *fd_list, 1131s # gchar **out_response, 1131s # GUnixFDList **out_fd_list, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void fdpassing_call_no_annotation ( 1131s # FDPassing *proxy, 1131s # GVariant *arg_greeting, 1131s # const gchar *arg_greeting_locale, 1131s # GDBusCallFlags call_flags, 1131s # gint timeout_msec, 1131s # GUnixFDList *fd_list, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean fdpassing_call_no_annotation_finish ( 1131s # FDPassing *proxy, 1131s # GVariant **out_response, 1131s # gchar **out_response_locale, 1131s # GUnixFDList **out_fd_list, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean fdpassing_call_no_annotation_sync ( 1131s # FDPassing *proxy, 1131s # GVariant *arg_greeting, 1131s # const gchar *arg_greeting_locale, 1131s # GDBusCallFlags call_flags, 1131s # gint timeout_msec, 1131s # GUnixFDList *fd_list, 1131s # GVariant **out_response, 1131s # gchar **out_response_locale, 1131s # GUnixFDList **out_fd_list, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void fdpassing_call_no_annotation_nested ( 1131s # FDPassing *proxy, 1131s # GVariant *arg_files, 1131s # GDBusCallFlags call_flags, 1131s # gint timeout_msec, 1131s # GUnixFDList *fd_list, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # 1131s # gboolean fdpassing_call_no_annotation_nested_finish ( 1131s # FDPassing *proxy, 1131s # GUnixFDList **out_fd_list, 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # 1131s # gboolean fdpassing_call_no_annotation_nested_sync ( 1131s # FDPassing *proxy, 1131s # GVariant *arg_files, 1131s # GDBusCallFlags call_flags, 1131s # gint timeout_msec, 1131s # GUnixFDList *fd_list, 1131s # GUnixFDList **out_fd_list, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # 1131s # 1131s # /* ---- */ 1131s # 1131s # #define TYPE_FDPASSING_PROXY (fdpassing_proxy_get_type ()) 1131s # #define FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_PROXY, FDPassingProxy)) 1131s # #define FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1131s # #define FDPASSING_PROXY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_PROXY, FDPassingProxyClass)) 1131s # #define IS_FDPASSING_PROXY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_PROXY)) 1131s # #define IS_FDPASSING_PROXY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_PROXY)) 1131s # 1131s # typedef struct _FDPassingProxy FDPassingProxy; 1131s # typedef struct _FDPassingProxyClass FDPassingProxyClass; 1131s # typedef struct _FDPassingProxyPrivate FDPassingProxyPrivate; 1131s # 1131s # struct _FDPassingProxy 1131s # { 1131s # /*< private >*/ 1131s # GDBusProxy parent_instance; 1131s # FDPassingProxyPrivate *priv; 1131s # }; 1131s # 1131s # struct _FDPassingProxyClass 1131s # { 1131s # GDBusProxyClass parent_class; 1131s # }; 1131s # 1131s # GType fdpassing_proxy_get_type (void) G_GNUC_CONST; 1131s # 1131s # #if GLIB_CHECK_VERSION(2, 44, 0) 1131s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingProxy, g_object_unref) 1131s # #endif 1131s # 1131s # void fdpassing_proxy_new ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # FDPassing *fdpassing_proxy_new_finish ( 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # FDPassing *fdpassing_proxy_new_sync ( 1131s # GDBusConnection *connection, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # void fdpassing_proxy_new_for_bus ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GAsyncReadyCallback callback, 1131s # gpointer user_data); 1131s # FDPassing *fdpassing_proxy_new_for_bus_finish ( 1131s # GAsyncResult *res, 1131s # GError **error); 1131s # FDPassing *fdpassing_proxy_new_for_bus_sync ( 1131s # GBusType bus_type, 1131s # GDBusProxyFlags flags, 1131s # const gchar *name, 1131s # const gchar *object_path, 1131s # GCancellable *cancellable, 1131s # GError **error); 1131s # 1131s # 1131s # /* ---- */ 1131s # 1131s # #define TYPE_FDPASSING_SKELETON (fdpassing_skeleton_get_type ()) 1131s # #define FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeleton)) 1131s # #define FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1131s # #define FDPASSING_SKELETON_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), TYPE_FDPASSING_SKELETON, FDPassingSkeletonClass)) 1131s # #define IS_FDPASSING_SKELETON(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), TYPE_FDPASSING_SKELETON)) 1131s # #define IS_FDPASSING_SKELETON_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), TYPE_FDPASSING_SKELETON)) 1131s # 1131s # typedef struct _FDPassingSkeleton FDPassingSkeleton; 1131s # typedef struct _FDPassingSkeletonClass FDPassingSkeletonClass; 1131s # typedef struct _FDPassingSkeletonPrivate FDPassingSkeletonPrivate; 1131s # 1131s # struct _FDPassingSkeleton 1131s # { 1131s # /*< private >*/ 1131s # GDBusInterfaceSkeleton parent_instance; 1131s # FDPassingSkeletonPrivate *priv; 1131s # }; 1131s # 1131s # struct _FDPassingSkeletonClass 1131s # { 1131s # GDBusInterfaceSkeletonClass parent_class; 1131s # }; 1131s # 1131s # GType fdpassing_skeleton_get_type (void) G_GNUC_CONST; 1131s # 1131s # #if GLIB_CHECK_VERSION(2, 44, 0) 1131s # G_DEFINE_AUTOPTR_CLEANUP_FUNC (FDPassingSkeleton, g_object_unref) 1131s # #endif 1131s # 1131s # FDPassing *fdpassing_skeleton_new (void); 1131s # 1131s # 1131s # G_END_DECLS 1131s # 1131s # #endif /* __STDOUT__ */ 1131s # Error: 1131s 1..39 1131s ok - glib/codegen.py.test 1131s # Running test: glib/string.test 1131s TAP version 14 1131s # random seed: R02S731ce7b01abea1dc15fdf28f8794c0dc 1131s 1..25 1131s # Start of string tests 1131s ok 1 /string/chunks 1131s ok 2 /string/chunk-insert 1131s ok 3 /string/new 1131s ok 4 /string/printf 1131s ok 5 /string/assign 1131s ok 6 /string/append-c 1131s ok 7 /string/append 1131s ok 8 /string/append-vprintf 1131s ok 9 /string/prepend-c 1131s ok 10 /string/prepend 1131s ok 11 /string/insert 1131s ok 12 /string/insert-unichar 1131s ok 13 /string/equal 1131s ok 14 /string/truncate 1131s ok 15 /string/overwrite 1131s ok 16 /string/nul-handling 1131s ok 17 /string/up-down 1131s ok 18 /string/set-size 1131s ok 19 /string/to-bytes 1131s # 0: Replacing "bar" with "baz" (limit 0) in "foo bar foo baz foo bar foobarbaz" 1131s # -> 3 replacements, "foo baz foo baz foo baz foobazbaz" 1131s # 1: Replacing "baz" with "bar" (limit 3) in "foo baz foo baz foo baz foobazbaz" 1131s # -> 3 replacements, "foo bar foo bar foo bar foobazbaz" 1131s # 2: Replacing "foobar" with "bar" (limit 1) in "foo bar foo bar foo bar foobazbaz" 1131s # -> 0 replacements, "foo bar foo bar foo bar foobazbaz" 1131s # 3: Replacing "a" with "abcdefghijkl" (limit 0) in "aaaaaaaa" 1131s # -> 8 replacements, "abcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijklabcdefghijkl" 1131s # 4: Replacing "$LIB" with "lib32" (limit 0) in "/usr/$LIB/libMangoHud.so" 1131s # -> 1 replacements, "/usr/lib32/libMangoHud.so" 1131s # 5: Replacing "o" with "" (limit 0) in "food for foals" 1131s # -> 4 replacements, "fd fr fals" 1131s # 6: Replacing "a" with "aaa" (limit 0) in "aaa" 1131s # -> 3 replacements, "aaaaaaaaa" 1131s # 7: Replacing "a" with "" (limit 0) in "aaa" 1131s # -> 3 replacements, "" 1131s # 8: Replacing "aa" with "bb" (limit 0) in "aaa" 1131s # -> 1 replacements, "bba" 1131s # 9: Replacing "" with "bar" (limit 0) in "foo" 1131s # -> 4 replacements, "barfbarobarobar" 1131s # 10: Replacing "" with "bar" (limit 1) in "foo" 1131s # -> 1 replacements, "barfoo" 1131s # 11: Replacing "" with "bar" (limit 2) in "foo" 1131s # -> 2 replacements, "barfbaroo" 1131s # 12: Replacing "" with "bar" (limit 3) in "foo" 1131s # -> 3 replacements, "barfbarobaro" 1131s # 13: Replacing "" with "bar" (limit 4) in "foo" 1131s # -> 4 replacements, "barfbarobarobar" 1131s # 14: Replacing "" with "bar" (limit 5) in "foo" 1131s # -> 4 replacements, "barfbarobarobar" 1131s # 15: Replacing "" with "x" (limit 0) in "" 1131s # -> 1 replacements, "x" 1131s # 16: Replacing "" with "" (limit 0) in "" 1131s # -> 1 replacements, "" 1131s # 17: Replacing "" with "aaaaaaaaaaaa" (limit 0) in "bbbbbbbbb" 1131s # -> 10 replacements, "aaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaabaaaaaaaaaaaa" 1131s ok 20 /string/replace 1131s ok 21 /string/steal 1131s ok 22 /string/new-take 1131s ok 23 /string/copy 1131s ok - glib/string.test 1131s ok 24 /string/sized-new 1131s # Start of new-take tests 1131s ok 25 /string/new-take/null 1131s # End of new-take tests 1131s # End of string tests 1131s # Running test: glib/actions.test 1131s TAP version 14 1131s # random seed: R02S44af151a71e33624784ceac91c9b03c4 1131s 1..13 1131s # Start of actions tests 1131s ok 1 /actions/basic 1131s ok 2 /actions/name 1131s ok 3 /actions/simplegroup 1131s ok 4 /actions/stateful 1131s ok 5 /actions/default-activate 1131s ok 6 /actions/entries 1131s ok 7 /actions/parse-detailed 1131s ok 8 /actions/property 1131s ok 9 /actions/no-properties 1131s # Start of dbus tests 1131s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1131s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1131s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1131s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1131s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1131s ok 10 /actions/dbus/export 1131s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1131s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1131s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1131s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1131s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1131s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1133s # Executing: glib/actions.test 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s ok 11 /actions/dbus/threaded 1133s # slow test /actions/dbus/threaded executed in 2.09 secs 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s ok 12 /actions/dbus/bug679509 1133s # Start of export tests 1133s # /actions/dbus/export/error-handling summary: Test that error handling of action group export failure works 1133s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1133s ok 13 /actions/dbus/export/error-handling 1133s # End of export tests 1133s # End of dbus tests 1133s # End of actions tests 1133s ok - glib/actions.test 1133s # Running test: glib/gdbus-message.test 1133s TAP version 14 1133s # random seed: R02S0fa179145a376e44aa4c817fb6989790 1133s 1..3 1133s ok - glib/gdbus-message.test 1133s # Running test: glib/deprecated-properties.test 1133s ok - glib/deprecated-properties.test 1133s # Running test: glib/testing-nonfatal.test 1133s # Start of gdbus tests 1133s # Start of message tests 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_7VS7J3/gdbus/message/lock/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_7VS7J3/gdbus/message/lock/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_7VS7J3/gdbus/message/lock/.dirs/system-config1:/tmp/test_gdbus-message_7VS7J3/gdbus/message/lock/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_7VS7J3/gdbus/message/lock/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_7VS7J3/gdbus/message/lock/.dirs/system-data1:/tmp/test_gdbus-message_7VS7J3/gdbus/message/lock/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_7VS7J3/gdbus/message/lock/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_7VS7J3/gdbus/message/lock/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_7VS7J3/gdbus/message/lock/.dirs/runtime 1133s ok 1 /gdbus/message/lock 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_7VS7J3/gdbus/message/copy/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_7VS7J3/gdbus/message/copy/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_7VS7J3/gdbus/message/copy/.dirs/system-config1:/tmp/test_gdbus-message_7VS7J3/gdbus/message/copy/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_7VS7J3/gdbus/message/copy/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_7VS7J3/gdbus/message/copy/.dirs/system-data1:/tmp/test_gdbus-message_7VS7J3/gdbus/message/copy/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_7VS7J3/gdbus/message/copy/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_7VS7J3/gdbus/message/copy/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_7VS7J3/gdbus/message/copy/.dirs/runtime 1133s ok 2 /gdbus/message/copy 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-message_7VS7J3/gdbus/message/bytes-needed/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-message_7VS7J3/gdbus/message/bytes-needed/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-message_7VS7J3/gdbus/message/bytes-needed/.dirs/system-config1:/tmp/test_gdbus-message_7VS7J3/gdbus/message/bytes-needed/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-message_7VS7J3/gdbus/message/bytes-needed/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-message_7VS7J3/gdbus/message/bytes-needed/.dirs/system-data1:/tmp/test_gdbus-message_7VS7J3/gdbus/message/bytes-needed/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-message_7VS7J3/gdbus/message/bytes-needed/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-message_7VS7J3/gdbus/message/bytes-needed/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-message_7VS7J3/gdbus/message/bytes-needed/.dirs/runtime 1133s # Vector: 0 1133s # Vector: 1 1133s # Vector: 2 1133s # Vector: 3 1133s # Vector: 4 1133s # Vector: 5 1133s ok 3 /gdbus/message/bytes-needed 1133s # End of message tests 1133s # End of gdbus tests 1133s TAP version 14 1133s # random seed: R02Sb1a8eeecf3dda5d9980deb2022f8ec5c 1133s 1..3 1133s # Start of deprecated-properties tests 1133s ok 1 /deprecated-properties/construct 1133s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1133s ok 2 /deprecated-properties/default-construct 1133s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2748 1133s ok 3 /deprecated-properties/set 1133s # End of deprecated-properties tests 1133s TAP version 14 1133s # random seed: R02Sbd30ef40c9b72b341031c4c5f74a1492 1133s ** 1133s 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?") 1133s # 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?") 1133s TAP version 14 1133s # random seed: R02Scc3f27d68403f5097be1e7e8ab95e363 1133s 1..12 1133s # Start of gdbus tests 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/.dirs/runtime 1133s # Testing with unix:dir address 1133s ok - glib/testing-nonfatal.test 1133s # Running test: glib/gdbus-peer.test 1133s # Testing with unix:tmpdir address 1133s # Testing with unix:path address 1133s ok 1 /gdbus/peer-to-peer 1133s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/delayed-message-processing/.dirs/home 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/delayed-message-processing/.dirs/cache 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/delayed-message-processing/.dirs/system-config1:/tmp/test_gdbus-peer_N6R8J3/gdbus/delayed-message-processing/.dirs/system-config2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/delayed-message-processing/.dirs/config 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/delayed-message-processing/.dirs/system-data1:/tmp/test_gdbus-peer_N6R8J3/gdbus/delayed-message-processing/.dirs/system-data2 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/delayed-message-processing/.dirs/data 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/delayed-message-processing/.dirs/state 1133s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_N6R8J3/gdbus/delayed-message-processing/.dirs/runtime 1133s # Testing with unix:dir address 1134s ok 2 /gdbus/delayed-message-processing 1134s # slow test /gdbus/delayed-message-processing executed in 0.52 secs 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/nonce-tcp/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/nonce-tcp/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/nonce-tcp/.dirs/system-config1:/tmp/test_gdbus-peer_N6R8J3/gdbus/nonce-tcp/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/nonce-tcp/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/nonce-tcp/.dirs/system-data1:/tmp/test_gdbus-peer_N6R8J3/gdbus/nonce-tcp/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/nonce-tcp/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/nonce-tcp/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_N6R8J3/gdbus/nonce-tcp/.dirs/runtime 1134s ok 3 /gdbus/nonce-tcp 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/tcp-anonymous/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/tcp-anonymous/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/tcp-anonymous/.dirs/system-config1:/tmp/test_gdbus-peer_N6R8J3/gdbus/tcp-anonymous/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/tcp-anonymous/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/tcp-anonymous/.dirs/system-data1:/tmp/test_gdbus-peer_N6R8J3/gdbus/tcp-anonymous/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/tcp-anonymous/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/tcp-anonymous/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_N6R8J3/gdbus/tcp-anonymous/.dirs/runtime 1134s ok 4 /gdbus/tcp-anonymous 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/credentials/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/credentials/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/credentials/.dirs/system-config1:/tmp/test_gdbus-peer_N6R8J3/gdbus/credentials/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/credentials/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/credentials/.dirs/system-data1:/tmp/test_gdbus-peer_N6R8J3/gdbus/credentials/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/credentials/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/credentials/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_N6R8J3/gdbus/credentials/.dirs/runtime 1134s ok 5 /gdbus/credentials 1134s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/codegen-peer-to-peer/.dirs/home 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/codegen-peer-to-peer/.dirs/cache 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/codegen-peer-to-peer/.dirs/system-config1:/tmp/test_gdbus-peer_N6R8J3/gdbus/codegen-peer-to-peer/.dirs/system-config2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/codegen-peer-to-peer/.dirs/config 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/codegen-peer-to-peer/.dirs/system-data1:/tmp/test_gdbus-peer_N6R8J3/gdbus/codegen-peer-to-peer/.dirs/system-data2 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/codegen-peer-to-peer/.dirs/data 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/codegen-peer-to-peer/.dirs/state 1134s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_N6R8J3/gdbus/codegen-peer-to-peer/.dirs/runtime 1134s # Testing with unix:dir address 1134s # Machine ID: 1729867ac2524f3c990ff96e821fdbc7 1135s ok 6 /gdbus/codegen-peer-to-peer 1135s # slow test /gdbus/codegen-peer-to-peer executed in 1.11 secs 1135s # Start of peer-to-peer tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/signals/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/signals/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/signals/.dirs/system-config1:/tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/signals/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/signals/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/signals/.dirs/system-data1:/tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/signals/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/signals/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/signals/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/signals/.dirs/runtime 1135s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1620 1135s # Testing with unix:dir address 1135s ok 7 /gdbus/peer-to-peer/signals 1135s # Start of invalid tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/server/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/server/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/server/.dirs/system-config1:/tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/server/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/server/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/server/.dirs/system-data1:/tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/server/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/server/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/server/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/server/.dirs/runtime 1135s ok 8 /gdbus/peer-to-peer/invalid/server 1135s # Start of conn tests 1135s # Start of stream tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config1:/tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data1:/tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/async/.dirs/runtime 1135s ok 9 /gdbus/peer-to-peer/invalid/conn/stream/async 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config1:/tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data1:/tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/stream/sync/.dirs/runtime 1135s ok 10 /gdbus/peer-to-peer/invalid/conn/stream/sync 1135s # End of stream tests 1135s # Start of addr tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config1:/tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data1:/tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/system-data2 1135s ok - glib/gdbus-peer.test 1135s # Running test: glib/resolver-parsing.test 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/async/.dirs/runtime 1135s ok 11 /gdbus/peer-to-peer/invalid/conn/addr/async 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config1:/tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data1:/tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer_N6R8J3/gdbus/peer-to-peer/invalid/conn/addr/sync/.dirs/runtime 1135s ok 12 /gdbus/peer-to-peer/invalid/conn/addr/sync 1135s # End of addr tests 1135s # End of conn tests 1135s # End of invalid tests 1135s # End of peer-to-peer tests 1135s # End of gdbus tests 1135s TAP version 14 1135s # random seed: R02S2de9ad4378f994ab3e31755389ad708c 1135s 1..21 1135s # Start of gresolver tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/invalid-header/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/invalid-header/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/invalid-header/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/invalid-header/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/invalid-header/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/invalid-header/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/invalid-header/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/invalid-header/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/invalid-header/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/invalid-header/.dirs/runtime 1135s ok 1 /gresolver/invalid-header 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/record-ownership/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/record-ownership/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/record-ownership/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/record-ownership/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/record-ownership/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/record-ownership/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/record-ownership/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/record-ownership/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/record-ownership/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/record-ownership/.dirs/runtime 1135s ok 2 /gresolver/record-ownership 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/unknown-record-type/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/unknown-record-type/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/unknown-record-type/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/unknown-record-type/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/unknown-record-type/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/unknown-record-type/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/unknown-record-type/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/unknown-record-type/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/unknown-record-type/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/unknown-record-type/.dirs/runtime 1135s # GLib-GIO-DEBUG: Unrecognized DNS record type 20 1135s ok 3 /gresolver/unknown-record-type 1135s # Start of mx tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/valid/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/valid/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/valid/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/mx/valid/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/valid/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/valid/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/mx/valid/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/valid/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/valid/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/valid/.dirs/runtime 1135s ok 4 /gresolver/mx/valid 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/.dirs/runtime 1135s ok 5 /gresolver/mx/invalid 1135s # Start of invalid tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short/.dirs/runtime 1135s ok 6 /gresolver/mx/invalid/too-short 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short2/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short2/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short2/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short2/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short2/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short2/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short2/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/mx/invalid/too-short2/.dirs/runtime 1135s ok 7 /gresolver/mx/invalid/too-short2 1135s # End of invalid tests 1135s # End of mx tests 1135s # Start of ns tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/valid/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/valid/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/valid/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/ns/valid/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/valid/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/valid/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/ns/valid/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/valid/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/valid/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/valid/.dirs/runtime 1135s ok 8 /gresolver/ns/valid 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/invalid/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/invalid/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/ns/invalid/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/invalid/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/ns/invalid/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/invalid/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/invalid/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/ns/invalid/.dirs/runtime 1135s ok 9 /gresolver/ns/invalid 1135s # End of ns tests 1135s # Start of soa tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/valid/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/valid/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/valid/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/soa/valid/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/valid/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/valid/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/soa/valid/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/valid/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/valid/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/valid/.dirs/runtime 1135s ok 10 /gresolver/soa/valid 1135s # Start of invalid tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/mname/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/mname/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/mname/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/mname/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/mname/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/mname/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/mname/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/mname/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/mname/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/mname/.dirs/runtime 1135s ok 11 /gresolver/soa/invalid/mname 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/rname/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/rname/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/rname/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/rname/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/rname/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/rname/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/rname/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/rname/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/rname/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/rname/.dirs/runtime 1135s ok 12 /gresolver/soa/invalid/rname 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/too-short/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/too-short/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/too-short/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/too-short/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/too-short/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/too-short/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/too-short/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/soa/invalid/too-short/.dirs/runtime 1135s ok 13 /gresolver/soa/invalid/too-short 1135s # End of invalid tests 1135s # End of soa tests 1135s # Start of srv tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/valid/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/valid/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/valid/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/srv/valid/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/valid/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/valid/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/srv/valid/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/valid/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/valid/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/valid/.dirs/runtime 1135s ok 14 /gresolver/srv/valid 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/.dirs/runtime 1135s ok 15 /gresolver/srv/invalid 1135s # Start of invalid tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short/.dirs/runtime 1135s ok 16 /gresolver/srv/invalid/too-short 1135s # GLib-DEBUG: g_set_userok - glib/resolver-parsing.test 1135s # Running test: glib/credentials.test 1135s ok - glib/credentials.test 1135s # Running test: glib/simple-proxy.test 1135s ok - glib/simple-proxy.test 1135s # Running test: glib/overflow-fallback.test 1135s ok - glib/overflow-fallback.test 1135s # Running test: glib/gdbus-proxy-unique-name.test 1135s ok - glib/gdbus-proxy-unique-name.test 1135s _dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short2/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short2/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short2/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short2/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short2/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short2/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short2/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short2/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short2/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/srv/invalid/too-short2/.dirs/runtime 1135s ok 17 /gresolver/srv/invalid/too-short2 1135s # End of invalid tests 1135s # End of srv tests 1135s # Start of txt tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/.dirs/runtime 1135s ok 18 /gresolver/txt/valid 1135s # Start of valid tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/multiple-strings/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/multiple-strings/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/multiple-strings/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/multiple-strings/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/multiple-strings/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/multiple-strings/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/multiple-strings/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/multiple-strings/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/multiple-strings/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/valid/multiple-strings/.dirs/runtime 1135s ok 19 /gresolver/txt/valid/multiple-strings 1135s # End of valid tests 1135s # Start of invalid tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/empty/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/empty/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/empty/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/empty/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/empty/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/empty/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/empty/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/empty/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/empty/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/empty/.dirs/runtime 1135s ok 20 /gresolver/txt/invalid/empty 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/overflow/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/overflow/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/overflow/.dirs/system-config1:/tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/overflow/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/overflow/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/overflow/.dirs/system-data1:/tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/overflow/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/overflow/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/overflow/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_resolver-parsing_2BFDK3/gresolver/txt/invalid/overflow/.dirs/runtime 1135s ok 21 /gresolver/txt/invalid/overflow 1135s # End of invalid tests 1135s # End of txt tests 1135s # End of gresolver tests 1135s TAP version 14 1135s # random seed: R02S9ae70a6dac453abcb5ed63bfb530839d 1135s 1..1 1135s # Start of credentials tests 1135s # GCredentials:linux-ucred:pid=9769,uid=1000,gid=1000 1135s # GCredentials:linux-ucred:pid=9769,uid=0,gid=1000 1135s ok 1 /credentials/basic 1135s # End of credentials tests 1135s TAP version 14 1135s # random seed: R02S45626461f3b4a22a9e93eb621df0a0e2 1135s 1..3 1135s # Start of static-proxy tests 1135s ok 1 /static-proxy/uri 1135s ok 2 /static-proxy/socks 1135s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string *.eee.xx:8000 1135s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 10.0.0.1:8000 1135s ok 3 /static-proxy/ignore 1135s # End of static-proxy tests 1135s TAP version 14 1135s # random seed: R02S7f750d6745839ef774766a5be9d802b1 1135s 1..6 1135s # Start of glib tests 1135s # Start of checked-math tests 1135s ok 1 /glib/checked-math/guint-add 1135s ok 2 /glib/checked-math/guint-mul 1135s ok 3 /glib/checked-math/guint64-add 1135s ok 4 /glib/checked-math/guint64-mul 1135s ok 5 /glib/checked-math/gsize-add 1135s ok 6 /glib/checked-math/gsize-mul 1135s # End of checked-math tests 1135s # End of glib tests 1135s TAP version 14 1135s # random seed: R02S1e5e7b45bc42e2cef7ade368ab344536 1135s 1..1 1135s # Start of gdbus tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-unique-name_R7KEK3/gdbus/proxy-unique-name/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-unique-name_R7KEK3/gdbus/proxy-unique-name/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-unique-name_R7KEK3/gdbus/proxy-unique-name/.dirs/system-config1:/tmp/test_gdbus-proxy-unique-name_R7KEK3/gdbus/proxy-unique-name/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-unique-name_R7KEK3/gdbus/proxy-unique-name/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-unique-name_R7KEK3/gdbus/proxy-unique-name/.dirs/system-data1:/tmp/test_gdbus-proxy-unique-name_R7KEK3/gdbus/proxy-unique-name/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-unique-name_R7KEK3/gdbus/proxy-unique-name/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-unique-name_R7KEK3/gdbus/proxy-unique-name/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-unique-name_R7KEK3/gdbus/proxy-unique-name/.dirs/runtime 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s ok 1 /gdbus/proxy-unique-name 1135s # End of gdbus tests 1135s # Running test: glib/spawn-singlethread.test 1135s TAP version 14 1135s # random seed: R02S0b5fd9c78d8733da99d6749bc796fe0f 1135s 1..9 1135s # Start of gthread tests 1135s ok 1 /gthread/spawn-single-sync 1135s # /gthread/spawn-stderr-socket summary: Test calling g_spawn_sync() with its stderr FD set to a socket 1135s ok 2 /gthread/spawn-stderr-socket 1135s ok 3 /gthread/spawn-single-async 1135s # thread 1 1135s # thread 1 1135s ok 4 /gthread/spawn-single-async-with-fds 1135s ok 5 /gthread/spawn-async-with-invalid-fds 1135s ok 6 /gthread/spawn-script 1135s ok 7 /gthread/spawn-posix-spawn 1135s # Start of spawn tests 1135s ok 8 /gthread/spawn/nonexistent 1135s # FD map: 1135s # • 5 → 15 1135s # • 6 → 16 1135s # • 7 → 17 1135s # • 8 → 18 1135s # • 9 → 19 1135s # • 10 → 20 1135s # • 11 → 21 1135s # • 12 → 22 1135s # • 13 → 23 1135s # • 3 → 13 1135s ok 9 /gthread/spawn/fd-assignment-clash 1135s # End of spawn tests 1135s # End of gthread tests 1135s ok - glib/spawn-singlethread.test 1135s # Running test: glib/enums.test 1135s TAP version 14 1135s ok - glib/enums.test 1135s # Running test: glib/data-input-stream.test 1135s # random seed: R02S9fd99668f0f0234c1c07f47bc98b769b 1135s 1..4 1135s # Start of enum tests 1135s ok 1 /enum/basic 1135s ok 2 /enum/define-type 1135s # End of enum tests 1135s # Start of flags tests 1135s ok 3 /flags/basic 1135s ok 4 /flags/define-type 1135s # End of flags tests 1135s TAP version 14 1135s # random seed: R02S4b0761888b082f0d23a20be2d03a0d00 1135s 1..10 1135s # Start of data-input-stream tests 1135s ok 1 /data-input-stream/basic 1135s ok 2 /data-input-stream/read-lines-LF 1135s ok 3 /data-input-stream/read-lines-LF-valid-utf8 1135s ok 4 /data-input-stream/read-lines-LF-invalid-utf8 1135s ok 5 /data-input-stream/read-lines-CR 1135s ok 6 /data-input-stream/read-lines-CR-LF 1135s ok 7 /data-input-stream/read-lines-any 1135s ok 8 /data-input-stream/read-until 1135s # Test vector 0: part1 # part2 $ part3 ? part4 ? and #$?^ 1135s # Test vector 1: {"key": "value"}? and ? 1135s ok 9 /data-input-stream/read-upto 1135s ok - glib/data-input-stream.test 1135s ok 10 /data-input-stream/read-int 1135s # End of data-input-stream tests 1135s # Running test: glib/repository.test 1135s TAP version 14 1135s # random seed: R02Sde0daff6fb02dfb523ac37778a07efa6 1135s 1..24 1135s # Start of repository tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/basic/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/basic/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/basic/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/basic/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/basic/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/basic/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/basic/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/basic/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/basic/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/basic/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/basic summary: Test basic opening of a repository and requiring a typelib 1135s ok 1 /repository/basic 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/info/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/info/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/info/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/info/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/info/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/info/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/info/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/info/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/info/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/info/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/info summary: Test retrieving some basic info blobs from a typelib 1135s ok 2 /repository/info 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/dependencies/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/dependencies/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/dependencies/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/dependencies/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/dependencies/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/dependencies/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/dependencies/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/dependencies/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/dependencies/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/dependencies/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/dependencies summary: Test ensures namespace dependencies are correctly exposed 1135s ok 3 /repository/dependencies 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/arg-info/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/arg-info/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/arg-info/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/arg-info/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/arg-info/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/arg-info/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/arg-info/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/arg-info/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/arg-info/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/arg-info/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/arg-info summary: Test retrieving GIArgInfos from a typelib 1135s ok 4 /repository/arg-info 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/callable-info/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/callable-info/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/callable-info/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/callable-info/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/callable-info/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/callable-info/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/callable-info/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/callable-info/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/callable-info/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/callable-info/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/callable-info summary: Test retrieving GICallableInfos from a typelib 1135s ok 5 /repository/callable-info 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/callback-info/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/callback-info/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/callback-info/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/callback-info/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/callback-info/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/callback-info/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/callback-info/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/callback-info/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/callback-info/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/callback-info/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/callback-info summary: Test retrieving GICallbackInfos from a typelib 1135s ok 6 /repository/callback-info 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/char-types/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/char-types/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/char-types/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/char-types/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/char-types/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/char-types/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/char-types/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/char-types/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/char-types/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/char-types/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/char-types summary: Test that signed and unsigned char GITypeInfo have GITypeTag of INT8 and UINT8 respectively 1135s ok 7 /repository/char-types 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/constructor-return-type/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/constructor-return-type/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/constructor-return-type/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/constructor-return-type/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/constructor-return-type/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/constructor-return-type/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/constructor-return-type/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/constructor-return-type/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/constructor-return-type/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/constructor-return-type/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/constructor-return-type summary: Test the return type of a constructor, g_object_newv() 1135s ok 8 /repository/constructor-return-type 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/enum-info-c-identifier/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/enum-info-c-identifier/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/enum-info-c-identifier/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/enum-info-c-identifier/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/enum-info-c-identifier/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/enum-info-c-identifier/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/enum-info-c-identifier/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/enum-info-c-identifier/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/enum-info-c-identifier/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/enum-info-c-identifier/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/enum-info-c-identifier summary: Test that every enum member has a C identifier 1135s ok 9 /repository/enum-info-c-identifier 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/enum-info-static-methods/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/enum-info-static-methods/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/enum-info-static-methods/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/enum-info-static-methods/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/enum-info-static-methods/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/enum-info-static-methods/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/enum-info-static-methods/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/enum-info-static-methods/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/enum-info-static-methods/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/enum-info-static-methods/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/enum-info-static-methods summary: Test an enum with methods 1135s ok 10 /repository/enum-info-static-methods 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/error-quark/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/error-quark/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/error-quark/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/error-quark/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/error-quark/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/error-quark/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/error-quark/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/error-quark/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/error-quark/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/error-quark/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/error-quark summary: Test finding an error quark by error domain 1135s ok 11 /repository/error-quark 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/flags-info-c-identifier/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/flags-info-c-identifier/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/flags-info-c-identifier/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/flags-info-c-identifier/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/flags-info-c-identifier/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/flags-info-c-identifier/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/flags-info-c-identifier/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/flags-info-c-identifier/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/flags-info-c-identifier/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/flags-info-c-identifier/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/flags-info-c-identifier summary: Test that every flags member has a C identifier 1135s ok 12 /repository/flags-info-c-identifier 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/fundamental-ref-func/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/fundamental-ref-func/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/fundamental-ref-func/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/fundamental-ref-func/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/fundamental-ref-func/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/fundamental-ref-func/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/fundamental-ref-func/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/fundamental-ref-func/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/fundamental-ref-func/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/fundamental-ref-func/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/fundamental-ref-func summary: Test getting the ref func of a fundamental type 1135s ok 13 /repository/fundamental-ref-func 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/instance-method-ownership-transfer/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/instance-method-ownership-transfer/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/instance-method-ownership-transfer/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/instance-method-ownership-transfer/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/instance-method-ownership-transfer/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/instance-method-ownership-transfer/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/instance-method-ownership-transfer/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/instance-method-ownership-transfer/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/instance-method-ownership-transfer/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/instance-method-ownership-transfer/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/instance-method-ownership-transfer summary: Test two methods of the same object having opposite ownership transfer of the instance parameter 1135s ok 14 /repository/instance-method-ownership-transfer 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/object-gtype-interfaces/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/object-gtype-interfaces/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/object-gtype-interfaces/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/object-gtype-interfaces/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/object-gtype-interfaces/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/object-gtype-interfaces/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/object-gtype-interfaces/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/object-gtype-interfaces/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/object-gtype-interfaces/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/object-gtype-interfaces/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/object-gtype-interfaces summary: Test gi_repository_get_object_gtype_interfaces() 1135s ok 15 /repository/object-gtype-interfaces 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/signal-info-with-array-length-arg/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/signal-info-with-array-length-arg/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/signal-info-with-array-length-arg/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/signal-info-with-array-length-arg/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/signal-info-with-array-length-arg/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/signal-info-with-array-length-arg/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/signal-info-with-array-length-arg/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/signal-info-with-array-length-arg/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/signal-info-with-array-length-arg/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/signal-info-with-array-length-arg/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/signal-info-with-array-length-arg summary: Test finding the associated array length argument of an array parameter of a signal 1135s ok 16 /repository/signal-info-with-array-length-arg 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/type-info-name/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/type-info-name/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/type-info-name/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/type-info-name/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/type-info-name/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/type-info-name/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/type-info-name/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/type-info-name/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/type-info-name/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/type-info-name/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/type-info-name summary: Test that gi_base_info_get_name() returns null for GITypeInfo 1135s # Bug Reference: https://gitlab.gnome.org/GNOME/gobject-introspection/issues/96 1135s ok 17 /repository/type-info-name 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-no-invoker/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-no-invoker/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-no-invoker/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/vfunc-info-with-no-invoker/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-no-invoker/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-no-invoker/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/vfunc-info-with-no-invoker/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-no-invoker/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-no-invoker/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-no-invoker/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/vfunc-info-with-no-invoker summary: Test vfunc with no known invoker on object, such as GObject.dispose 1135s ok 18 /repository/vfunc-info-with-no-invoker 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-interface/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/vfunc-info-with-invoker-on-interface summary: Test vfunc with invoker on interface, such as GFile.read_async 1135s ok 19 /repository/vfunc-info-with-invoker-on-interface 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-object/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-object/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-object/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-object/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-object/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-object/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-object/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/vfunc-info-with-invoker-on-object/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/vfunc-info-with-invoker-on-object summary: Test vfunc with invoker on object, such as GAppLaunchContext.get_display 1135s ok 20 /repository/vfunc-info-with-invoker-on-object 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/find-by-gtype/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/find-by-gtype/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/find-by-gtype/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/find-by-gtype/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/find-by-gtype/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/find-by-gtype/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/find-by-gtype/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/find-by-gtype/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/find-by-gtype/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/find-by-gtype/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/find-by-gtype summary: Test finding a GType 1135s ok 21 /repository/find-by-gtype 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/loaded-namespaces/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/loaded-namespaces/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/loaded-namespaces/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/loaded-namespaces/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/loaded-namespaces/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/loaded-namespaces/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/loaded-namespaces/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/loaded-namespaces/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/loaded-namespaces/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/loaded-namespaces/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/loaded-namespaces summary: Test listing loaded namespaces 1135s ok 22 /repository/loaded-namespaces 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/dup_default/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/dup_default/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/dup_default/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/dup_default/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/dup_default/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/dup_default/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/dup_default/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/dup_default/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/dup_default/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/dup_default/.dirs/runtime 1135s ok 23 /repository/dup_default 1135s # Start of base-info tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository_CWQ8J3/repository/base-info/clear/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository_CWQ8J3/repository/base-info/clear/.dirs/cache 1135s ok - glib/repository.test 1135s # Running test: glib/debugcontroller.test 1135s ok - glib/debugcontroller.test 1135s # Running test: glib/init.test 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository_CWQ8J3/repository/base-info/clear/.dirs/system-config1:/tmp/test_repository_CWQ8J3/repository/base-info/clear/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository_CWQ8J3/repository/base-info/clear/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository_CWQ8J3/repository/base-info/clear/.dirs/system-data1:/tmp/test_repository_CWQ8J3/repository/base-info/clear/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository_CWQ8J3/repository/base-info/clear/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository_CWQ8J3/repository/base-info/clear/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository_CWQ8J3/repository/base-info/clear/.dirs/runtime 1135s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1135s # /repository/base-info/clear summary: Test calling gi_base_info_clear() on a zero-filled struct 1135s ok 24 /repository/base-info/clear 1135s # End of base-info tests 1135s # End of repository tests 1135s TAP version 14 1135s # random seed: R02See79591dfe3fd01c91762b38d0c7ec7b 1135s 1..3 1135s # Start of debug-controller tests 1135s # Start of dbus tests 1135s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1135s # GLib-GIO-DEBUG: Debug output enabled 1135s # GLib-GIO-DEBUG: Debug output disabled 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s ok 1 /debug-controller/dbus/basic 1135s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s ok 2 /debug-controller/dbus/duplicate 1135s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1135s ok 3 /debug-controller/dbus/properties # SKIP https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2486#note_1384102 1135s # End of dbus tests 1135s # End of debug-controller tests 1135s TAP version 14 1135s # random seed: R02S55f539d3d1ad4a459968358411741e4e 1135s 1..2 1135s # Start of thread tests 1135s # Start of deprecated tests 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_OXM8J3/thread/deprecated/init/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_OXM8J3/thread/deprecated/init/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_OXM8J3/thread/deprecated/init/.dirs/system-config1:/tmp/test_init_OXM8J3/thread/deprecated/init/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_OXM8J3/thread/deprecated/init/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_OXM8J3/thread/deprecated/init/.dirs/system-data1:/tmp/test_init_OXM8J3/thread/deprecated/init/.dirs/system-data2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_OXM8J3/thread/deprecated/init/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_OXM8J3/thread/deprecated/init/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_OXM8J3/thread/deprecated/init/.dirs/runtime 1135s ok 1 /thread/deprecated/init 1135s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_init_OXM8J3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/home 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_init_OXM8J3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/cache 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_init_OXM8J3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config1:/tmp/test_init_OXM8J3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-config2 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_init_OXM8J3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/config 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_init_OXM8J3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data1:/tmp/test_init_OXM8J3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/system-data2 1135s ok - glib/init.test 1135s # Running test: glib/gapplication.test 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_init_OXM8J3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/data 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_init_OXM8J3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/state 1135s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_init_OXM8J3/thread/deprecated/init-with-errorcheck-mutexes/.dirs/runtime 1135s ok 2 /thread/deprecated/init-with-errorcheck-mutexes 1135s # End of deprecated tests 1135s # End of thread tests 1135s TAP version 14 1135s # random seed: R02S94c226907a4aac064ae2dafaa82d2b06 1135s 1..25 1135s # Start of gapplication tests 1135s ok 1 /gapplication/no-dbus 1135s ok 2 /gapplication/no-appid 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s ok 3 /gapplication/properties 1135s ok 4 /gapplication/app-id 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s ok 5 /gapplication/quit 1135s ok 6 /gapplication/registered 1135s ok 7 /gapplication/local-actions 1135s ok 8 /gapplication/local-command-line 1135s ok 9 /gapplication/resource-path 1135s ok 10 /gapplication/test-help 1135s ok 11 /gapplication/command-line-done 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s ok 12 /gapplication/test-busy 1135s ok 13 /gapplication/test-handle-local-options1 1135s ok 14 /gapplication/test-handle-local-options2 1135s ok 15 /gapplication/test-handle-local-options3 1135s ok 16 /gapplication/api 1135s ok 17 /gapplication/version 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1135s # launching subprocess 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s ok 18 /gapplication/replace 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1135s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1135s # launching subprocess 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s ok 19 /gapplication/no-replace 1136s # slow test /gapplication/no-replace executed in 0.51 secs 1136s # Start of command-line tests 1136s # /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 1136s ok 20 /gapplication/command-line/arguments 1136s # End of command-line tests 1136s # Start of dbus tests 1136s # /gapplication/dbus/activate summary: Test that calling the Activate D-Bus method works 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1136s # Message 0 1136s # Message 1 1136s # Message 2 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s ok 21 /gapplication/dbus/activate 1136s # /gapplication/dbus/open summary: Test that calling the Open D-Bus method works 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1136s # Message 0 1136s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1136s # Message 1 1136s # Message 2 1136s # Message 3 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s ok 22 /gapplication/dbus/open 1136s # /gapplication/dbus/command-line summary: Test that calling the CommandLine D-Bus method works 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1136s # Message 0 1136s # Message 1 1136s # Message 2 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s ok 23 /gapplication/dbus/command-line 1136s # /gapplication/dbus/command-line-done summary: Test that GDBusCommandLine.done() works 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s ok 24 /gapplication/dbus/command-line-done 1136s # /gapplication/dbus/activate-action summary: Test that calling the ActivateAction D-Bus method works 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1136s # Message 0 1136s # Message 1 1136s # Message 2 1136s # Message 3 1136s # Message 4 1136s # Message 5 1136s # Message 6 1136s # Message 7 1136s # Message 8 1136s # Message 9 1136s # Message 10 1136s ok - glib/gapplication.test 1136s # Running test: glib/cache.test 1136s # Message 11 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1136s ok 25 /gapplication/dbus/activate-action 1136s # End of dbus tests 1136s # End of gapplication tests 1136s ok - glib/cache.test 1136s # Running test: glib/fileattributematcher.test 1136s TAP version 14 1136s # random seed: R02S385d08a5f8840a49d3c7d25aa622f92a 1136s 1..1 1136s # Start of cache tests 1136s ok 1 /cache/basic 1136s # End of cache tests 1136s TAP version 14 1136s # random seed: R02Sa0a3b97934ee47920751bf90dda9daba 1136s 1..3 1136s # Start of fileattributematcher tests 1136s ok 1 /fileattributematcher/exact 1136s ok 2 /fileattributematcher/equality 1136s ok 3 /fileattributematcher/subtract 1136s # End of fileattributematcher tests 1136s ok - glib/fileattributematcher.test 1136s # Running test: glib/rand.test 1136s TAP version 14 1136s # random seed: R02S856bd6d7534019bb9a57b9a5636f0116 1136s 1..2 1136s # Start of rand tests 1136s ok - glib/rand.test 1136s ok 1 /rand/test-rand 1136s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=502560 1136s ok 2 /rand/double-range 1136s # End of rand tests 1136s # Running test: glib/throws.test 1136s TAP version 14 1136s # random seed: R02Sb40c81769817b7baf6b97e04fe0d3485 1136s 1..3 1136s # Start of throws tests 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_IXDAK3/throws/invoke-gerror/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_IXDAK3/throws/invoke-gerror/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_IXDAK3/throws/invoke-gerror/.dirs/system-config1:/tmp/test_throws_IXDAK3/throws/invoke-gerror/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_IXDAK3/throws/invoke-gerror/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_IXDAK3/throws/invoke-gerror/.dirs/system-data1:/tmp/test_throws_IXDAK3/throws/invoke-gerror/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_IXDAK3/throws/invoke-gerror/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_IXDAK3/throws/invoke-gerror/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_IXDAK3/throws/invoke-gerror/.dirs/runtime 1136s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1136s # /throws/invoke-gerror summary: Test invoking a function that throws a GError 1136s ok 1 /throws/invoke-gerror 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_IXDAK3/throws/vfunc-can-throw-gerror/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_IXDAK3/throws/vfunc-can-throw-gerror/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_IXDAK3/throws/vfunc-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_IXDAK3/throws/vfunc-can-throw-gerror/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_IXDAK3/throws/vfunc-can-throw-gerror/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_IXDAK3/throws/vfunc-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_IXDAK3/throws/vfunc-can-throw-gerror/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_IXDAK3/throws/vfunc-can-throw-gerror/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_IXDAK3/throws/vfunc-can-throw-gerror/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_IXDAK3/throws/vfunc-can-throw-gerror/.dirs/runtime 1136s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1136s # /throws/vfunc-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a vfunc 1136s ok 2 /throws/vfunc-can-throw-gerror 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_throws_IXDAK3/throws/callback-can-throw-gerror/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_throws_IXDAK3/throws/callback-can-throw-gerror/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_throws_IXDAK3/throws/callback-can-throw-gerror/.dirs/system-config1:/tmp/test_throws_IXDAK3/throws/callback-can-throw-gerror/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_throws_IXDAK3/throws/callback-can-throw-gerror/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_throws_IXDAK3/throws/callback-can-throw-gerror/.dirs/system-data1:/tmp/test_throws_IXDAK3/throws/callback-can-throw-gerror/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_throws_IXDAK3/throws/callback-can-throw-gerror/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_throws_IXDAK3/throws/callback-can-throw-gerror/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_throws_IXDAK3/throws/callback-can-throw-gerror/.dirs/runtime 1136s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1136s ok - glib/throws.test 1136s # /throws/callback-can-throw-gerror summary: Test gi_callable_info_can_throw_gerror() on a callback 1136s ok 3 /throws/callback-can-throw-gerror 1136s # End of throws tests 1136s # Running test: glib/utils-c-89.test 1136s TAP version 14 1136s # random seed: R02S98ece49e1ffd00a06ba9a606695d1248 1136s 1..41 1136s # Start of utils tests 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/language-names/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/language-names/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/language-names/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/language-names/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/language-names/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/language-names/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/language-names/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/language-names/.dirs/runtime 1136s ok 1 /utils/language-names 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/locale-variants/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/locale-variants/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/locale-variants/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/locale-variants/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/locale-variants/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/locale-variants/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/locale-variants/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/locale-variants/.dirs/runtime 1136s # Testing locale ‘en’ 1136s # Testing locale ‘sr@latin’ 1136s # Testing locale ‘fr_BE’ 1136s # Testing locale ‘sr_SR@latin’ 1136s # Testing locale ‘sr_SR@latin.UTF-8’ 1136s # Testing locale ‘sr@latin_invalid’ 1136s # Testing locale ‘sr.UTF-8@latin’ 1136s # Testing locale ‘sr.UTF-8_latin’ 1136s # Testing locale ‘sr.UTF-8@latin_invalid’ 1136s ok 2 /utils/locale-variants 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/version/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/version/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/version/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/version/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/version/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/version/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/version/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/version/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/version/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/version/.dirs/runtime 1136s ok 3 /utils/version 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/appname/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/appname/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/appname/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/appname/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/appname/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/appname/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/appname/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/appname/.dirs/runtime 1136s ok 4 /utils/appname 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/prgname-thread-safety/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/prgname-thread-safety/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/prgname-thread-safety/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/prgname-thread-safety/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/prgname-thread-safety/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/prgname-thread-safety/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/prgname-thread-safety/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/prgname-thread-safety/.dirs/runtime 1136s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1136s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1136s ok 5 /utils/prgname-thread-safety 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/tmpdir/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/tmpdir/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/tmpdir/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/tmpdir/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/tmpdir/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/tmpdir/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/tmpdir/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/tmpdir/.dirs/runtime 1136s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1136s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1136s Unable to clean up temporary directory /tmp/test_utils-c-89_NVT9J3/utils/tmpdir: No such file or directory 1136s ok 6 /utils/tmpdir 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/basic_bits/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/basic_bits/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/basic_bits/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/basic_bits/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/basic_bits/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/basic_bits/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/basic_bits/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/basic_bits/.dirs/runtime 1136s ok 7 /utils/basic_bits 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/bits/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/bits/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/bits/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/bits/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/bits/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/bits/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/bits/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/bits/.dirs/runtime 1136s ok 8 /utils/bits 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/swap/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/swap/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/swap/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/swap/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/swap/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/swap/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/swap/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/swap/.dirs/runtime 1136s ok 9 /utils/swap 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/find-program/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/find-program/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/find-program/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/find-program/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/find-program/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/find-program/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/find-program/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/find-program/.dirs/runtime 1136s ok 10 /utils/find-program 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/find-program-for-path/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/find-program-for-path/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/find-program-for-path/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/find-program-for-path/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/find-program-for-path/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/find-program-for-path/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/find-program-for-path/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/find-program-for-path/.dirs/runtime 1136s ok 11 /utils/find-program-for-path 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/debug/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/debug/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/debug/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/debug/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/debug/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/debug/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/debug/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/debug/.dirs/runtime 1136s Unable to clean up temporary directory /tmp/test_utils-c-89_NVT9J3/utils/debug: No such file or directory 1136s ok 12 /utils/debug 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/codeset/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/codeset/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/codeset/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/codeset/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/codeset/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/codeset/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/codeset/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/codeset/.dirs/runtime 1136s ok 13 /utils/codeset 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/codeset2/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/codeset2/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/codeset2/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/codeset2/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/codeset2/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/codeset2/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/codeset2/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/codeset2/.dirs/runtime 1136s Unable to clean up temporary directory /tmp/test_utils-c-89_NVT9J3/utils/codeset2: No such file or directory 1136s ok 14 /utils/codeset2 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/console-charset/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/console-charset/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/console-charset/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/console-charset/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/console-charset/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/console-charset/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/console-charset/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/console-charset/.dirs/runtime 1136s ok 15 /utils/console-charset 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/gettext/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/gettext/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/gettext/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/gettext/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/gettext/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/gettext/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/gettext/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/gettext/.dirs/runtime 1136s ok 16 /utils/gettext 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/username/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/username/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/username/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/username/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/username/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/username/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/username/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/username/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/username/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/username/.dirs/runtime 1136s ok 17 /utils/username 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/realname/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/realname/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/realname/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/realname/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/realname/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/realname/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/realname/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/realname/.dirs/runtime 1136s ok 18 /utils/realname 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/hostname/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/hostname/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/hostname/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/hostname/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/hostname/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/hostname/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/hostname/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/hostname/.dirs/runtime 1136s ok 19 /utils/hostname 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/os-info/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/os-info/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/os-info/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/os-info/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/os-info/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/os-info/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/os-info/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/os-info/.dirs/runtime 1136s # NAME: Ubuntu 1136s ok 20 /utils/os-info 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/.dirs/runtime 1136s ok 21 /utils/clear-pointer 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer-cast/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer-cast/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/clear-pointer-cast/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer-cast/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/clear-pointer-cast/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer-cast/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer-cast/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer-cast/.dirs/runtime 1136s ok 22 /utils/clear-pointer-cast 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/take-pointer/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/take-pointer/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/take-pointer/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/take-pointer/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/take-pointer/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/take-pointer/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/take-pointer/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/take-pointer/.dirs/runtime 1136s ok 23 /utils/take-pointer 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-source/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-source/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/clear-source/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-source/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/clear-source/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-source/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-source/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/clear-source/.dirs/runtime 1136s ok 24 /utils/clear-source 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/misc-mem/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/misc-mem/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/misc-mem/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/misc-mem/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/misc-mem/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/misc-mem/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/misc-mem/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/misc-mem/.dirs/runtime 1136s ok 25 /utils/misc-mem 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/.dirs/runtime 1136s # /utils/aligned-mem summary: Aligned memory allocator 1136s # Alignment must not be zero 1136s # Alignment must be a power of two 1136s # Alignment must be a multiple of sizeof(void*) 1136s ok 26 /utils/aligned-mem 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/free-sized/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/free-sized/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/free-sized/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/free-sized/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/free-sized/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/free-sized/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/free-sized/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/free-sized/.dirs/runtime 1136s # /utils/free-sized summary: Check that g_free_sized() works 1136s ok 27 /utils/free-sized 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/nullify/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/nullify/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/nullify/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/nullify/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/nullify/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/nullify/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/nullify/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/nullify/.dirs/runtime 1136s ok 28 /utils/nullify 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/atexit/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/atexit/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/atexit/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/atexit/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/atexit/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/atexit/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/atexit/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/atexit/.dirs/runtime 1136s Unable to clean up temporary directory /tmp/test_utils-c-89_NVT9J3/utils/atexit: No such file or directory 1136s ok 29 /utils/atexit 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/check-setuid/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/check-setuid/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/check-setuid/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/check-setuid/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/check-setuid/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/check-setuid/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/check-setuid/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/check-setuid/.dirs/runtime 1136s ok 30 /utils/check-setuid 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/int-limits/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/int-limits/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/int-limits/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/int-limits/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/int-limits/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/int-limits/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/int-limits/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/int-limits/.dirs/runtime 1136s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1136s ok 31 /utils/int-limits 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-list/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-list/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/clear-list/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-list/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/clear-list/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-list/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-list/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/clear-list/.dirs/runtime 1136s ok 32 /utils/clear-list 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-slist/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-slist/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/clear-slist/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-slist/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/clear-slist/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-slist/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-slist/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/clear-slist/.dirs/runtime 1136s ok 33 /utils/clear-slist 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/steal-handle-id/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/steal-handle-id/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/steal-handle-id/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/steal-handle-id/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/steal-handle-id/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/steal-handle-id/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/steal-handle-id/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/steal-handle-id/.dirs/runtime 1136s ok 34 /utils/steal-handle-id 1136s # Start of user-special-dirs tests 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/desktop/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/desktop/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/desktop/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/desktop/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/desktop/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/desktop/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/desktop/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/desktop/.dirs/runtime 1136s ok 35 /utils/user-special-dirs/desktop 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/load-unlocked/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/load-unlocked/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/load-unlocked/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/load-unlocked/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/load-unlocked/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1136s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1136s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1136s Unable to clean up temporary directory /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/load-unlocked: No such file or directory 1136s ok 36 /utils/user-special-dirs/load-unlocked 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/reload-leaks/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/reload-leaks/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/reload-leaks/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/reload-leaks/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/reload-leaks/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1136s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1136s Unable to clean up temporary directory /tmp/test_utils-c-89_NVT9J3/utils/user-special-dirs/reload-leaks: No such file or directory 1136s ok 37 /utils/user-special-dirs/reload-leaks 1136s # End of user-special-dirs tests 1136s # Start of clear-pointer tests 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/side-effects/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/side-effects/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/side-effects/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/side-effects/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/side-effects/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/side-effects/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/side-effects/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/clear-pointer/side-effects/.dirs/runtime 1136s ok 38 /utils/clear-pointer/side-effects 1136s # End of clear-pointer tests 1136s # Start of aligned-mem tests 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/alignment/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/alignment/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/alignment/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/alignment/.dirs/config 1136s ok - glib/utils-c-89.test 1136s # Running test: glib/utf8-private.test 1136s ok - glib/utf8-private.test 1136s # Running test: glib/atomic.test 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/alignment/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/alignment/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/alignment/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/alignment/.dirs/runtime 1136s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1136s ok 39 /utils/aligned-mem/alignment 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/zeroed/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/zeroed/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/zeroed/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/zeroed/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/zeroed/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/zeroed/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/zeroed/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/zeroed/.dirs/runtime 1136s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1136s ok 40 /utils/aligned-mem/zeroed 1136s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/free-sized/.dirs/home 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/free-sized/.dirs/cache 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/free-sized/.dirs/system-config2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/free-sized/.dirs/config 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/free-sized/.dirs/system-data2 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/free-sized/.dirs/data 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/free-sized/.dirs/state 1136s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-89_NVT9J3/utils/aligned-mem/free-sized/.dirs/runtime 1136s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1136s ok 41 /utils/aligned-mem/free-sized 1136s # Start of subprocess tests 1136s # End of subprocess tests 1136s # End of aligned-mem tests 1136s # End of utils tests 1136s TAP version 14 1136s # random seed: R02S6fd7746f30fa61f1f344add4954c960b 1136s 1..2 1136s # Start of utf8 tests 1136s ok 1 /utf8/utf8-to-utf16-make-valid 1136s ok 2 /utf8/utf8-to-utf16-make-valid-backtrack 1136s # End of utf8 tests 1136s TAP version 14 1136s # random seed: R02S97d7cbb67e3f77df7d872017841de975 1136s 1..2 1136s # Start of atomic tests 1136s ok 1 /atomic/types 1136s ok - glib/atomic.test 1136s # Running test: glib/srvtarget.test 1136s ok 2 /atomic/threaded 1136s # End of atomic tests 1136s TAP version 14 1136s # random seed: R02S58a3f6470a399f520f5eff71e31b848d 1136s 1..1 1136s # Start of srvtarget tests 1137s ok 1 /srvtarget/srv-target-ordering 1137s # slow test /srvtarget/srv-target-ordering executed in 0.77 secs 1137s # End of srvtarget tests 1137s ok - glib/srvtarget.test 1137s # Running test: glib/list.test 1137s TAP version 14 1137s # random seed: R02S9f7256218f7c5faabf7e313fe155b724 1137s 1..20 1137s # Start of list tests 1137s ok 1 /list/sort 1137s ok 2 /list/sort-with-data 1137s ok 3 /list/insert-before-link 1137s ok 4 /list/insert-sorted 1137s ok 5 /list/insert-sorted-with-data 1137s ok 6 /list/reverse 1137s ok 7 /list/nth 1137s ok 8 /list/concat 1137s ok 9 /list/remove 1137s ok 10 /list/remove-all 1137s ok 11 /list/first-last 1137s ok 12 /list/insert 1137s ok 13 /list/free-full 1137s ok 14 /list/copy 1137s ok 15 /list/copy-deep 1137s ok 16 /list/delete-link 1137s ok 17 /list/prepend 1137s ok 18 /list/position 1137s ok 19 /list/double-free 1137s # Start of sort tests 1137s ok 20 /list/sort/stable 1137s # End of sort tests 1137s # End of list tests 1137s ok - glib/list.test 1137s # Running test: glib/application-command-line.test 1137s TAP version 14 1137s # random seed: R02Scdff4ed84f65ec88120190dee4088f65 1137s 1..1 1137s # Start of application-command-line tests 1137s ok 1 /application-command-line/basic-properties 1137s # End of application-command-line tests 1137s ok - glib/application-command-line.test 1137s # Running test: glib/module-test-library.test 1137s TAP version 14 1137s # random seed: R02Sc093af5927dda004fbc0cf5811b01445 1137s 1..3 1137s # Start of module tests 1137s ok 1 /module/basics 1137s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 1137s ok 2 /module/invalid-libtool-archive 1137s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 1137s ok - glib/module-test-library.test 1137s ok 3 /module/local-binding 1137s # End of module tests 1137s # Running test: glib/closure-refcount.test 1137s TAP version 14 1137s # random seed: R02Se64803bc3a5f355b686750e7a3dfb499 1137s 1..1 1137s # Start of closure tests 1137s # Init 0x629e2576db0 1137s # Yielding from main thread 1137s # Yielding from main thread 1137s # Yielding from main thread 1137s # Yielding from main thread 1137s # Yielding from main thread 1137s # Yielding from thread2 1137s # Yielding from main thread 1137s # Yielding from main thread 1137s # Yielding from main thread 1137s # Yielding from main thread 1137s # Yielding from thread1 1137s # Yielding from main thread 1137s # Yielding from main thread 1137s # Yielding from main thread 1137s # Yielding from main thread 1137s # Yielding from thread2 1137s # Yielding from main thread 1137s # Yielding from main thread 1138s # Yielding from main thread 1138s # Executing: glib/closure-refcount.test 1138s # Yielding from main thread 1138s # Yielding from main thread 1138s # Yielding from main thread 1138s # Yielding from thread1 1138s # Yielding from main thread 1138s # Yielding from thread2 1138s # Yielding from main thread 1138s # Yielding from main thread 1138s # Yielding from main thread 1138s # Yielding from main thread 1138s # Yielding from main thread 1138s # Yielding from main thread 1138s # Yielding from thread1 1138s # Yielding from main thread 1138s # Yielding from main thread 1138s # Yielding from thread2 1138s # Yielding from main thread 1138s # Yielding from main thread 1139s # Yielding from main thread 1139s # Yielding from main thread 1139s # Yielding from thread1 1139s # Yielding from main thread 1139s # Yielding from thread2 1139s # Yielding from main thread 1139s # Yielding from main thread 1139s # Yielding from main thread 1139s # Yielding from main thread 1139s # Yielding from main thread 1139s # Yielding from main thread 1139s # Yielding from main thread 1139s # Yielding from thread1 1139s # Yielding from main thread 1139s # Yielding from main thread 1139s # Yielding from main thread 1139s # Yielding from thread2 1139s # Yielding from main thread 1139s # Yielding from main thread 1139s # Yielding from main thread 1139s # Yielding from main thread 1139s # Yielding from thread1 1139s # Yielding from main thread 1140s # Yielding from main thread 1140s # Yielding from main thread 1140s # Yielding from main thread 1140s # Yielding from main thread 1140s # Yielding from main thread 1140s # Yielding from main thread 1140s # Yielding from thread1 1140s # Yielding from main thread 1140s # Yielding from thread2 1140s # Yielding from main thread 1140s # Yielding from main thread 1140s # Yielding from main thread 1140s # Yielding from main thread 1140s # Yielding from main thread 1140s # Yielding from main thread 1140s # Yielding from main thread 1140s # Yielding from thread2 1140s # Yielding from main thread 1140s # Yielding from main thread 1140s # Yielding from thread1 1140s # Yielding from main thread 1140s # Yielding from main thread 1140s # Yielding from main thread 1140s # Yielding from main thread 1141s # Yielding from main thread 1141s # Yielding from main thread 1141s # Yielding from main thread 1141s # Yielding from main thread 1141s # Yielding from thread2 1141s # Yielding from main thread 1141s # Yielding from thread1 1141s # Yielding from main thread 1141s # Yielding from main thread 1141s # Yielding from main thread 1141s # Yielding from main thread 1141s # Yielding from main thread 1141s # Yielding from main thread 1141s # Yielding from main thread 1141s # Yielding from main thread 1141s # Yielding from thread2 1141s # Yielding from main thread 1141s # Yielding from thread1 1141s # Yielding from main thread 1141s # Yielding from main thread 1141s # Yielding from main thread 1141s # Yielding from main thread 1141s # Yielding from main thread 1142s # Yielding from main thread 1142s # Yielding from thread2 1142s # Yielding from main thread 1142s # Yielding from thread1 1142s # Yielding from main thread 1142s # Yielding from main thread 1142s # Yielding from main thread 1142s # Yielding from main thread 1142s # Yielding from main thread 1142s # Yielding from main thread 1142s # Yielding from thread2 1142s # Yielding from main thread 1142s # Yielding from main thread 1142s # Yielding from main thread 1142s # Yielding from main thread 1142s # Stopping 1142s # Stopped 1142s ok 1 /closure/refcount 1142s # slow test /closure/refcount executed in 5.44 secs 1142s # End of closure tests 1142s ok - glib/closure-refcount.test 1142s # Running test: glib/socket-listener.test 1142s TAP version 14 1142s # random seed: R02Sc313c955de89e2a7555fab61b4736ff9 1142s 1..4 1142s # Start of socket-listener tests 1142s ok 1 /socket-listener/event-signal 1142s # Start of accept tests 1142s # /socket-listener/accept/multi-simultaneously summary: Test that accepting multiple pending connections on the same GMainContext iteration works 1142s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3739 1142s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1142s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x192a47f1a510 and GSocketClientAsyncConnectData 0x192a47f15970 1142s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1142s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x192a47f1cb60 and GSocketClientAsyncConnectData 0x192a47f1c9b0 1142s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1142s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x192a47f1d380 and GSocketClientAsyncConnectData 0x192a47f1d100 1142s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1142s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x192a47f1dc00 and GSocketClientAsyncConnectData 0x192a47f1d980 1142s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1142s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x192a47f1e420 and GSocketClientAsyncConnectData 0x192a47f1e1a0 1142s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1142s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1142s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x192a47f20970 for GSocketClientAsyncConnectData 0x192a47f15970 1142s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1142s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1142s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x192a47f22ae0 for GSocketClientAsyncConnectData 0x192a47f1c9b0 1142s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1142s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1142s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x192a47f23290 for GSocketClientAsyncConnectData 0x192a47f1d100 1142s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1142s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1142s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x192a47f23930 for GSocketClientAsyncConnectData 0x192a47f1d980 1142s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1142s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1142s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x192a47f20000 for GSocketClientAsyncConnectData 0x192a47f1e1a0 1142s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1142s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1142s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1142s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1142s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1142s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1142s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1142s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1142s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1142s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1142s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1142s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1142s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1142s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1142s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1142s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1142s ok 2 /socket-listener/accept/multi-simultaneously 1142s # End of accept tests 1142s # Start of add-any-inet-port tests 1142s # /socket-listener/add-any-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 1142s # Test 0 1142s # Test 1 1142s # Test 2 1142s ok - glib/socket-listener.test 1142s # Running test: glib/option-argv0.test 1142s ok - glib/option-argv0.test 1142s # Running test: glib/gdbus-proxy.test 1142s # Test 3 1142s # Test 4 1142s # Test 5 1142s # Test 6 1142s # Test 7 1142s # Test 8 1142s # Test 9 1142s # Test 10 1142s ok 3 /socket-listener/add-any-inet-port/listen-failures 1142s # End of add-any-inet-port tests 1142s # Start of add-inet-port tests 1142s # /socket-listener/add-inet-port/listen-failures summary: Test that adding a listening port succeeds if either listening on IPv4 or IPv6 succeeds 1142s # Test 0 1142s # Test 1 1142s # Test 2 1142s # Test 3 1142s # Test 4 1142s # Test 5 1142s # Test 6 1142s # Test 7 1142s # Test 8 1142s # Test 9 1142s # Test 10 1142s ok 4 /socket-listener/add-inet-port/listen-failures 1142s # End of add-inet-port tests 1142s # End of socket-listener tests 1142s TAP version 14 1142s # random seed: R02S5d09e2adb95329eae163cef400a9dc78 1142s 1..1 1142s # Start of option tests 1142s ok 1 /option/argv0 1142s # End of option tests 1142s TAP version 14 1142s # random seed: R02S205393925691b9e718af5ee29f7a1634 1142s 1..5 1142s # Start of gdbus tests 1142s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/.dirs/home 1142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/.dirs/cache 1142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/.dirs/system-config1:/tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/.dirs/system-config2 1142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/.dirs/config 1142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/.dirs/system-data1:/tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/.dirs/system-data2 1142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/.dirs/data 1142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/.dirs/state 1142s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/.dirs/runtime 1143s # Executing: glib/gdbus-proxy.test 1144s ok 1 /gdbus/proxy 1144s # slow test /gdbus/proxy executed in 1.75 secs 1144s # Start of proxy tests 1144s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-properties/.dirs/home 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-properties/.dirs/cache 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-properties/.dirs/system-config1:/tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-properties/.dirs/system-config2 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-properties/.dirs/config 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-properties/.dirs/system-data1:/tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-properties/.dirs/system-data2 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-properties/.dirs/data 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-properties/.dirs/state 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-properties/.dirs/runtime 1144s ok 2 /gdbus/proxy/no-properties 1144s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/wellknown-noauto/.dirs/home 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/wellknown-noauto/.dirs/cache 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/wellknown-noauto/.dirs/system-config1:/tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/wellknown-noauto/.dirs/system-config2 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/wellknown-noauto/.dirs/config 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/wellknown-noauto/.dirs/system-data1:/tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/wellknown-noauto/.dirs/system-data2 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/wellknown-noauto/.dirs/data 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/wellknown-noauto/.dirs/state 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/wellknown-noauto/.dirs/runtime 1144s ok 3 /gdbus/proxy/wellknown-noauto 1144s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/async/.dirs/home 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/async/.dirs/cache 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/async/.dirs/system-config1:/tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/async/.dirs/system-config2 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/async/.dirs/config 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/async/.dirs/system-data1:/tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/async/.dirs/system-data2 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/async/.dirs/data 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/async/.dirs/state 1144s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/async/.dirs/runtime 1146s ok 4 /gdbus/proxy/async 1146s # slow test /gdbus/proxy/async executed in 1.78 secs 1146s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-match-rule/.dirs/home 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-match-rule/.dirs/cache 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-match-rule/.dirs/system-config1:/tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-match-rule/.dirs/system-config2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-match-rule/.dirs/config 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-match-rule/.dirs/system-data1:/tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-match-rule/.dirs/system-data2 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-match-rule/.dirs/data 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-match-rule/.dirs/state 1146s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy_MAVLK3/gdbus/proxy/no-match-rule/.dirs/runtime 1146s # /gdbus/proxy/no-match-rule summary: Test that G_DBUS_PROXY_FLAGS_NO_MATCH_RULE works 1146s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1109 1147s ok - glib/gdbus-proxy.test 1147s # Running test: glib/references.test 1147s ok 5 /gdbus/proxy/no-match-rule 1147s # slow test /gdbus/proxy/no-match-rule executed in 1.77 secs 1147s # End of proxy tests 1147s # End of gdbus tests 1147s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1147s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1147s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1147s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1147s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1147s TAP version 14 1147s # random seed: R02Sd2fbb7ff4fb032e4551cda0a4b970446 1147s 1..4 1147s # Start of gobject tests 1147s ok 1 /gobject/references 1147s ok 2 /gobject/references-many 1147s ok 3 /gobject/references_two 1148s ok 4 /gobject/references_run_dispose 1148s # End of gobject tests 1148s ok - glib/references.test 1148s # Running test: glib/memory-output-stream.test 1148s TAP version 14 1148s # random seed: R02Seda3803316f097c8c5329fa957cfdecc 1148s 1..10 1148s # Start of memory-output-stream tests 1148s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540423 1148s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=720080 1148s ok 1 /memory-output-stream/truncate 1148s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540459 1148s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=540461 1148s ok 2 /memory-output-stream/get-data-size 1148s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=605733 1148s ok 3 /memory-output-stream/properties 1148s ok 4 /memory-output-stream/write-bytes 1148s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2471 1148s ok 5 /memory-output-stream/write-null 1148s ok 6 /memory-output-stream/writev 1148s ok 7 /memory-output-stream/writev_nonblocking 1148s ok 8 /memory-output-stream/steal_as_bytes 1148s # Start of seek tests 1148s ok 9 /memory-output-stream/seek/fixed 1148s ok - glib/memory-output-stream.test 1148s # Running test: glib/memory-monitor-portal.test 1148s ok 10 /memory-output-stream/seek/resizable 1148s # End of seek tests 1148s # End of memory-output-stream tests 1148s # Executing: glib/memory-monitor-portal.test 1148s TAP version 13 1148s ok 1 __main__.TestLowMemoryMonitorPortal.test_low_memory_warning_portal_signal # SKIP xdg-desktop-portal not available 1148s 1..1 1148s ok - glib/memory-monitor-portal.test 1148s # Running test: glib/task.test 1148s TAP version 14 1148s # random seed: R02S0ec85cef83fada88e94a99dea4e43cc8 1148s 1..36 1148s # Start of gtask tests 1148s ok 1 /gtask/basic 1148s ok 2 /gtask/error 1148s ok 3 /gtask/error-literal 1148s ok 4 /gtask/error-literal-from-variable 1148s ok 5 /gtask/return-from-same-iteration 1148s ok 6 /gtask/return-from-toplevel 1148s ok 7 /gtask/return-from-anon-thread 1148s ok 8 /gtask/return-from-wrong-thread 1148s ok 9 /gtask/no-callback 1148s ok 10 /gtask/report-error 1148s ok 11 /gtask/priority 1148s ok 12 /gtask/name 1148s ok 13 /gtask/static-name 1148s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1608 1148s ok 14 /gtask/asynchronous-cancellation 1148s ok 15 /gtask/check-cancellable 1148s ok 16 /gtask/return-if-cancelled 1148s ok 17 /gtask/run-in-thread 1148s ok 18 /gtask/run-in-thread-sync 1148s ok 19 /gtask/run-in-thread-priority 1148s ok 20 /gtask/run-in-thread-nested 1149s ok 21 /gtask/run-in-thread-overflow 1149s # slow test /gtask/run-in-thread-overflow executed in 0.51 secs 1149s # GLib-GIO-DEBUG: GTask 0x197225af1ef0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1149s # GLib-GIO-DEBUG: GTask 0x197225af1b40 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1149s ok 22 /gtask/return-on-cancel 1149s # GLib-GIO-DEBUG: GTask 0x197225af1750 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1149s # GLib-GIO-DEBUG: GTask 0x197225af14b0 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1149s ok 23 /gtask/return-on-cancel-sync 1149s ok 24 /gtask/return-on-cancel-atomic 1149s ok 25 /gtask/return-pointer 1149s ok 26 /gtask/return-value 1149s ok 27 /gtask/return-prefixed-error 1149s ok 28 /gtask/object-keepalive 1149s ok 29 /gtask/legacy-error 1149s ok 30 /gtask/finalize-without-return 1149s # Start of name tests 1149s ok 31 /gtask/name/macro-wrapper 1149s # End of name tests 1149s # Start of return tests 1149s ok 32 /gtask/return/error-first 1149s ok 33 /gtask/return/value-first 1149s # Start of in-idle tests 1149s ok 34 /gtask/return/in-idle/error-first 1149s ok 35 /gtask/return/in-idle/value-first 1149s # End of in-idle tests 1149s # End of return tests 1149s # Start of attach-source tests 1149s # /gtask/attach-source/set-name summary: Test that attaching a source to a task will set the source’s name if unset 1149s ok 36 /gtask/attach-source/set-name 1149s # End of attach-source tests 1149s # End of gtask tests 1149s ok - glib/task.test 1149s # Running test: glib/scannerapi.test 1149s ok - glib/scannerapi.test 1149s # Running test: glib/atomic-c-17.test 1149s TAP version 14 1149s # random seed: R02S2b8770c261dfb21622958f199b7a45e7 1149s 1..8 1149s # Start of scanner tests 1149s ok 1 /scanner/warn 1149s ok 2 /scanner/error 1149s ok 3 /scanner/symbols 1149s ok 4 /scanner/tokens 1149s ok 5 /scanner/multiline-comment 1149s ok 6 /scanner/int-to-float 1149s ok 7 /scanner/fd-input 1149s # Start of fd-input tests 1149s ok 8 /scanner/fd-input/rewind 1149s # End of fd-input tests 1149s # End of scanner tests 1149s TAP version 14 1149s # random seed: R02Scdd655e68dfe3ff40f58fd063b98d842 1149s 1..2 1149s # Start of atomic tests 1149s ok 1 /atomic/types 1149s ok - glib/atomic-c-17.test 1149s ok 2 /atomic/threaded 1149s # End of atomic tests 1149s # Running test: glib/signals-refcount1.test 1149s TAP version 14 1149s # random seed: R02S923a23b72e3be6f2c1d04998c4c1f41b 1149s 1..1 1149s # Start of gobject tests 1149s # Start of refcount tests 1149s # init 0xb8dd30cd4a0 1149s # 1149s # init 0xb8dd30c5580 1149s # 1153s # Executing: glib/signals-refcount1.test 1154s ok - glib/signals-refcount1.test 1154s # Running test: glib/mimeapps.test 1154s # dispose 0xb8dd30cd4a0! 1154s # 1154s # dispose 0xb8dd30c5580! 1154s # 1154s ok 1 /gobject/refcount/signals 1154s # slow test /gobject/refcount/signals executed in 5.00 secs 1154s # End of refcount tests 1154s # End of gobject tests 1154s TAP version 14 1154s # random seed: R02Sbbc159e889167ce85ddc74176d511422 1154s 1..13 1154s # Start of appinfo tests 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/system-config1:/tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/system-data1:/tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/runtime 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/system-data1/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/system-data1/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/data/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/data/applications/myapp.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/data/applications/myapp2.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/data/applications/myapp3.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/data/applications/myapp4.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/data/applications/myapp5.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/data/applications/nosuchapp.desktop' 1154s # removing '/tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/data/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/data/applications/mimeinfo.cache' 1154s ok 1 /appinfo/all 1154s # Start of mime tests 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/system-config1:/tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/system-data1:/tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/runtime 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/system-data1/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/system-data1/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/data/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/data/applications/myapp.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/data/applications/myapp2.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/data/applications/myapp3.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/data/applications/myapp4.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/data/applications/myapp5.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/data/applications/nosuchapp.desktop' 1154s # removing '/tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/data/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/data/applications/mimeinfo.cache' 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/config 1154s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_8K33J3/appinfo/all/.dirs/config to /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/config 1154s ok 2 /appinfo/mime/api 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/system-config1:/tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/system-data1:/tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/runtime 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/system-data1/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/system-data1/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/data/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/data/applications/myapp.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/data/applications/myapp2.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/data/applications/myapp3.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/data/applications/myapp4.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/data/applications/myapp5.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/data/applications/nosuchapp.desktop' 1154s # removing '/tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/data/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/data/applications/mimeinfo.cache' 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/config 1154s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_8K33J3/appinfo/mime/api/.dirs/config to /tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/config 1154s ok 3 /appinfo/mime/default 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/system-config1:/tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/system-data1:/tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/runtime 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/system-data1/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/system-data1/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/data/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/data/applications/myapp.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/data/applications/myapp2.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/data/applications/myapp3.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/data/applications/myapp4.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/data/applications/myapp5.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/data/applications/nosuchapp.desktop' 1154s # removing '/tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/data/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/data/applications/mimeinfo.cache' 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/config 1154s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_8K33J3/appinfo/mime/default/.dirs/config to /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/config 1154s ok 4 /appinfo/mime/file 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/runtime 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/system-data1/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/system-data1/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/data/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp2.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp3.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp4.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/data/applications/myapp5.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 1154s # removing '/tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/data/applications/mimeinfo.cache' 1154s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_8K33J3/appinfo/mime/file/.dirs/config to /tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/config 1154s ok 5 /appinfo/mime/scheme-handler 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/runtime 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/system-data1/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/system-data1/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/data/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/data/applications/myapp.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/data/applications/myapp2.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/data/applications/myapp3.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/data/applications/myapp4.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/data/applications/myapp5.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/data/applications/nosuchapp.desktop' 1154s # removing '/tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/data/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/data/applications/mimeinfo.cache' 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/config 1154s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_8K33J3/appinfo/mime/scheme-handler/.dirs/config to /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/config 1154s ok 6 /appinfo/mime/default-last-used 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/runtime 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 1154s # removing '/tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 1154s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_8K33J3/appinfo/mime/default-last-used/.dirs/config to /tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/config 1154s ok 7 /appinfo/mime/ignore-nonexisting 1154s # End of mime tests 1154s # Start of mime-symlinked tests 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/system-config1:/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/system-data1:/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/runtime 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/system-data1/applications' 1154s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/system-data1/applications/mimeapps.list.c' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/data/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp2.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp3.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp4.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/data/applications/myapp5.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/data/applications/nosuchapp.desktop' 1154s # removing '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/data/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/data/applications/mimeinfo.cache' 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/config 1154s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_8K33J3/appinfo/mime/ignore-nonexisting/.dirs/config to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/config 1154s ok 8 /appinfo/mime-symlinked/api 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/system-config1:/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/system-data1:/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/runtime 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/system-data1/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/system-data1/applications/mimeapps.list.c' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/data/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp2.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp3.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp4.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/data/applications/myapp5.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/data/applications/nosuchapp.desktop' 1154s # removing '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/data/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/data/applications/mimeinfo.cache' 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/config 1154s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/api/.dirs/config to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/config 1154s ok 9 /appinfo/mime-symlinked/default 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/system-config1:/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/system-data1:/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/runtime 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/system-data1/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/system-data1/applications/mimeapps.list.c' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/data/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp2.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp3.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp4.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/data/applications/myapp5.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/data/applications/nosuchapp.desktop' 1154s # removing '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/data/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/data/applications/mimeinfo.cache' 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/config 1154s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default/.dirs/config to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/config 1154s ok 10 /appinfo/mime-symlinked/file 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/system-config1:/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1:/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/runtime 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/system-data1/applications/mimeapps.list.c' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp2.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp3.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp4.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/myapp5.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/nosuchapp.desktop' 1154s # removing '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/data/applications/mimeinfo.cache' 1154s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/file/.dirs/config to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/config 1154s ok 11 /appinfo/mime-symlinked/scheme-handler 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/system-config1:/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1:/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/runtime 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/system-data1/applications/mimeapps.list.c' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp2.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp3.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp4.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/myapp5.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/nosuchapp.desktop' 1154s # removing '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/data/applications/mimeinfo.cache' 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/config 1154s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/scheme-handler/.dirs/config to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/config 1154s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/config 1154s ok - glib/mimeapps.test 1154s # Running test: glib/1bit-mutex.test 1154s ok 12 /appinfo/mime-symlinked/default-last-used 1154s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/home 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/cache 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-config1:/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-config2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/config 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1:/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data2 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/state 1154s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/runtime 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/system-data1/applications/mimeapps.list.c' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp2.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp3.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp4.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/myapp5.desktop' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/nosuchapp.desktop' 1154s # removing '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/mimeapps.list' 1154s # creating '/tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/data/applications/mimeinfo.cache' 1154s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/default-last-used/.dirs/config to /tmp/test_mimeapps_8K33J3/appinfo/mime-symlinked/ignore-nonexisting/.dirs/config 1154s ok 13 /appinfo/mime-symlinked/ignore-nonexisting 1154s # End of mime-symlinked tests 1154s # End of appinfo tests 1154s TAP version 14 1154s # random seed: R02S592e33e1d820077938dc027e984b610e 1154s 1..2 1154s # Start of glib tests 1154s # Start of 1bit-mutex tests 1158s # Executing: glib/1bit-mutex.test 1159s ok 1 /glib/1bit-mutex/int 1159s # slow test /glib/1bit-mutex/int executed in 4.92 secs 1163s # Executing: glib/1bit-mutex.test 1164s ok 2 /glib/1bit-mutex/pointer 1164s # slow test /glib/1bit-mutex/pointer executed in 5.03 secs 1164s # End of 1bit-mutex tests 1164s # End of glib tests 1164s ok - glib/1bit-mutex.test 1164s # Running test: glib/basics-gobject.test 1164s ok - glib/basics-gobject.test 1164s # Running test: glib/refstring.test 1164s TAP version 14 1164s # random seed: R02Sec1e0c68fa81b1cca86a6b1aa1242470 1164s 1..1 1164s # Start of gobject tests 1164s # private data during initialization: 54321 == 54321 1164s # MAIN: emit test-signal: 1164s # ::test_signal default_handler called 1164s # ::test_signal default_handler called 1164s # ::test_signal default_handler called 1164s # signal return: "" 1164s # MAIN: call iface print-string on test and derived object: 1164s # Iface-FOO: "iface-string-from-test-type" from 0x203e059e870 1164s # Iface-BAR: "iface-string-from-derived-type" from 0x203e059e720 1164s # chaining: 1164s # Iface-FOO: "iface-string-from-derived-type" from 0x203e059e720 1164s # private data after initialization: 54321 == 54321 1164s ok 1 /gobject/basics 1164s # End of gobject tests 1164s TAP version 14 1164s # random seed: R02Sed730790ad6201c0288445ed1487ca7a 1164s 1..8 1164s # Start of refstring tests 1164s # s = 'hello, world' (0x18cbd5b582c0) 1164s ok 1 /refstring/base 1164s ok 2 /refstring/length 1164s ok 3 /refstring/length-auto 1164s ok 4 /refstring/length-nuls 1164s # s = 'hello, world' (0x18cbd5b58160) 1164s # p = s = 'hello, world' (0x18cbd5b58160) 1164s # releasing p[0x18cbd5b58160] ('hello, world') 1164s # p = 'goodbye, world' (0x18cbd5b582c0) 1164s # releasing p[0x18cbd5b582c0] ('goodbye, world') 1164s # releasing s[0x18cbd5b58160] ('hello, world') 1164s ok 5 /refstring/intern 1164s # /refstring/hash_equal summary: Test g_ref_string_equal() in GHashTable 1164s ok 6 /refstring/hash_equal 1164s # /refstring/equal summary: Test g_ref_string_equal() standalone 1164s ok 7 /refstring/equal 1166s ok 8 /refstring/intern-thread-safety 1166s # slow test /refstring/intern-thread-safety executed in 1.73 secs 1166s # End of refstring tests 1166s ok - glib/refstring.test 1166s # Running test: glib/portal-support-flatpak-full.test 1166s ok - glib/portal-support-flatpak-full.test 1166s # Running test: glib/gutils-user-database.test 1166s ok - glib/gutils-user-database.test 1166s # Running test: glib/rcbox.test 1166s TAP version 14 1166s # random seed: R02S4a2396997232b85c3b69dfe9bf7545f7 1166s 1..1 1166s # Start of portal-support tests 1166s # Start of flatpak tests 1166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-full_G28BK3/portal-support/flatpak/full/.dirs/home 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-full_G28BK3/portal-support/flatpak/full/.dirs/cache 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-full_G28BK3/portal-support/flatpak/full/.dirs/system-config1:/tmp/test_portal-support-flatpak-full_G28BK3/portal-support/flatpak/full/.dirs/system-config2 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-full_G28BK3/portal-support/flatpak/full/.dirs/config 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-full_G28BK3/portal-support/flatpak/full/.dirs/system-data1:/tmp/test_portal-support-flatpak-full_G28BK3/portal-support/flatpak/full/.dirs/system-data2 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-full_G28BK3/portal-support/flatpak/full/.dirs/data 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-full_G28BK3/portal-support/flatpak/full/.dirs/state 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-full_G28BK3/portal-support/flatpak/full/.dirs/runtime 1166s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-full_G28BK3/portal-support/flatpak/full/.dirs/runtime/.flatpak-info 1166s ok 1 /portal-support/flatpak/full 1166s # End of flatpak tests 1166s # End of portal-support tests 1166s TAP version 14 1166s # random seed: R02S750ef4d8ffe9f1f35c499a360ccf7ec6 1166s 1..1 1166s # Start of gutils tests 1166s ok 1 /gutils/get_user_database_entry 1166s # End of gutils tests 1166s ok - glib/rcbox.test 1166s # Running test: glib/portal-support-none.test 1166s ok - glib/portal-support-none.test 1166s # Running test: glib/gthash.test 1166s ok - glib/gthash.test 1166s # Running test: glib/gdbus-connection-slow.test 1166s TAP version 14 1166s # random seed: R02S06f559315da98b6022c2e63e8e8ea986 1166s 1..8 1166s # Start of rcbox tests 1166s ok 1 /rcbox/new 1166s # global_point = 0x180ebfc18720 1166s ok 2 /rcbox/release-full 1166s # global_point_a = 0x180ebfc18720 1166s # global_point_b = 0x180ebfc187f0 1166s ok 3 /rcbox/dup 1166s ok 4 /rcbox/alignment 1166s # End of rcbox tests 1166s # Start of atomic-rcbox tests 1166s ok 5 /atomic-rcbox/new 1166s # global_point = 0x180ebfc187f0 1166s ok 6 /atomic-rcbox/release-full 1166s # global_point_a = 0x180ebfc187f0 1166s # global_point_b = 0x180ebfc18720 1166s ok 7 /atomic-rcbox/dup 1166s ok 8 /atomic-rcbox/alignment 1166s # End of atomic-rcbox tests 1166s TAP version 14 1166s # random seed: R02S6eea7030e10b2aabbb767e5c56924411 1166s 1..1 1166s # Start of portal-support tests 1166s ok 1 /portal-support/none 1166s # End of portal-support tests 1166s TAP version 14 1166s # random seed: R02Sb174f52fece3d4b6b3aa6fd7df4459e6 1166s 1..1 1166s # Start of gthash tests 1166s ok 1 /gthash/build-retrieve 1166s # End of gthash tests 1166s TAP version 14 1166s # random seed: R02Saef2cd62241879fa01b944188f57c675 1166s 1..2 1166s # Start of gdbus tests 1166s # Start of connection tests 1166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/flush/.dirs/home 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/flush/.dirs/cache 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/flush/.dirs/system-config1:/tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/flush/.dirs/system-config2 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/flush/.dirs/config 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/flush/.dirs/system-data1:/tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/flush/.dirs/system-data2 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/flush/.dirs/data 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/flush/.dirs/state 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/flush/.dirs/runtime 1166s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1166s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1166s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1166s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1166s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1166s ok 1 /gdbus/connection/flush 1166s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/large_message/.dirs/home 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/large_message/.dirs/cache 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/large_message/.dirs/system-config1:/tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/large_message/.dirs/system-config2 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/large_message/.dirs/config 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/large_message/.dirs/system-data1:/tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/large_message/.dirs/system-data2 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/large_message/.dirs/data 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/large_message/.dirs/state 1166s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-slow_YSXBK3/gdbus/connection/large_message/.dirs/runtime 1166s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1166s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1166s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1166s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1166s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1166s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1166s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1166s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1166s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1166s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1166s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1166s ok 2 /gdbus/connection/large_message 1166s # End of connection tests 1166s # End of gdbus tests 1166s ok - glib/gdbus-connection-slow.test 1166s # Running test: glib/io-stream.test 1166s TAP version 14 1166s # random seed: R02Sdab7877fbf5b02571b0a12784b98c091 1166s 1..3 1166s # Start of io-stream tests 1166s ok 1 /io-stream/copy-chunks 1166s # Start of close tests 1166s # Start of async tests 1166s ok 2 /io-stream/close/async/memory 1166s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1166s ok 3 /io-stream/close/async/file 1166s # End of async tests 1166s # End of close tests 1166s # End of io-stream tests 1166s ok - glib/io-stream.test 1166s # Running test: glib/types.test 1166s ok - glib/types.test 1166s TAP version 14 1166s # random seed: R02S2072c124dc8d3637b0409aba2b53bb47 1166s 1..1 1166s # Start of types tests 1166s ok 1 /types/basic_types 1166s # End of types tests 1166s # Running test: glib/cond.test 1166s TAP version 14 1166s # random seed: R02S11ddc06abff4ad535b65e70bb7589707 1166s 1..4 1166s # Start of thread tests 1166s ok 1 /thread/cond1 1166s ok 2 /thread/cond2 1166s # Start of cond tests 1167s ok 3 /thread/cond/wait-until 1167s # slow test /thread/cond/wait-until executed in 1.02 secs 1167s # Start of wait-until tests 1167s # /thread/cond/wait-until/contended-and-interrupted summary: Check proper handling of errno in g_cond_wait_until with a contended mutex 1167s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/957 1168s # Executing: glib/cond.test 1168s ok - glib/cond.test 1168s # Running test: glib/gnotification.test 1168s ok 4 /thread/cond/wait-until/contended-and-interrupted 1168s # slow test /thread/cond/wait-until/contended-and-interrupted executed in 1.10 secs 1168s # End of wait-until tests 1168s # End of cond tests 1168s # End of thread tests 1168s TAP version 14 1168s # random seed: R02Sc88750c38f1c3ee82a9fafc38db1a4da 1168s 1..2 1168s # Start of gnotification tests 1169s ok 1 /gnotification/basic 1169s ok 2 /gnotification/properties 1169s # End of gnotification tests 1169s ok - glib/gnotification.test 1169s # Running test: glib/closure.test 1169s ok - glib/closure.test 1169s # Running test: glib/filenamecompleter.test 1169s TAP version 14 1169s # random seed: R02S7da7d2a1b4087f5c3446e8fa3619c2db 1169s 1..6 1169s # Start of closure tests 1169s ok 1 /closure/idle 1169s ok 2 /closure/timeout 1169s ok 3 /closure/iochannel 1169s ok 4 /closure/child 1169s ok 5 /closure/fd 1169s ok 6 /closure/signal 1169s # End of closure tests 1169s TAP version 14 1169s # random seed: R02S129a16b52a58b148de0ec135a056af2c 1169s 1..1 1169s # Start of filenamecompleter tests 1169s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_filenamecompleter_6MEJK3/filenamecompleter/basic/.dirs/home 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_filenamecompleter_6MEJK3/filenamecompleter/basic/.dirs/cache 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_filenamecompleter_6MEJK3/filenamecompleter/basic/.dirs/system-config1:/tmp/test_filenamecompleter_6MEJK3/filenamecompleter/basic/.dirs/system-config2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_filenamecompleter_6MEJK3/filenamecompleter/basic/.dirs/config 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_filenamecompleter_6MEJK3/filenamecompleter/basic/.dirs/system-data1:/tmp/test_filenamecompleter_6MEJK3/filenamecompleter/basic/.dirs/system-data2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_filenamecompleter_6MEJK3/filenamecompleter/basic/.dirs/data 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_filenamecompleter_6MEJK3/filenamecompleter/basic/.dirs/state 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_filenamecompleter_6MEJK3/filenamecompleter/basic/.dirs/runtime 1169s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1169s ok 1 /filenamecompleter/basic 1169s # End of filenamecompleter tests 1169s ok - glib/filenamecompleter.test 1169s TAP version 14 1169s # random seed: R02S8235f91f6a7a26519899feac7aa2d666 1169s 1..10 1169s # Start of timer tests 1169s ok 1 /timer/basic # SKIP Not reliable due to floating-point rounding (glib#820) 1169s ok 2 /timer/stop 1169s ok 3 /timer/continue 1169s ok 4 /timer/reset 1169s ok 5 /timer/is_active 1169s # End of timer tests 1169s # Start of timeval tests 1169s ok 6 /timeval/add 1169s ok 7 /timeval/from-iso8601 1169s ok 8 /timeval/to-iso8601 1169s # Start of to-iso8601 tests 1169s ok 9 /timeval/to-iso8601/overflow 1169s # End of to-iso8601 tests 1169s # End of timeval tests 1169s # Start of usleep tests 1169s ok 10 /usleep/with-zero-wait 1169s # End of usleep tests 1169s # Running test: glib/timer.test 1169s ok - glib/timer.test 1169s # Running test: glib/binding.test 1169s TAP version 14 1169s # random seed: R02Sb0338db32be5c1e4b9e6e96dd4c9d0d1 1169s 1..19 1169s # Start of binding tests 1169s ok 1 /binding/default 1169s # /binding/canonicalisation summary: Test that bindings set up with non-canonical property names work 1169s ok 2 /binding/canonicalisation 1169s ok 3 /binding/bidirectional 1169s ok 4 /binding/transform 1169s ok 5 /binding/transform-default 1169s ok 6 /binding/transform-closure 1169s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=621782 1169s ok 7 /binding/chain 1169s ok 8 /binding/sync-create 1169s ok 9 /binding/invert-boolean 1169s ok 10 /binding/same-object 1169s ok 11 /binding/unbind 1169s ok 12 /binding/unbind-weak 1169s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1373 1169s ok 13 /binding/unbind-multiple 1169s ok 14 /binding/fail 1169s ok 15 /binding/interface 1169s # /binding/concurrent-unbind summary: Test that unbinding from multiple threads concurrently works correctly 1169s ok 16 /binding/concurrent-unbind 1169s # /binding/concurrent-finalizing summary: Test that finalizing source/target from multiple threads concurrently works correctly 1169s ok 17 /binding/concurrent-finalizing 1169s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1169s ok 18 /binding/dispose-source 1169s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2676 1169s ok 19 /binding/dispose-target 1169s # End of binding tests 1169s ok - glib/binding.test 1169s # Running test: glib/properties.test 1169s TAP version 14 1169s # random seed: R02Sa36930868a69cb47c95da80859670f4b 1169s 1..14 1169s # Start of properties tests 1169s ok 1 /properties/install 1169s ok 2 /properties/install-many 1169s ok 3 /properties/notify 1169s ok 4 /properties/notify-queue 1169s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=630357 1169s ok 5 /properties/construct 1169s # /properties/get-property summary: g_object_get_property() accepts uninitialized, initialized, and transformable values 1169s # Test g_object_get_property with an initialized value 1169s # Test g_object_get_property with an uninitialized value 1169s # Test g_object_get_property with a transformable value 1169s ok 6 /properties/get-property 1169s ok 7 /properties/testv_with_no_properties 1169s ok 8 /properties/testv_with_valid_properties 1169s ok 9 /properties/testv_with_invalid_property_type 1169s ok 10 /properties/testv_with_invalid_property_names 1169s ok 11 /properties/testv_getv 1169s ok 12 /properties/testv_notify_queue 1169s # Start of notify tests 1169s ok - glib/properties.test 1169s # Running test: glib/642026-ec.test 1169s ok 13 /properties/notify/too-many-freezes 1169s # End of notify tests 1169s # Start of set-property tests 1169s # Start of variant tests 1169s # /properties/set-property/variant/floating summary: Test that setting a property to a floating variant consumes the reference 1169s ok 14 /properties/set-property/variant/floating 1169s # End of variant tests 1169s # End of set-property tests 1169s # End of properties tests 1169s TAP version 14 1169s # random seed: R02S6a46a2f00fba808c601f90163eb9a84c 1169s 1..1 1169s # Start of glib tests 1169s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642026 1169s ok 1 /glib/642026 1169s # End of glib tests 1169s ok - glib/642026-ec.test 1169s # Running test: glib/assert-msg-test.py.test 1169s ok - glib/assert-msg-test.py.test 1169s # Running test: glib/utils-isolated.test 1169s TAP version 13 1169s ok 1 __main__.TestAssertMessage.test_gassert 1169s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1169s # tmpdir: /tmp/tmpzovfzsk9 1169s # Running: ['/usr/libexec/installed-tests/glib/assert-msg-test'] 1169s # Return code: -6 1169s # Output: 1169s # Bail out! GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1169s # Error: 1169s # ** 1169s # GLib:ERROR:../../../glib/tests/assert-msg-test.c:31:main: assertion failed: (42 < 0) 1169s ok 2 __main__.TestAssertMessage.test_gdb_gassert # SKIP GDB is not installed, skipping this test! 1169s # assert-msg-test: /usr/libexec/installed-tests/glib/assert-msg-test 1169s # tmpdir: /tmp/tmplm5v6rpn 1169s 1..2 1169s TAP version 14 1169s # random seed: R02S1cffc4f8c72fdecccf297b6c3a6b0559 1169s 1..11 1169s # Start of utils-isolated tests 1169s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/tmp-dir/.dirs/home 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/tmp-dir/.dirs/cache 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/tmp-dir/.dirs/system-config1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/tmp-dir/.dirs/system-config2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/tmp-dir/.dirs/config 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/tmp-dir/.dirs/system-data1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/tmp-dir/.dirs/system-data2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/tmp-dir/.dirs/data 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/tmp-dir/.dirs/state 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/tmp-dir/.dirs/runtime 1169s ok 1 /utils-isolated/tmp-dir 1169s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/home-dir/.dirs/home 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/home-dir/.dirs/cache 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/home-dir/.dirs/system-config1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/home-dir/.dirs/system-config2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/home-dir/.dirs/config 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/home-dir/.dirs/system-data1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/home-dir/.dirs/system-data2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/home-dir/.dirs/data 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/home-dir/.dirs/state 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/home-dir/.dirs/runtime 1169s ok 2 /utils-isolated/home-dir 1169s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-cache-dir/.dirs/home 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-cache-dir/.dirs/cache 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-cache-dir/.dirs/system-config1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-cache-dir/.dirs/system-config2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-cache-dir/.dirs/config 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-cache-dir/.dirs/system-data1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-cache-dir/.dirs/system-data2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-cache-dir/.dirs/data 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-cache-dir/.dirs/state 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-cache-dir/.dirs/runtime 1169s ok 3 /utils-isolated/user-cache-dir 1169s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-config-dirs/.dirs/home 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-config-dirs/.dirs/cache 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-config-dirs/.dirs/system-config1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-config-dirs/.dirs/system-config2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-config-dirs/.dirs/config 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-config-dirs/.dirs/system-data1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-config-dirs/.dirs/system-data2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-config-dirs/.dirs/data 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-config-dirs/.dirs/state 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-config-dirs/.dirs/runtime 1169s ok 4 /utils-isolated/system-config-dirs 1169s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-config-dir/.dirs/home 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-config-dir/.dirs/cache 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-config-dir/.dirs/system-config1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-config-dir/.dirs/system-config2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-config-dir/.dirs/config 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-config-dir/.dirs/system-data1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-config-dir/.dirs/system-data2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-config-dir/.dirs/data 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-config-dir/.dirs/state 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-config-dir/.dirs/runtime 1169s ok 5 /utils-isolated/user-config-dir 1169s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-data-dirs/.dirs/home 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-data-dirs/.dirs/cache 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-data-dirs/.dirs/system-config1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-data-dirs/.dirs/system-config2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-data-dirs/.dirs/config 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-data-dirs/.dirs/system-data1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-data-dirs/.dirs/system-data2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-data-dirs/.dirs/data 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-data-dirs/.dirs/state 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/system-data-dirs/.dirs/runtime 1169s ok 6 /utils-isolated/system-data-dirs 1169s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-data-dir/.dirs/home 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-data-dir/.dirs/cache 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-data-dir/.dirs/system-config1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-data-dir/.dirs/system-config2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-data-dir/.dirs/config 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-data-dir/.dirs/system-data1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-data-dir/.dirs/system-data2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-data-dir/.dirs/data 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-data-dir/.dirs/state 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-data-dir/.dirs/runtime 1169s ok 7 /utils-isolated/user-data-dir 1169s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-state-dir/.dirs/home 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-state-dir/.dirs/cache 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-state-dir/.dirs/system-config1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-state-dir/.dirs/system-config2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-state-dir/.dirs/config 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-state-dir/.dirs/system-data1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-state-dir/.dirs/system-data2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-state-dir/.dirs/data 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-state-dir/.dirs/state 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-state-dir/.dirs/runtime 1169s ok 8 /utils-isolated/user-state-dir 1169s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-runtime-dir/.dirs/home 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-runtime-dir/.dirs/cache 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-runtime-dir/.dirs/system-config1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-runtime-dir/.dirs/system-config2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-runtime-dir/.dirs/config 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-runtime-dir/.dirs/system-data1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-runtime-dir/.dirs/system-data2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-runtime-dir/.dirs/data 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-runtime-dir/.dirs/state 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/user-runtime-dir/.dirs/runtime 1169s ok 9 /utils-isolated/user-runtime-dir 1169s # Start of cleanup tests 1169s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/handles-errors/.dirs/home 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/handles-errors/.dirs/cache 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/handles-errors/.dirs/system-config1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/handles-errors/.dirs/system-config2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/handles-errors/.dirs/config 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/handles-errors/.dirs/system-data1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/handles-errors/.dirs/system-data2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/handles-errors/.dirs/data 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/handles-errors/.dirs/state 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/handles-errors/.dirs/runtime 1169s Unable to clean up temporary directory /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/handles-errors/.dirs/runtime: Directory not empty 1169s Unable to clean up temporary directory /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/handles-errors/.dirs: Directory not empty 1169s Unable to clean up temporary directory /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/handles-errors: Directory not empty 1169s ok 10 /utils-isolated/cleanup/handles-errors 1169s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/home 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/cache 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-config2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/config 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data1:/tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/system-data2 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/data 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/state 1169s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/doesnt-follow-symlinks/.dirs/runtime 1169s Unable to clean up temporary directory /tmp/test_utils-isolated_YBJ9J3/utils-isolated/cleanup/doesnt-follow-symlinks: No such file or directory 1169s ok 11 /utils-isolated/cleanup/doesnt-follow-symlinks 1169s # End of cleanup tests 1169s # End of utils-isolated tests 1169s ok - glib/utils-isolated.test 1169s # Running test: glib/properties-refcount2.test 1169s TAP version 14 1169s # random seed: R02S224540a9212b61a262947542fc125e36 1169s 1..1 1169s # Start of gobject tests 1169s # Start of refcount tests 1169s # init 0x1c0233ff4eb0 1169s # 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1169s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1170s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # . 1171s # dispose 0x1c0233ff4eb0! 1171s # 1171s ok 1 /gobject/refcount/properties-2 1171s # slow test /gobject/refcount/properties-2 executed in 2.79 secs 1171s # End of refcount tests 1171s # End of gobject tests 1171s ok - glib/properties-refcount2.test 1171s # Running test: glib/properties-refcount1.test 1171s TAP version 14 1171s # random seed: R02Sb6b16e1b83a6e4f7c6cb798ed2c45903 1171s 1..1 1171s # Start of gobject tests 1171s # Start of refcount tests 1172s # .b 1172s # .e 1172s # .c 1172s # .d 1172s # .f 1172s # .b 1172s # .e 1172s # .c 1172s # .d 1172s # .f 1172s # .e 1172s # .b 1172s # .c 1172s # .d 1172s # .f 1172s # .e 1172s # .b 1172s # .d 1172s # .c 1172s # .f 1172s # .e 1172s # .d 1172s # .f 1172s # .b 1172s # .c 1172s # .f 1172s # .d 1172s # .e 1172s # .b 1172s # .c 1172s # .f 1172s # .d 1172s # .b 1172s # .e 1172s # .b 1172s # .f 1172s # .c 1172s # .d 1172s # .b 1172s # .e 1173s # .f 1173s # .d 1173s # .c 1173s # .b 1173s # Executing: glib/properties-refcount1.test 1173s # .e 1173s # .f 1173s # .b 1173s # .d 1173s # .c 1173s # .f 1173s # .e 1173s # .b 1173s # .d 1173s # .f 1173s # .c 1173s # .b 1173s # .e 1173s # .f 1173s # .d 1173s # .c 1173s # .b 1173s # .e 1173s # .f 1173s # .b 1173s # .d 1173s # .f 1173s # .c 1173s # .e 1173s # .b 1173s # .d 1173s # .b 1173s # .f 1173s # .e 1173s # .c 1173s # .b 1173s # .d 1173s # .f 1173s # .c 1173s # .e 1173s # .b 1173s # .d 1174s # .e 1174s # .c 1174s # .f 1174s # .b 1174s # .d 1174s # .e 1174s # .f 1174s # .c 1174s # .e 1174s # .b 1174s # .e 1174s # .d 1174s # .f 1174s # .c 1174s # .e 1174s # .b 1174s # .c 1174s # .d 1174s # .f 1174s # .e 1174s # .b 1174s # .d 1174s # .f 1174s # .c 1174s # .b 1174s # .e 1174s # .d 1174s # .f 1174s # .c 1174s # .b 1174s # .e 1174s # .d 1174s # .f 1174s # .e 1174s # .c 1174s # .f 1174s # .e 1174s # .b 1174s # .d 1174s # .c 1174s ok - glib/properties-refcount1.test 1174s # Running test: glib/spawn-path-search.test 1174s ok 1 /gobject/refcount/properties-1 1174s # slow test /gobject/refcount/properties-1 executed in 3.00 secs 1174s # End of refcount tests 1174s # End of gobject tests 1174s TAP version 14 1174s # random seed: R02S8410b6bff8372e7f06b3f61b6448fec0 1174s 1..7 1174s # Start of spawn tests 1174s # /spawn/do-not-search summary: Without G_SPAWN_SEARCH_PATH, spawn-test-helper means ./spawn-test-helper. 1174s # 1174s # this is spawn-test-helper from glib/tests 1174s # 1174s ok 1 /spawn/do-not-search 1174s # /spawn/search-path summary: With G_SPAWN_SEARCH_PATH, spawn-test-helper means $PATH/spawn-test-helper. 1174s # 1174s # this is spawn-test-helper from path-test-subdir 1174s # 1174s ok 2 /spawn/search-path 1174s # /spawn/search-path-from-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP, spawn-test-helper means $PATH/spawn-test-helper with $PATH from envp. 1174s # 1174s # this is spawn-test-helper from path-test-subdir 1174s # 1174s ok 3 /spawn/search-path-from-envp 1174s # /spawn/search-path-ambiguous summary: With G_SPAWN_SEARCH_PATH and G_SPAWN_SEARCH_PATH_FROM_ENVP, the latter wins. 1174s # 1174s # this is spawn-test-helper from path-test-subdir 1174s # 1174s ok 4 /spawn/search-path-ambiguous 1174s # 1174s # this is spawn-test-helper from path-test-subdir 1174s # 1174s ok 5 /spawn/search-path-heap-allocation 1174s # /spawn/search-path-fallback-in-environ summary: With G_SPAWN_SEARCH_PATH but no PATH, a fallback is used. 1175s # 1175s # this is spawn-test-helper from glib/tests 1175s # 1175s ok 6 /spawn/search-path-fallback-in-environ 1175s # /spawn/search-path-fallback-in-envp summary: With G_SPAWN_SEARCH_PATH_FROM_ENVP but no PATH, a fallback is used. 1175s # 1175s # this is spawn-test-helper from glib/tests 1175s # 1175s ok 7 /spawn/search-path-fallback-in-envp 1175s # End of spawn tests 1175s ok - glib/spawn-path-search.test 1175s # Running test: glib/flags.test 1175s ok - glib/flags.test 1175s # Running test: glib/volumemonitor.test 1175s TAP version 14 1175s # random seed: R02Sb27263ac5ebf22fcb3b28f230a517ad9 1175s 1..1 1175s # Start of gobject tests 1175s # Start of flags tests 1175s ok 1 /gobject/flags/validate 1175s # End of flags tests 1175s # End of gobject tests 1175s TAP version 14 1175s # random seed: R02S5e25dab9890b4adcb387df931868feb5 1175s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1175s 1..3 1175s # Start of volumemonitor tests 1175s ok 1 /volumemonitor/connected_drives 1175s ok 2 /volumemonitor/volumes 1175s ok 3 /volumemonitor/mounts 1175s # End of volumemonitor tests 1175s TAP version 14 1175s # random seed: R02S057d2e5fe4f9b6773999e41dbe458b55 1175s 1..2 1175s # Start of gdbus tests 1175s ok 1 /gdbus/x11-autolaunch 1175s ok - glib/volumemonitor.test 1175s # Running test: glib/gdbus-address-get-session.test 1175s ok - glib/gdbus-address-get-session.test 1175s # Running test: glib/proxy-test.test 1175s ok 2 /gdbus/xdg-runtime 1175s # End of gdbus tests 1175s TAP version 14 1175s # random seed: R02Saa1d56e561f72f7bc4068e091d23d309 1175s 1..11 1175s # Start of proxy tests 1175s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestProxyResolver) for ‘gio-proxy-resolver’ 1175s ok 1 /proxy/direct_sync 1175s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1175s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x63718f0df20 and GSocketClientAsyncConnectData 0x63718f0d440 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1175s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x63718f0ea40 for GSocketClientAsyncConnectData 0x63718f0d440 1175s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1175s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1175s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1175s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1175s ok 2 /proxy/direct_async 1175s ok 3 /proxy/single_sync 1175s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1175s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x63718f0e500 and GSocketClientAsyncConnectData 0x63718f0d440 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1175s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x63718f0fba0 for GSocketClientAsyncConnectData 0x63718f0d440 1175s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1175s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1175s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1175s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1175s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1175s ok 4 /proxy/single_async 1175s ok 5 /proxy/multiple_sync 1175s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1175s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x63718f0e7f0 and GSocketClientAsyncConnectData 0x63718f0e780 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1175s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x63718f100e0 for GSocketClientAsyncConnectData 0x63718f0e780 1175s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1175s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1175s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1175s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1175s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x63718f10080 for GSocketClientAsyncConnectData 0x63718f0e780 1175s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1175s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1175s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1175s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1175s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1175s ok 6 /proxy/multiple_async 1175s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1175s ok 7 /proxy/invalid-uris-sync 1175s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2597 1175s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1175s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x63718f0e3e0 and GSocketClientAsyncConnectData 0x63718f10270 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1175s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1175s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1175s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x63718f0e500 and GSocketClientAsyncConnectData 0x63718f0e780 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Unspecified proxy lookup failure 1175s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unspecified proxy lookup failure 1175s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1175s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x63718f0e3e0 and GSocketClientAsyncConnectData 0x63718f10270 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1175s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x63718f0eaa0 for GSocketClientAsyncConnectData 0x63718f10270 1175s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1175s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1175s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1175s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1175s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1175s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x63718f0e500 and GSocketClientAsyncConnectData 0x63718f10270 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1175s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x63718f102e0 for GSocketClientAsyncConnectData 0x63718f10270 1175s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1175s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1175s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1175s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1175s ok 8 /proxy/invalid-uris-async 1175s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1175s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x63718f0df20 and GSocketClientAsyncConnectData 0x63718f10270 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: IPv6 DNS error: Not found 1175s # GLib-GIO-DEBUG: IPv4 DNS error: Not found 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: Not found 1175s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Not found 1175s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1175s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x63718f10400 and GSocketClientAsyncConnectData 0x63718f0e990 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1175s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x63718f0fa00 for GSocketClientAsyncConnectData 0x63718f0e990 1175s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1175s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1175s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1175s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1175s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1175s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1175s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x63718f0e3e0 and GSocketClientAsyncConnectData 0x63718f0e780 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1175s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x63718f0eaa0 for GSocketClientAsyncConnectData 0x63718f0e780 1175s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1175s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1175s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1175s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1175s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1175s ok 9 /proxy/dns 1175s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1175s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x63718f0df20 and GSocketClientAsyncConnectData 0x63718f0e780 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1175s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x63718f0eaa0 for GSocketClientAsyncConnectData 0x63718f0e780 1175s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1175s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1175s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1175s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1175s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1175s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1175s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x63718f0e3e0 and GSocketClientAsyncConnectData 0x63718f0e5c0 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1175s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x63718f0fa00 for GSocketClientAsyncConnectData 0x63718f0e5c0 1175s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1175s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1175s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1175s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1175s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1175s # GLib-GIO-DEBUG: g_socket_client_connect_to_uri_async 1175s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x63718f0df20 and GSocketClientAsyncConnectData 0x63718f10270 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1175s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x63718f100e0 for GSocketClientAsyncConnectData 0x63718f10270 1175s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1175s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1175s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1175s # GLib-GIO-DEBUG: GSocketClient: Starting proxy connection 1175s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration completed (out of addresses) 1175s # GLib-GIO-DEBUG: GSocketClient: Address enumeration failed: (null) 1175s # GLib-GIO-DEBUG: GSocketClient: Connection failed: Unsupported protocol 1175s ok 10 /proxy/override 1175s ok 11 /proxy/enumerator-ports 1175s # End of proxy tests 1175s ok - glib/proxy-test.test 1175s # Running test: glib/gdbus-connection.test 1175s TAP version 14 1175s # random seed: R02Scd442d8184967f806cc8a367b9cb5d04 1175s 1..9 1175s # Start of gdbus tests 1175s # Start of connection tests 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/bus-failure/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/bus-failure/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/bus-failure/.dirs/system-config1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/bus-failure/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/bus-failure/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/bus-failure/.dirs/system-data1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/bus-failure/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/bus-failure/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/bus-failure/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/bus-failure/.dirs/runtime 1175s ok 1 /gdbus/connection/bus-failure 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/basic/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/basic/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/basic/.dirs/system-config1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/basic/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/basic/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/basic/.dirs/system-data1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/basic/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/basic/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/basic/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/basic/.dirs/runtime 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s ok 2 /gdbus/connection/basic 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/life-cycle/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/life-cycle/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/life-cycle/.dirs/system-config1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/life-cycle/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/life-cycle/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/life-cycle/.dirs/system-data1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/life-cycle/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/life-cycle/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/life-cycle/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/life-cycle/.dirs/runtime 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s ok 3 /gdbus/connection/life-cycle 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/send/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/send/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/send/.dirs/system-config1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/send/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/send/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/send/.dirs/system-data1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/send/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/send/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/send/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/send/.dirs/runtime 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s ok 4 /gdbus/connection/send 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signals/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signals/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signals/.dirs/system-config1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signals/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signals/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signals/.dirs/system-data1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signals/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signals/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signals/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signals/.dirs/runtime 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s ok 5 /gdbus/connection/signals 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signal-match-rules/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signal-match-rules/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signal-match-rules/.dirs/system-config1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signal-match-rules/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signal-match-rules/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signal-match-rules/.dirs/system-data1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signal-match-rules/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signal-match-rules/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signal-match-rules/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/signal-match-rules/.dirs/runtime 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s ok 6 /gdbus/connection/signal-match-rules 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/filter/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/filter/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/filter/.dirs/system-config1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/filter/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/filter/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/filter/.dirs/system-data1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/filter/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/filter/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/filter/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/filter/.dirs/runtime 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s ok 7 /gdbus/connection/filter 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/serials/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/serials/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/serials/.dirs/system-config1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/serials/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/serials/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/serials/.dirs/system-data1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/serials/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/serials/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/serials/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/serials/.dirs/runtime 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s ok 8 /gdbus/connection/serials 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/cancel/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/cancel/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/cancel/.dirs/system-config1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/cancel/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/cancel/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/cancel/.dirs/system-data1:/tmp/test_gdbus-connection_QFWIK3/gdbus/connection/cancel/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/cancel/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/cancel/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection_QFWIK3/gdbus/connection/cancel/.dirs/runtime 1175s # /gdbus/connection/cancel summary: Test that cancelling one of two racing g_bus_get() calls does not cancel the other one 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s ok 9 /gdbus/connection/cancel 1175s # End of connection tests 1175s # End of gdbus tests 1175s TAP version 14 1175s # random seed: R02Sb00f7b6052bf3e2442a7d377cacff670 1175s ok - glib/gdbus-connection.test 1175s # Running test: glib/gdbus-connection-loss.test 1175s 1..1 1175s # Start of gdbus tests 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-loss_PLNAK3/gdbus/connection-loss/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-loss_PLNAK3/gdbus/connection-loss/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-loss_PLNAK3/gdbus/connection-loss/.dirs/system-config1:/tmp/test_gdbus-connection-loss_PLNAK3/gdbus/connection-loss/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-loss_PLNAK3/gdbus/connection-loss/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-loss_PLNAK3/gdbus/connection-loss/.dirs/system-data1:/tmp/test_gdbus-connection-loss_PLNAK3/gdbus/connection-loss/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-loss_PLNAK3/gdbus/connection-loss/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-loss_PLNAK3/gdbus/connection-loss/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-loss_PLNAK3/gdbus/connection-loss/.dirs/runtime 1175s ok 1 /gdbus/connection-loss 1175s # End of gdbus tests 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s ok - glib/gdbus-connection-loss.test 1175s # Running test: glib/markup.test 1175s TAP version 14 1175s # random seed: R02Se5b82894a140891e4957fefede731599 1175s 1..1 1175s # Start of markup tests 1175s ok 1 /markup/stack 1175s # End of markup tests 1175s TAP version 14 1175s # random seed: R02Sc4b6637ffd597cda74295a22c5472ef4 1175s 1..4 1175s # Start of C tests 1175s ok 1 /C/standard-17 1175s # End of C tests 1175s # Start of alignof tests 1175s ok 2 /alignof/fallback 1175s # End of alignof tests 1175s # Start of assert tests 1175s ok 3 /assert/static 1175s # End of assert tests 1175s # Start of struct tests 1175s ok 4 /struct/sizeof_member 1175s # End of struct tests 1175s ok - glib/markup.test 1175s # Running test: glib/macros-c-17.test 1175s ok - glib/macros-c-17.test 1175s # Running test: glib/bytes.test 1175s ok - glib/bytes.test 1175s # Running test: glib/gdbus-introspection.test 1175s TAP version 14 1175s # random seed: R02S5d2053339162d95e9ba72041987581ec 1175s 1..21 1175s # Start of bytes tests 1175s ok 1 /bytes/new 1175s ok 2 /bytes/new-take 1175s ok 3 /bytes/new-static 1175s ok 4 /bytes/new-with-free-func 1175s ok 5 /bytes/new-from-bytes 1175s ok 6 /bytes/new-from-bytes-slice 1175s ok 7 /bytes/new-from-bytes-shared-ref 1175s ok 8 /bytes/hash 1175s ok 9 /bytes/equal 1175s ok 10 /bytes/compare 1175s ok 11 /bytes/null 1175s ok 12 /bytes/get-region 1175s # /bytes/unref-null summary: Test that calling g_bytes_unref() on NULL is a no-op 1175s ok 13 /bytes/unref-null 1175s # Start of to-data tests 1175s ok 14 /bytes/to-data/transferred 1175s ok 15 /bytes/to-data/two-refs 1175s ok 16 /bytes/to-data/non-malloc 1175s ok 17 /bytes/to-data/different-free-func 1175s # End of to-data tests 1175s # Start of to-array tests 1175s ok 18 /bytes/to-array/transferred 1175s ok 19 /bytes/to-array/two-refs 1175s ok 20 /bytes/to-array/non-malloc 1175s # Start of transferred tests 1175s # g_bytes_unref_to_array() can only take GBytes up to G_MAXUINT in length; test that longer ones are rejected 1175s ok 21 /bytes/to-array/transferred/oversize 1175s # End of transferred tests 1175s # End of to-array tests 1175s # End of bytes tests 1175s TAP version 14 1175s # random seed: R02S513d184a3a7a231bb9dc3ed25c1fc54c 1175s 1..4 1175s # Start of gdbus tests 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-parser/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-parser/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-parser/.dirs/system-config1:/tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-parser/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-parser/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-parser/.dirs/system-data1:/tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-parser/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-parser/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-parser/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-parser/.dirs/runtime 1175s ok - glib/gdbus-introspection.test 1175s # Running test: glib/cancellable.test 1175s ok 1 /gdbus/introspection-parser 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-generate/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-generate/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-generate/.dirs/system-config1:/tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-generate/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-generate/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-generate/.dirs/system-data1:/tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-generate/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-generate/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-generate/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-generate/.dirs/runtime 1175s ok 2 /gdbus/introspection-generate 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-default-direction/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-default-direction/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-default-direction/.dirs/system-config1:/tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-default-direction/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-default-direction/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-default-direction/.dirs/system-data1:/tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-default-direction/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-default-direction/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-default-direction/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-default-direction/.dirs/runtime 1175s ok 3 /gdbus/introspection-default-direction 1175s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-extra-data/.dirs/home 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-extra-data/.dirs/cache 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-extra-data/.dirs/system-config1:/tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-extra-data/.dirs/system-config2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-extra-data/.dirs/config 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-extra-data/.dirs/system-data1:/tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-extra-data/.dirs/system-data2 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-extra-data/.dirs/data 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-extra-data/.dirs/state 1175s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-introspection_98DDK3/gdbus/introspection-extra-data/.dirs/runtime 1175s ok 4 /gdbus/introspection-extra-data 1175s # End of gdbus tests 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1175s TAP version 14 1175s # random seed: R02S5ae98285f7e447fb733569f9ed6e8cb5 1175s 1..18 1175s # Start of cancellable tests 1175s ok 1 /cancellable/multiple-concurrent # SKIP Not running timing heavy test 1175s ok 2 /cancellable/null 1175s ok 3 /cancellable/connect-data-is-destroyed-on-disconnect-and-dispose 1175s # /cancellable/connect-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1175s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1175s ok 4 /cancellable/connect-to-disposing-callback 1175s ok 5 /cancellable/connect-cancelled-data-is-destroyed 1175s # Toggle reference callback for GCancellable (0x17ec9de8ec00), last: 1 1175s # Toggle reference callback for GCancellable (0x17ec9de8ec00), last: 0 1175s # Toggle reference callback for GCancellable (0x17ec9de8ec00), last: 1 1175s ok 6 /cancellable/connect-to-disposing-callback-with-toggle-reference 1175s # /cancellable/connect-cancelled-to-disposing-callback summary: A cancellable signal callback can unref the cancellable 1175s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3643 1175s ok 7 /cancellable/connect-cancelled-to-disposing-callback 1175s ok 8 /cancellable/connect-cancelled-with-destroy-func-disposing-cancellable 1175s # Toggle reference callback for GCancellable (0x17ec9de8ec00), last: 1 1175s # Toggle reference callback for GCancellable (0x17ec9de8ec00), last: 0 1175s # Toggle reference callback for GCancellable (0x17ec9de8ec00), last: 1 1175s # Toggle reference callback for GCancellable (0x17ec9de8ec00), last: 0 1175s # Toggle reference callback for GCancellable (0x17ec9de8ec00), last: 1 1175s ok 9 /cancellable/connect-cancelled-to-disposing-callback-with-toggle-reference 1175s # /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 1175s ok 10 /cancellable/disconnect-on-cancelled-callback-hangs 1175s # /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 1175s ok 11 /cancellable/resets-on-cancel-callback-hangs 1175s ok 12 /cancellable/poll-fd 1175s # /cancellable/poll-fd-cancelled summary: Tests that cancellation wakes up a pollable FD on creation 1175s ok 13 /cancellable/poll-fd-cancelled 1175s # /cancellable/poll-fd-cancelled-threaded summary: Tests that a cancellation wakes up a pollable FD 1175s ok 14 /cancellable/poll-fd-cancelled-threaded 1175s # /cancellable/cancel-reset-races summary: Tests threads racing for cancelling and resetting a GCancellable 1175s ok 15 /cancellable/cancel-reset-races 1175s # /cancellable/cancel-reset-connect-races summary: Tests threads racing for cancelling, connecting and disconnecting and resetting a GCancellable 1175s ok 16 /cancellable/cancel-reset-connect-races 1175s # End of cancellable tests 1175s # Start of cancellable-source tests 1175s # /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) 1175s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1841 1176s ok 17 /cancellable-source/threaded-dispose 1176s # slow test /cancellable-source/threaded-dispose executed in 0.81 secs 1176s # /cancellable-source/can-be-fired-multiple-times summary: Test a cancellable source callback can be called multiple times 1176s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/774 1176s ok 18 /cancellable-source/can-be-fired-multiple-times 1176s # End of cancellable-source tests 1176s TAP version 14 1176s # random seed: R02Sb0d9431bb9b4e4665a84ef1957a3609f 1176s 1..47 1176s # Start of maincontext tests 1176s ok 1 /maincontext/basic 1176s ok - glib/cancellable.test 1176s # Running test: glib/mainloop.test 1176s # Add same-priority sources: 38 1176s # Find each source: 19 1176s # Remove in random order: 54 1176s ok 2 /maincontext/nsources_same_priority 1176s # Add different-priority sources: 45 1176s # Find each source: 19 1176s # Remove in random order: 59 1176s ok 3 /maincontext/nsources_different_priority 1177s # Add sources from threads: 209 1177s # Remove sources from threads: 214 1177s ok 4 /maincontext/nsources_threadpool 1177s ok 5 /maincontext/source_finalization 1177s # /maincontext/idle-once summary: Test g_idle_add_once() works 1177s ok 6 /maincontext/idle-once 1177s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1177s ok 7 /maincontext/timeout-once 1177s # /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. 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 1177s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 1177s # Start of source_finalization_from_source tests 1177s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1177s ok 9 /maincontext/source_finalization_from_source/0 1177s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1177s ok 10 /maincontext/source_finalization_from_source/1 1177s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1177s ok 11 /maincontext/source_finalization_from_source/2 1177s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1177s ok 12 /maincontext/source_finalization_from_source/3 1177s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1177s ok 13 /maincontext/source_finalization_from_source/4 1177s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1177s ok 14 /maincontext/source_finalization_from_source/5 1177s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1177s ok 15 /maincontext/source_finalization_from_source/6 1177s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1177s ok 16 /maincontext/source_finalization_from_source/7 1177s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1177s ok 17 /maincontext/source_finalization_from_source/8 1177s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1177s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1177s ok 18 /maincontext/source_finalization_from_source/9 1177s # End of source_finalization_from_source tests 1177s # Start of source_finalization_from_dispatch tests 1177s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1177s ok 19 /maincontext/source_finalization_from_dispatch/0 1177s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1177s ok 20 /maincontext/source_finalization_from_dispatch/1 1177s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1177s ok 21 /maincontext/source_finalization_from_dispatch/2 1177s # End of source_finalization_from_dispatch tests 1177s # End of maincontext tests 1177s # Start of mainloop tests 1177s ok 22 /mainloop/basic 1177s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 1177s ok 24 /mainloop/priorities 1177s ok 25 /mainloop/invoke 1177s # slow test /mainloop/invoke executed in 0.50 secs 1178s # Executing: glib/mainloop.test 1179s ok 26 /mainloop/child_sources 1179s # slow test /mainloop/child_sources executed in 1.18 secs 1181s ok 27 /mainloop/recursive_child_sources 1181s # slow test /mainloop/recursive_child_sources executed in 2.16 secs 1181s ok 28 /mainloop/recursive_loop_child_sources 1181s ok 29 /mainloop/swapping_child_sources 1181s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1181s ok 30 /mainloop/blocked_child_sources 1182s ok 31 /mainloop/source_time 1182s # slow test /mainloop/source_time executed in 1.00 secs 1182s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1182s ok 32 /mainloop/overflow 1182s ok 33 /mainloop/ready-time 1182s # slow test /mainloop/ready-time executed in 0.50 secs 1182s ok 34 /mainloop/wakeup 1182s ok 35 /mainloop/remove-invalid 1182s ok 36 /mainloop/unref-while-pending 1183s # Executing: glib/mainloop.test 1184s ok 37 /mainloop/unix-fd 1184s # slow test /mainloop/unix-fd executed in 1.47 secs 1184s ok 38 /mainloop/unix-fd-source 1184s ok 39 /mainloop/source-unix-fd-api 1184s ok 40 /mainloop/wait 1184s ok 41 /mainloop/unix-file-poll 1184s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1184s ok 42 /mainloop/unix-fd-priority 1184s ok 43 /mainloop/nfds 1184s ok 44 /mainloop/steal-fd 1185s ok - glib/mainloop.test 1185s # Running test: glib/field-info.test 1185s ok 45 /mainloop/simultaneous-source-context-destruction 1185s # slow test /mainloop/simultaneous-source-context-destruction executed in 1.26 secs 1185s # Start of ownerless-polling tests 1185s ok 46 /mainloop/ownerless-polling/attach-first 1185s ok 47 /mainloop/ownerless-polling/pop-first 1185s # End of ownerless-polling tests 1185s # End of mainloop tests 1185s TAP version 14 1185s # random seed: R02Sa8530ec906e53366b9e6e650f4367ab1 1185s 1..4 1185s # Start of field-info tests 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_field-info_NNFKK3/field-info/basic-struct-field/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_field-info_NNFKK3/field-info/basic-struct-field/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_field-info_NNFKK3/field-info/basic-struct-field/.dirs/system-config1:/tmp/test_field-info_NNFKK3/field-info/basic-struct-field/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_field-info_NNFKK3/field-info/basic-struct-field/.dirs/config 1185s ok - glib/field-info.test 1185s # Running test: glib/utils-unisolated.test 1185s ok - glib/utils-unisolated.test 1185s # Running test: glib/gdbus-test-codegen-old.test 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_field-info_NNFKK3/field-info/basic-struct-field/.dirs/system-data1:/tmp/test_field-info_NNFKK3/field-info/basic-struct-field/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_field-info_NNFKK3/field-info/basic-struct-field/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_field-info_NNFKK3/field-info/basic-struct-field/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_field-info_NNFKK3/field-info/basic-struct-field/.dirs/runtime 1185s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1185s # /field-info/basic-struct-field summary: Test basic properties of a GIFieldInfo from a C struct 1185s ok 1 /field-info/basic-struct-field 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_field-info_NNFKK3/field-info/basic-union-field/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_field-info_NNFKK3/field-info/basic-union-field/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_field-info_NNFKK3/field-info/basic-union-field/.dirs/system-config1:/tmp/test_field-info_NNFKK3/field-info/basic-union-field/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_field-info_NNFKK3/field-info/basic-union-field/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_field-info_NNFKK3/field-info/basic-union-field/.dirs/system-data1:/tmp/test_field-info_NNFKK3/field-info/basic-union-field/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_field-info_NNFKK3/field-info/basic-union-field/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_field-info_NNFKK3/field-info/basic-union-field/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_field-info_NNFKK3/field-info/basic-union-field/.dirs/runtime 1185s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1185s # /field-info/basic-union-field summary: Test basic properties of a GIFieldInfo from a C union 1185s ok 2 /field-info/basic-union-field 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_field-info_NNFKK3/field-info/read-write-struct-field/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_field-info_NNFKK3/field-info/read-write-struct-field/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_field-info_NNFKK3/field-info/read-write-struct-field/.dirs/system-config1:/tmp/test_field-info_NNFKK3/field-info/read-write-struct-field/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_field-info_NNFKK3/field-info/read-write-struct-field/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_field-info_NNFKK3/field-info/read-write-struct-field/.dirs/system-data1:/tmp/test_field-info_NNFKK3/field-info/read-write-struct-field/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_field-info_NNFKK3/field-info/read-write-struct-field/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_field-info_NNFKK3/field-info/read-write-struct-field/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_field-info_NNFKK3/field-info/read-write-struct-field/.dirs/runtime 1185s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1185s # /field-info/read-write-struct-field summary: Test reading and writing of a GIFieldInfo from a C union 1185s ok 3 /field-info/read-write-struct-field 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_field-info_NNFKK3/field-info/read-write-union-field/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_field-info_NNFKK3/field-info/read-write-union-field/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_field-info_NNFKK3/field-info/read-write-union-field/.dirs/system-config1:/tmp/test_field-info_NNFKK3/field-info/read-write-union-field/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_field-info_NNFKK3/field-info/read-write-union-field/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_field-info_NNFKK3/field-info/read-write-union-field/.dirs/system-data1:/tmp/test_field-info_NNFKK3/field-info/read-write-union-field/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_field-info_NNFKK3/field-info/read-write-union-field/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_field-info_NNFKK3/field-info/read-write-union-field/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_field-info_NNFKK3/field-info/read-write-union-field/.dirs/runtime 1185s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1185s # /field-info/read-write-union-field summary: Test reading and writing of a GIFieldInfo from a C union 1185s ok 4 /field-info/read-write-union-field 1185s # End of field-info tests 1185s TAP version 14 1185s # random seed: R02S6367479d0e2d1df29b7ec6902b03c2d7 1185s 1..1 1185s # Start of utils tests 1185s ok 1 /utils/xdgdirs 1185s # End of utils tests 1185s TAP version 14 1185s # random seed: R02S2d566227b9374be27333725714b82766 1185s 1..8 1185s # Start of gdbus tests 1185s # Start of codegen tests 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/annotations/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/annotations/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/annotations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/annotations/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/annotations/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/annotations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/annotations/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/annotations/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/annotations/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/annotations/.dirs/runtime 1185s ok 1 /gdbus/codegen/annotations 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/interface_stability/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/interface_stability/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/interface_stability/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/interface_stability/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/interface_stability/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/interface_stability/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/interface_stability/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/interface_stability/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/interface_stability/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/interface_stability/.dirs/runtime 1185s ok 2 /gdbus/codegen/interface_stability 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/object-manager/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/object-manager/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/object-manager/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/object-manager/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/object-manager/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/object-manager/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/object-manager/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/object-manager/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/object-manager/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/object-manager/.dirs/runtime 1185s ok - glib/gdbus-test-codegen-old.test 1185s # Running test: glib/network-address.test 1185s ok 3 /gdbus/codegen/object-manager 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/property-naming/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/property-naming/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/property-naming/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/property-naming/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/property-naming/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/property-naming/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/property-naming/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/property-naming/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/property-naming/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/property-naming/.dirs/runtime 1185s ok 4 /gdbus/codegen/property-naming 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/autocleanups/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/autocleanups/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/autocleanups/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/autocleanups/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/autocleanups/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/autocleanups/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/autocleanups/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/autocleanups/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/autocleanups/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/autocleanups/.dirs/runtime 1185s ok 5 /gdbus/codegen/autocleanups 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/deprecations/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/deprecations/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/deprecations/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/deprecations/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/deprecations/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/deprecations/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/deprecations/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/deprecations/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/deprecations/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/deprecations/.dirs/runtime 1185s ok 6 /gdbus/codegen/deprecations 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/standalone-interface-info/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/standalone-interface-info/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/standalone-interface-info/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/standalone-interface-info/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/standalone-interface-info/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/standalone-interface-info/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/standalone-interface-info/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/standalone-interface-info/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/standalone-interface-info/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/standalone-interface-info/.dirs/runtime 1185s ok 7 /gdbus/codegen/standalone-interface-info 1185s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/unix-fd-list/.dirs/home 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/unix-fd-list/.dirs/cache 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/unix-fd-list/.dirs/system-config1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/unix-fd-list/.dirs/system-config2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/unix-fd-list/.dirs/config 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/unix-fd-list/.dirs/system-data1:/tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/unix-fd-list/.dirs/system-data2 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/unix-fd-list/.dirs/data 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/unix-fd-list/.dirs/state 1185s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-test-codegen-old_D1KKK3/gdbus/codegen/unix-fd-list/.dirs/runtime 1185s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1726 1185s ok 8 /gdbus/codegen/unix-fd-list 1185s # End of codegen tests 1185s # End of gdbus tests 1185s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1185s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1185s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1185s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1185s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1185s TAP version 14 1185s # random seed: R02S0e4dea7f82e75e0ef4db7a4a5939944a 1185s 1..72 1185s # Start of network-address tests 1185s ok 1 /network-address/basic 1185s ok 2 /network-address/scope-id 1185s ok 3 /network-address/uri-scope-id 1185s ok 4 /network-address/to-string 1185s # Start of parse-host tests 1185s ok 5 /network-address/parse-host/0 1185s ok 6 /network-address/parse-host/1 1185s ok 7 /network-address/parse-host/2 1185s ok 8 /network-address/parse-host/3 1185s ok 9 /network-address/parse-host/4 1185s ok 10 /network-address/parse-host/5 1185s ok 11 /network-address/parse-host/6 1185s ok 12 /network-address/parse-host/7 1185s ok 13 /network-address/parse-host/8 1185s ok 14 /network-address/parse-host/9 1185s ok 15 /network-address/parse-host/10 1185s ok 16 /network-address/parse-host/11 1185s ok 17 /network-address/parse-host/12 1185s ok 18 /network-address/parse-host/13 1185s # End of parse-host tests 1185s # Start of parse-uri tests 1185s ok 19 /network-address/parse-uri/0 1185s ok 20 /network-address/parse-uri/1 1185s ok 21 /network-address/parse-uri/2 1185s ok 22 /network-address/parse-uri/3 1185s ok 23 /network-address/parse-uri/4 1185s ok 24 /network-address/parse-uri/5 1185s ok 25 /network-address/parse-uri/6 1185s ok 26 /network-address/parse-uri/7 1185s ok 27 /network-address/parse-uri/8 1185s ok 28 /network-address/parse-uri/9 1185s # End of parse-uri tests 1185s # Start of resolve-address tests 1185s # Input: 192.168.1.2 1185s ok 29 /network-address/resolve-address/0 1185s # Input: fe80::42 1185s ok 30 /network-address/resolve-address/1 1185s # Input: 192.168.1.2:80 1185s ok 31 /network-address/resolve-address/2 1185s # Input: [fe80::42] 1185s ok 32 /network-address/resolve-address/3 1185s # Input: [fe80::42]:80 1185s ok 33 /network-address/resolve-address/4 1185s # Input: 192.168.258 1185s ok 34 /network-address/resolve-address/5 1185s # Input: 192.11010306 1185s ok 35 /network-address/resolve-address/6 1185s # Input: 3232235778 1185s ok 36 /network-address/resolve-address/7 1185s # Input: 0300.0250.0001.0001 1185s ok 37 /network-address/resolve-address/8 1185s # Input: 0xC0.0xA8.0x01.0x02 1185s ok 38 /network-address/resolve-address/9 1185s # Input: 0xc0.0xa8.0x01.0x02 1185s ok 39 /network-address/resolve-address/10 1185s # Input: 0xc0a80102 1185s ok 40 /network-address/resolve-address/11 1185s # End of resolve-address tests 1185s # Start of loopback tests 1185s ok 41 /network-address/loopback/basic 1185s ok 42 /network-address/loopback/sync 1185s ok 43 /network-address/loopback/async 1185s # End of loopback tests 1185s # Start of localhost tests 1185s ok 44 /network-address/localhost/async 1185s ok 45 /network-address/localhost/sync 1185s # End of localhost tests 1185s # Start of happy-eyeballs tests 1185s ok 46 /network-address/happy-eyeballs/basic 1186s ok 47 /network-address/happy-eyeballs/parallel 1186s ok 48 /network-address/happy-eyeballs/slow-ipv4 1186s ok 49 /network-address/happy-eyeballs/slow-ipv6 1186s ok 50 /network-address/happy-eyeballs/very-slow-ipv6 1187s ok 51 /network-address/happy-eyeballs/slow-connection-and-ipv4 1187s # slow test /network-address/happy-eyeballs/slow-connection-and-ipv4 executed in 0.80 secs 1187s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1187s ok 52 /network-address/happy-eyeballs/ipv6-error-ipv4-first 1187s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1187s ok 53 /network-address/happy-eyeballs/ipv6-error-ipv6-first 1187s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/865 1187s # /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. 1187s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1187s ok 54 /network-address/happy-eyeballs/ipv6-error-ipv4-very-slow 1187s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1187s ok 55 /network-address/happy-eyeballs/ipv4-error-ipv6-first 1187s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1187s ok 56 /network-address/happy-eyeballs/ipv4-error-ipv4-first 1187s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1187s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1187s ok 57 /network-address/happy-eyeballs/both-error 1187s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1187s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1187s ok 58 /network-address/happy-eyeballs/both-error-delays-1 1187s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1187s # GLib-GIO-DEBUG: IPv6 DNS error: IPv6 Broken 1187s ok 59 /network-address/happy-eyeballs/both-error-delays-2 1187s # GLib-GIO-DEBUG: IPv4 DNS error: IPv4 Broken 1187s ok 60 /network-address/happy-eyeballs/both-error-delays-3 1187s # End of happy-eyeballs tests 1187s # End of network-address tests 1187s # Start of gresolver tests 1187s # Start of resolve-address tests 1187s # Input: 192.168.1.2 1187s ok 61 /gresolver/resolve-address/0 1187s # Input: fe80::42 1187s ok 62 /gresolver/resolve-address/1 1187s # Input: 192.168.1.2:80 1187s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 192.168.1.2:80 1187s # GLib-GIO-DEBUG: Failed to initialize portal (GNetworkMonitorPortal) for gio-network-monitor: Not using portals 1187s # GLib-GIO-DEBUG: Failed to initialize networkmanager (GNetworkMonitorNM) for gio-network-monitor: NetworkManager not running 1187s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation netlink (GNetworkMonitorNetlink) for ‘gio-network-monitor’ 1187s # Error: Error resolving “192.168.1.2:80”: Name or service not known 1187s ok 63 /gresolver/resolve-address/2 1187s # Input: [fe80::42] 1187s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42] 1187s # Error: Error resolving “[fe80::42]”: Name or service not known 1187s ok 64 /gresolver/resolve-address/3 1187s # Input: [fe80::42]:80 1187s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [fe80::42]:80 1187s # Error: Error resolving “[fe80::42]:80”: Name or service not known 1187s ok 65 /gresolver/resolve-address/4 1187s # Input: 192.168.258 1187s # Error: Error resolving “192.168.258”: Name or service not known 1187s ok 66 /gresolver/resolve-address/5 1187s # Input: 192.11010306 1187s # Error: Error resolving “192.11010306”: Name or service not known 1187s ok 67 /gresolver/resolve-address/6 1187s # Input: 3232235778 1187s # Error: Error resolving “3232235778”: Name or service not known 1187s ok 68 /gresolver/resolve-address/7 1187s # Input: 0300.0250.0001.0001 1187s # Error: Error resolving “0300.0250.0001.0001”: Name or service not known 1187s ok 69 /gresolver/resolve-address/8 1187s # Input: 0xC0.0xA8.0x01.0x02 1187s # Error: Error resolving “0xC0.0xA8.0x01.0x02”: Name or service not known 1187s ok 70 /gresolver/resolve-address/9 1187s # Input: 0xc0.0xa8.0x01.0x02 1187s # Error: Error resolving “0xc0.0xa8.0x01.0x02”: Name or service not known 1187s ok 71 /gresolver/resolve-address/10 1187s # Input: 0xc0a80102 1187s # Error: Error resolving “0xc0a80102”: Name or service not known 1187s ok 72 /gresolver/resolve-address/11 1187s # End of resolve-address tests 1187s # End of gresolver tests 1187s ok - glib/network-address.test 1187s # Running test: glib/pollable.test 1187s ok - glib/pollable.test 1187s # Running test: glib/atomic-c-89.test 1187s TAP version 14 1187s # random seed: R02S21aa4f01b5cfdd9d45eaff3f82488306 1187s 1..6 1187s # Start of pollable tests 1187s ok 1 /pollable/converter 1187s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1187s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x13a6ee2db900 and GSocketClientAsyncConnectData 0x13a6ee2dd7a0 1187s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1187s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1187s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x13a6ee2d3e00 for GSocketClientAsyncConnectData 0x13a6ee2dd7a0 1187s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1187s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1187s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1187s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1187s ok 2 /pollable/socket 1187s # Start of unix tests 1187s # /pollable/unix/pipe summary: Test that pipes are considered pollable, just like sockets 1187s ok 3 /pollable/unix/pipe 1187s # /pollable/unix/pty summary: Test that PTYs are considered pollable 1187s ok 4 /pollable/unix/pty 1187s # /pollable/unix/file summary: Test that regular files are not considered pollable 1187s ok 5 /pollable/unix/file 1187s # /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 1187s ok 6 /pollable/unix/nulldev 1187s # End of unix tests 1187s # End of pollable tests 1187s TAP version 14 1187s # random seed: R02S309703a93d0f17f011eaf7bfa7fb9c49 1187s 1..2 1187s # Start of atomic tests 1187s ok 1 /atomic/types 1187s ok 2 /atomic/threaded 1187s # End of atomic tests 1187s ok - glib/atomic-c-89.test 1187s # Running test: glib/unix-fd.test 1187s TAP version 14 1187s # random seed: R02Sfa28f0aad31a4767202732f9c3d80d10 1187s 1..2 1187s # Start of unix-fd tests 1187s ok 1 /unix-fd/fd-list 1187s ok 2 /unix-fd/scm 1187s # End of unix-fd tests 1187s ok - glib/unix-fd.test 1187s # Running test: glib/gdbus-peer-object-manager.test 1187s TAP version 14 1187s # random seed: R02S7e43cce63eccc6b0dd080e5a576201d9 1187s 1..2 1187s # Start of gdbus tests 1187s # Start of peer-object-manager tests 1187s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/normal/.dirs/home 1187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/normal/.dirs/cache 1187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/normal/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/normal/.dirs/system-config2 1187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/normal/.dirs/config 1187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/normal/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/normal/.dirs/system-data2 1187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/normal/.dirs/data 1187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/normal/.dirs/state 1187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/normal/.dirs/runtime 1187s ok 1 /gdbus/peer-object-manager/normal 1187s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/root/.dirs/home 1187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/root/.dirs/cache 1187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/root/.dirs/system-config1:/tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/root/.dirs/system-config2 1187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/root/.dirs/config 1187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/root/.dirs/system-data1:/tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/root/.dirs/system-data2 1187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/root/.dirs/data 1187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/root/.dirs/state 1187s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-peer-object-manager_PP53J3/gdbus/peer-object-manager/root/.dirs/runtime 1187s ok 2 /gdbus/peer-object-manager/root 1187s # End of peer-object-manager tests 1187s # End of gdbus tests 1187s ok - glib/gdbus-peer-object-manager.test 1187s # Running test: glib/refcount-macro.test 1187s TAP version 14 1187s # random seed: R02S441f126f6b22329dd15b09666aa5a5c5 1187s 1..4 1187s # Start of refcount tests 1187s ok 1 /refcount/grefcount 1187s ok 2 /refcount/gatomicrefcount 1187s # Start of grefcount tests 1187s ok 3 /refcount/grefcount/saturation 1187s # End of grefcount tests 1187s # Start of gatomicrefcount tests 1187s ok 4 /refcount/gatomicrefcount/saturation 1187s # End of gatomicrefcount tests 1187s # End of refcount tests 1187s ok - glib/refcount-macro.test 1187s # Running test: glib/spawn-multithreaded.test 1187s TAP version 14 1187s # random seed: R02S1256f0082c65c4a94ea25fdfba0535f9 1187s 1..4 1187s # Start of gthread tests 1188s # Executing: glib/spawn-multithreaded.test 1188s # Child 36401 (ttl 1) exited, status 0 1189s # Child 36402 (ttl 2) exited, status 0 1189s ok 1 /gthread/spawn-childs 1189s # slow test /gthread/spawn-childs executed in 2.00 secs 1189s # Created pid: 36406 (ttl 1) 1189s # Created pid: 36407 (ttl 2) 1190s # Child 36406 (ttl 1) exited, status 0 1191s # Child 36407 (ttl 2) exited, status 0 1191s ok 2 /gthread/spawn-childs-threads 1191s # slow test /gthread/spawn-childs-threads executed in 2.00 secs 1191s ok 3 /gthread/spawn-sync 1191s ok 4 /gthread/spawn-async 1191s # End of gthread tests 1191s ok - glib/spawn-multithreaded.test 1191s # Running test: glib/object.test 1191s ok - glib/object.test 1191s TAP version 14 1191s # random seed: R02S024725b47305eaff123c6b03674612fc 1191s 1..2 1191s # Start of object tests 1191s # Start of constructor tests 1191s ok 1 /object/constructor/singleton 1191s ok 2 /object/constructor/infanticide # SKIP skip tests that rely on debug-only warnings 1191s # End of constructor tests 1191s # End of object tests 1191s # Running test: glib/converter.test 1191s TAP version 14 1191s # random seed: R02S1ac2abb357c9c275df8ab991cb2a6203 1191s 1..3 1191s # Start of converter tests 1191s ok 1 /converter/bytes 1191s ok 2 /converter/extra-bytes-at-end 1191s ok 3 /converter/gzip-os-property 1191s # End of converter tests 1191s ok - glib/converter.test 1191s # Running test: glib/collate.test 1191s ok - glib/collate.test 1191s # Running test: glib/thread-deprecated.test 1191s TAP version 14 1191s # random seed: R02Saa8723a965f151689d020ea92eddbfd5 1191s 1..9 1191s # Start of unicode tests 1191s # Start of collate tests 1191s ok 1 /unicode/collate/0 1191s ok 2 /unicode/collate/1 1191s ok 3 /unicode/collate/2 1191s # End of collate tests 1191s # Start of collate-key tests 1191s ok 4 /unicode/collate-key/0 1191s ok 5 /unicode/collate-key/1 1191s ok 6 /unicode/collate-key/2 1191s # End of collate-key tests 1191s # Start of collate-filename tests 1191s ok 7 /unicode/collate-filename/0 1191s ok 8 /unicode/collate-filename/1 1191s ok 9 /unicode/collate-filename/2 1191s # End of collate-filename tests 1191s # End of unicode tests 1191s TAP version 14 1191s # random seed: R02Sab099361744e0e593311b19c434c3f95 1191s 1..6 1191s # Start of thread tests 1191s ok 1 /thread/mutex 1192s ok 2 /thread/static-rec-mutex 1193s # Executing: glib/thread-deprecated.test 1196s ok 3 /thread/static-private 1196s # slow test /thread/static-private executed in 4.41 secs 1198s # Executing: glib/thread-deprecated.test 1201s ok 4 /thread/static-rw-lock 1201s # slow test /thread/static-rw-lock executed in 5.00 secs 1201s ok 5 /thread/once 1203s # Executing: glib/thread-deprecated.test 1208s # Executing: glib/thread-deprecated.test 1211s ok - glib/thread-deprecated.test 1211s # Running test: glib/properties-refcount4.test 1211s ok 6 /thread/rerun-all 1211s # slow test /thread/rerun-all executed in 10.02 secs 1211s # End of thread tests 1211s ok - glib/properties-refcount4.test 1211s # Running test: glib/gdbus-method-invocation.test 1211s TAP version 14 1211s # random seed: R02Sf2e81f1acfdc54e9efe8b07b867eb2f7 1211s 1..1 1211s # Start of gobject tests 1211s # Start of refcount tests 1211s ok 1 /gobject/refcount/properties-4 1211s # End of refcount tests 1211s # End of gobject tests 1211s TAP version 14 1211s # random seed: R02S5203a52f87a3ea6e53f556cf2ca9c6a0 1211s 1..1 1211s # Start of gdbus tests 1211s # Start of method-invocation tests 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-method-invocation_LPC7J3/gdbus/method-invocation/return/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-method-invocation_LPC7J3/gdbus/method-invocation/return/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-method-invocation_LPC7J3/gdbus/method-invocation/return/.dirs/system-config1:/tmp/test_gdbus-method-invocation_LPC7J3/gdbus/method-invocation/return/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-method-invocation_LPC7J3/gdbus/method-invocation/return/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-method-invocation_LPC7J3/gdbus/method-invocation/return/.dirs/system-data1:/tmp/test_gdbus-method-invocation_LPC7J3/gdbus/method-invocation/return/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-method-invocation_LPC7J3/gdbus/method-invocation/return/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-method-invocation_LPC7J3/gdbus/method-invocation/return/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-method-invocation_LPC7J3/gdbus/method-invocation/return/.dirs/runtime 1211s # /gdbus/method-invocation/return summary: Test calling g_dbus_method_invocation_return_*() in various ways 1211s ok - glib/gdbus-method-invocation.test 1211s # Running test: glib/macros-c-11.test 1211s ok - glib/macros-c-11.test 1211s # Running test: glib/socket-service.test 1211s # Calling org.freedesktop.DBus.Properties.Get 1211s # Calling org.freedesktop.DBus.Properties.Get 1211s # Calling org.freedesktop.DBus.Properties.Get 1211s # Calling org.freedesktop.DBus.Properties.Set 1211s # Calling org.freedesktop.DBus.Properties.GetAll 1211s # Calling org.example.Foo.WrongReturnType 1211s # Calling org.example.Foo.GetFDs 1211s # Calling org.example.Foo.GetFDs 1211s # Calling org.example.Foo.ReturnError 1211s # Calling org.example.Foo.CloseBeforeReturning 1211s ok 1 /gdbus/method-invocation/return 1211s # End of method-invocation tests 1211s # End of gdbus tests 1211s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1211s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1211s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1211s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1211s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1211s TAP version 14 1211s # random seed: R02S4857d873593ba711a81446483f82c022 1211s 1..4 1211s # Start of C tests 1211s ok 1 /C/standard-11 1211s # End of C tests 1211s # Start of alignof tests 1211s ok 2 /alignof/fallback 1211s # End of alignof tests 1211s # Start of assert tests 1211s ok 3 /assert/static 1211s # End of assert tests 1211s # Start of struct tests 1211s ok 4 /struct/sizeof_member 1211s # End of struct tests 1211s TAP version 14 1211s # random seed: R02S316ce18aeb8dc7f1a9b1d8bac0a001d5 1211s 1..4 1211s # Start of socket-service tests 1211s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1211s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x1a2006be8240 and GSocketClientAsyncConnectData 0x1a2006be2f00 1211s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1211s ok 1 /socket-service/start-stop 1211s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x1a2006bec2d0 and GSocketClientAsyncConnectData 0x1a2006bebf30 1211s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1211s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1211s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x1a2006bec250 for GSocketClientAsyncConnectData 0x1a2006be2f00 1211s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1211s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1211s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1211s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1211s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1211s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x1a2006bec250 for GSocketClientAsyncConnectData 0x1a2006bebf30 1211s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1211s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1211s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1211s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1211s ok 2 /socket-service/read_write_async 1211s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x1a2006bec2d0 and GSocketClientAsyncConnectData 0x1a2006bef9b0 1211s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1211s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1211s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x1a2006beee10 for GSocketClientAsyncConnectData 0x1a2006bef9b0 1211s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1211s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1211s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1211s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1211s ok 3 /socket-service/read_writev_async 1211s # Start of threaded tests 1211s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=712570 1211s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0x1a2006be0a70 and GSocketClientAsyncConnectData 0x1a2006bebf30 1211s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1211s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1211s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0x1a2006beef30 for GSocketClientAsyncConnectData 0x1a2006bebf30 1211s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1211s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1211s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1211s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1211s ok 4 /socket-service/threaded/712570 1211s # End of threaded tests 1211s # End of socket-service tests 1211s TAP version 14 1211s # random seed: R02S44f75d6440ba6bb56b00e3ddda4bbc78 1211s 1..2 1211s # Start of tls-connection tests 1211s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation test (GTestTlsBackend) for ‘gio-tls-backend’ 1211s ok - glib/socket-service.test 1211s # Running test: glib/tls-bindings.test 1211s ok 1 /tls-connection/get-tls-channel-binding 1211s ok 2 /tls-connection/get-dtls-channel-binding 1211s # End of tls-connection tests 1211s ok - glib/tls-bindings.test 1211s # Running test: glib/utils-c-17.test 1211s TAP version 14 1211s # random seed: R02S325885198362a93ed2843bc0f52b2f60 1211s 1..41 1211s # Start of utils tests 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/language-names/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/language-names/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/language-names/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/language-names/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/language-names/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/language-names/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/language-names/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/language-names/.dirs/runtime 1211s ok 1 /utils/language-names 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/locale-variants/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/locale-variants/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/locale-variants/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/locale-variants/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/locale-variants/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/locale-variants/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/locale-variants/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/locale-variants/.dirs/runtime 1211s # Testing locale ‘en’ 1211s # Testing locale ‘sr@latin’ 1211s # Testing locale ‘fr_BE’ 1211s # Testing locale ‘sr_SR@latin’ 1211s # Testing locale ‘sr_SR@latin.UTF-8’ 1211s # Testing locale ‘sr@latin_invalid’ 1211s # Testing locale ‘sr.UTF-8@latin’ 1211s # Testing locale ‘sr.UTF-8_latin’ 1211s # Testing locale ‘sr.UTF-8@latin_invalid’ 1211s ok 2 /utils/locale-variants 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/version/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/version/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/version/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/version/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/version/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/version/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/version/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/version/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/version/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/version/.dirs/runtime 1211s ok 3 /utils/version 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/appname/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/appname/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/appname/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/appname/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/appname/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/appname/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/appname/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/appname/.dirs/runtime 1211s ok 4 /utils/appname 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/prgname-thread-safety/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/prgname-thread-safety/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/prgname-thread-safety/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/prgname-thread-safety/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/prgname-thread-safety/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/prgname-thread-safety/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/prgname-thread-safety/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/prgname-thread-safety/.dirs/runtime 1211s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1211s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1211s ok 5 /utils/prgname-thread-safety 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/tmpdir/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/tmpdir/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/tmpdir/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/tmpdir/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/tmpdir/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/tmpdir/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/tmpdir/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/tmpdir/.dirs/runtime 1211s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1211s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1211s Unable to clean up temporary directory /tmp/test_utils-c-17_G576J3/utils/tmpdir: No such file or directory 1211s ok 6 /utils/tmpdir 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/basic_bits/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/basic_bits/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/basic_bits/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/basic_bits/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/basic_bits/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/basic_bits/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/basic_bits/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/basic_bits/.dirs/runtime 1211s ok 7 /utils/basic_bits 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/bits/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/bits/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/bits/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/bits/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/bits/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/bits/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/bits/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/bits/.dirs/runtime 1211s ok 8 /utils/bits 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/swap/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/swap/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/swap/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/swap/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/swap/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/swap/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/swap/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/swap/.dirs/runtime 1211s ok 9 /utils/swap 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/find-program/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/find-program/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/find-program/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/find-program/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/find-program/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/find-program/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/find-program/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/find-program/.dirs/runtime 1211s ok 10 /utils/find-program 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/find-program-for-path/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/find-program-for-path/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/find-program-for-path/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/find-program-for-path/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/find-program-for-path/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/find-program-for-path/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/find-program-for-path/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/find-program-for-path/.dirs/runtime 1211s ok 11 /utils/find-program-for-path 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/debug/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/debug/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/debug/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/debug/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/debug/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/debug/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/debug/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/debug/.dirs/runtime 1211s Unable to clean up temporary directory /tmp/test_utils-c-17_G576J3/utils/debug: No such file or directory 1211s ok 12 /utils/debug 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/codeset/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/codeset/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/codeset/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/codeset/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/codeset/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/codeset/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/codeset/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/codeset/.dirs/runtime 1211s ok 13 /utils/codeset 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/codeset2/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/codeset2/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/codeset2/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/codeset2/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/codeset2/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/codeset2/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/codeset2/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/codeset2/.dirs/runtime 1211s Unable to clean up temporary directory /tmp/test_utils-c-17_G576J3/utils/codeset2: No such file or directory 1211s ok 14 /utils/codeset2 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/console-charset/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/console-charset/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/console-charset/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/console-charset/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/console-charset/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/console-charset/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/console-charset/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/console-charset/.dirs/runtime 1211s ok 15 /utils/console-charset 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/gettext/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/gettext/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/gettext/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/gettext/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/gettext/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/gettext/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/gettext/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/gettext/.dirs/runtime 1211s ok 16 /utils/gettext 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/username/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/username/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/username/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/username/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/username/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/username/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/username/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/username/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/username/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/username/.dirs/runtime 1211s ok 17 /utils/username 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/realname/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/realname/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/realname/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/realname/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/realname/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/realname/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/realname/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/realname/.dirs/runtime 1211s ok 18 /utils/realname 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/hostname/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/hostname/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/hostname/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/hostname/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/hostname/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/hostname/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/hostname/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/hostname/.dirs/runtime 1211s ok 19 /utils/hostname 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/os-info/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/os-info/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/os-info/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/os-info/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/os-info/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/os-info/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/os-info/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/os-info/.dirs/runtime 1211s # NAME: Ubuntu 1211s ok 20 /utils/os-info 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/clear-pointer/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/clear-pointer/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/.dirs/runtime 1211s ok 21 /utils/clear-pointer 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/clear-pointer-cast/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-pointer-cast/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/clear-pointer-cast/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-pointer-cast/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/clear-pointer-cast/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-pointer-cast/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-pointer-cast/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/clear-pointer-cast/.dirs/runtime 1211s ok 22 /utils/clear-pointer-cast 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/take-pointer/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/take-pointer/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/take-pointer/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/take-pointer/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/take-pointer/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/take-pointer/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/take-pointer/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/take-pointer/.dirs/runtime 1211s ok 23 /utils/take-pointer 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/clear-source/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-source/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/clear-source/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-source/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/clear-source/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-source/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-source/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/clear-source/.dirs/runtime 1211s ok 24 /utils/clear-source 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/misc-mem/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/misc-mem/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/misc-mem/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/misc-mem/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/misc-mem/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/misc-mem/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/misc-mem/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/misc-mem/.dirs/runtime 1211s ok 25 /utils/misc-mem 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/aligned-mem/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/aligned-mem/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/.dirs/runtime 1211s # /utils/aligned-mem summary: Aligned memory allocator 1211s # Alignment must not be zero 1211s # Alignment must be a power of two 1211s # Alignment must be a multiple of sizeof(void*) 1211s ok 26 /utils/aligned-mem 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/free-sized/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/free-sized/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/free-sized/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/free-sized/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/free-sized/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/free-sized/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/free-sized/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/free-sized/.dirs/runtime 1211s # /utils/free-sized summary: Check that g_free_sized() works 1211s ok 27 /utils/free-sized 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/nullify/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/nullify/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/nullify/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/nullify/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/nullify/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/nullify/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/nullify/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/nullify/.dirs/runtime 1211s ok 28 /utils/nullify 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/atexit/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/atexit/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/atexit/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/atexit/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/atexit/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/atexit/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/atexit/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/atexit/.dirs/runtime 1211s Unable to clean up temporary directory /tmp/test_utils-c-17_G576J3/utils/atexit: No such file or directory 1211s ok 29 /utils/atexit 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/check-setuid/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/check-setuid/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/check-setuid/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/check-setuid/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/check-setuid/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/check-setuid/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/check-setuid/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/check-setuid/.dirs/runtime 1211s ok 30 /utils/check-setuid 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/int-limits/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/int-limits/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/int-limits/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/int-limits/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/int-limits/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/int-limits/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/int-limits/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/int-limits/.dirs/runtime 1211s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1211s ok 31 /utils/int-limits 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/clear-list/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-list/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/clear-list/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-list/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/clear-list/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-list/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-list/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/clear-list/.dirs/runtime 1211s ok 32 /utils/clear-list 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/clear-slist/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-slist/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/clear-slist/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-slist/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/clear-slist/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-slist/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-slist/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/clear-slist/.dirs/runtime 1211s ok 33 /utils/clear-slist 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/steal-handle-id/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/steal-handle-id/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/steal-handle-id/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/steal-handle-id/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/steal-handle-id/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/steal-handle-id/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/steal-handle-id/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/steal-handle-id/.dirs/runtime 1211s ok 34 /utils/steal-handle-id 1211s # Start of user-special-dirs tests 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/desktop/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/desktop/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/user-special-dirs/desktop/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/desktop/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/user-special-dirs/desktop/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/desktop/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/desktop/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/desktop/.dirs/runtime 1211s ok 35 /utils/user-special-dirs/desktop 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/load-unlocked/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/load-unlocked/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/load-unlocked/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/load-unlocked/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/load-unlocked/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1211s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1211s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1211s Unable to clean up temporary directory /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/load-unlocked: No such file or directory 1211s ok 36 /utils/user-special-dirs/load-unlocked 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/reload-leaks/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/reload-leaks/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/reload-leaks/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/reload-leaks/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/reload-leaks/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1211s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1211s Unable to clean up temporary directory /tmp/test_utils-c-17_G576J3/utils/user-special-dirs/reload-leaks: No such file or directory 1211s ok 37 /utils/user-special-dirs/reload-leaks 1211s # End of user-special-dirs tests 1211s ok - glib/utils-c-17.test 1211s # Start of clear-pointer tests 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/side-effects/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/side-effects/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/clear-pointer/side-effects/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/side-effects/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/clear-pointer/side-effects/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/side-effects/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/side-effects/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/clear-pointer/side-effects/.dirs/runtime 1211s ok 38 /utils/clear-pointer/side-effects 1211s # End of clear-pointer tests 1211s # Start of aligned-mem tests 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/alignment/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/alignment/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/aligned-mem/alignment/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/alignment/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/aligned-mem/alignment/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/alignment/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/alignment/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/alignment/.dirs/runtime 1211s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1211s ok 39 /utils/aligned-mem/alignment 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/zeroed/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/zeroed/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/aligned-mem/zeroed/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/zeroed/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/aligned-mem/zeroed/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/zeroed/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/zeroed/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/zeroed/.dirs/runtime 1211s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1211s ok 40 /utils/aligned-mem/zeroed 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/free-sized/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/free-sized/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-17_G576J3/utils/aligned-mem/free-sized/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/free-sized/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-17_G576J3/utils/aligned-mem/free-sized/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/free-sized/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/free-sized/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-17_G576J3/utils/aligned-mem/free-sized/.dirs/runtime 1211s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1211s ok 41 /utils/aligned-mem/free-sized 1211s # Start of subprocess tests 1211s # End of subprocess tests 1211s # End of aligned-mem tests 1211s # End of utils tests 1211s # Running test: glib/memory-input-stream.test 1211s TAP version 14 1211s # random seed: R02S78f3eb737b370125d03da6bfbdd0663f 1211s 1..6 1211s # Start of memory-input-stream tests 1211s ok 1 /memory-input-stream/read-chunks 1211s ok - glib/memory-input-stream.test 1211s ok 2 /memory-input-stream/async 1211s ok 3 /memory-input-stream/seek 1211s ok 4 /memory-input-stream/truncate 1211s ok 5 /memory-input-stream/read-bytes 1211s ok 6 /memory-input-stream/from-bytes 1211s # End of memory-input-stream tests 1211s # Running test: glib/atomic-c-99.test 1211s TAP version 14 1211s # random seed: R02S7431e54d6c627b0547fca01a3a03ac8b 1211s 1..2 1211s # Start of atomic tests 1211s ok 1 /atomic/types 1211s ok 2 /atomic/threaded 1211s # End of atomic tests 1211s ok - glib/atomic-c-99.test 1211s # Running test: glib/repository-search-paths.test 1211s TAP version 14 1211s # random seed: R02S1b418d42e7314b2c7d7d446e78e9976d 1211s 1..4 1211s # Start of repository tests 1211s # Start of search-paths tests 1211s ok - glib/repository-search-paths.test 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/default/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/default/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_EBLNK3/repository/search-paths/default/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/default/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_EBLNK3/repository/search-paths/default/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/default/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/default/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/default/.dirs/runtime 1211s ok 1 /repository/search-paths/default 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/prepend/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/prepend/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_EBLNK3/repository/search-paths/prepend/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/prepend/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_EBLNK3/repository/search-paths/prepend/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/prepend/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/prepend/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_EBLNK3/repository/search-paths/prepend/.dirs/runtime 1211s ok 2 /repository/search-paths/prepend 1211s # End of search-paths tests 1211s # Start of library-paths tests 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/default/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/default/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/default/.dirs/system-config1:/tmp/test_repository-search-paths_EBLNK3/repository/library-paths/default/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/default/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/default/.dirs/system-data1:/tmp/test_repository-search-paths_EBLNK3/repository/library-paths/default/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/default/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/default/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/default/.dirs/runtime 1211s ok 3 /repository/library-paths/default 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/prepend/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/prepend/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/prepend/.dirs/system-config1:/tmp/test_repository-search-paths_EBLNK3/repository/library-paths/prepend/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/prepend/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/prepend/.dirs/system-data1:/tmp/test_repository-search-paths_EBLNK3/repository/library-paths/prepend/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/prepend/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/prepend/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_repository-search-paths_EBLNK3/repository/library-paths/prepend/.dirs/runtime 1211s ok 4 /repository/library-paths/prepend 1211s # End of library-paths tests 1211s # End of repository tests 1211s # Running test: glib/unix-mounts.test 1211s ok - glib/unix-mounts.test 1211s # Running test: glib/live-g-file.test 1211s TAP version 14 1211s # random seed: R02S7384605e4d04aff93bcafefbeec9b354 1211s 1..4 1211s # Start of unix-mounts tests 1211s ok 1 /unix-mounts/is-system-fs-type 1211s ok 2 /unix-mounts/is-system-device-path 1211s # /unix-mounts/get-mount-points summary: Basic test of g_unix_mount_points_get_from_file() 1211s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1211s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1211s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1211s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1211s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1211s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1211s # Icon: . GThemedIcon drive-removable-media drive-removable drive drive-removable-media-symbolic drive-removable-symbolic drive-symbolic 1211s # Icon: . GThemedIcon drive-removable-media-symbolic drive-removable-symbolic drive-symbolic drive-removable-media drive-removable drive 1211s ok 3 /unix-mounts/get-mount-points 1211s # /unix-mounts/get-mount-entries summary: Basic test of g_unix_mounts_get_from_file() 1211s ok 4 /unix-mounts/get-mount-entries 1211s # End of unix-mounts tests 1211s TAP version 14 1211s # random seed: R02Sae44a7f1a2e6cb160a46e416c53e2133 1211s 1..13 1211s # Start of live-g-file tests 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/prep_clean_structure/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/prep_clean_structure/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/prep_clean_structure/.dirs/system-config1:/tmp/test_live-g-file_0NRNK3/live-g-file/prep_clean_structure/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/prep_clean_structure/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/prep_clean_structure/.dirs/system-data1:/tmp/test_live-g-file_0NRNK3/live-g-file/prep_clean_structure/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/prep_clean_structure/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/prep_clean_structure/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_0NRNK3/live-g-file/prep_clean_structure/.dirs/runtime 1211s # Cleaning target testing structure in '/tmp/test_live-g-file_0NRNK3/testdir_live-g-file'... 1211s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1211s ok 1 /live-g-file/prep_clean_structure 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/create_structure/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/create_structure/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/create_structure/.dirs/system-config1:/tmp/test_live-g-file_0NRNK3/live-g-file/create_structure/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/create_structure/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/create_structure/.dirs/system-data1:/tmp/test_live-g-file_0NRNK3/live-g-file/create_structure/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/create_structure/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/create_structure/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_0NRNK3/live-g-file/create_structure/.dirs/runtime 1211s # 1211s # Going to create testing structure in '/tmp/test_live-g-file_0NRNK3/testdir_live-g-file'... 1211s # Creating directory 'dir1'... 1211s # Creating directory 'dir1/subdir'... 1211s # Creating directory 'dir2'... 1211s # Creating directory 'dir-target'... 1211s # Creating directory 'dir_no-access'... 1211s # Creating directory 'dir_no-write'... 1211s # Creating file 'target-file'... 1211s # Creating file 'normal_file'... 1211s # Creating symlink 'normal_file-symlink' --> 'normal_file'... 1211s # Creating file 'executable_file'... 1211s # Creating file 'private_file'... 1211s # Creating file 'normal_file2'... 1211s # Creating file 'readonly_file'... 1211s # Creating file 'UTF_příliš z'... 1211s # Creating directory 'dir_příliš z'... 1211s # Creating symlink 'lost_symlink' --> 'nowhere'... 1211s # Creating directory 'dir_hidden'... 1211s # Creating file 'dir_hidden/.a-hidden-file'... 1211s # Creating file 'dir_hidden/file-in-.hidden1'... 1211s # Creating file 'dir_hidden/file-in-.hidden2'... 1211s # Creating pattern file... 1211s # done. 1211s ok 2 /live-g-file/create_structure 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_initial_structure/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_initial_structure/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_initial_structure/.dirs/system-config1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_initial_structure/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_initial_structure/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_initial_structure/.dirs/system-data1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_initial_structure/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_initial_structure/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_initial_structure/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_0NRNK3/live-g-file/test_initial_structure/.dirs/runtime 1211s # Testing sample structure in '/tmp/test_live-g-file_0NRNK3/testdir_live-g-file'... 1211s # Testing file 'dir1'... 1211s # Testing file 'dir1/subdir'... 1211s # Testing file 'dir2'... 1211s # Testing file 'dir-target'... 1211s # Testing file 'dir_no-access'... 1211s # Testing file 'dir_no-write'... 1211s # Testing file 'target-file'... 1211s # Testing file 'normal_file'... 1211s # Testing file 'normal_file-symlink'... 1211s # Testing file 'executable_file'... 1211s # Testing file 'private_file'... 1211s # Testing file 'normal_file2'... 1211s # Testing file 'readonly_file'... 1211s # Testing file 'UTF_příliš z'... 1211s # Testing file 'dir_příliš z'... 1211s # Testing file 'lost_symlink'... 1211s # Testing file 'dir_hidden'... 1211s # Testing file 'dir_hidden/.a-hidden-file'... 1211s # Testing file 'dir_hidden/file-in-.hidden1'... 1211s # Testing file 'dir_hidden/file-in-.hidden2'... 1211s # Testing pattern file... 1211s # read 65536 bytes, total = 65536 of 65536. 1211s ok 3 /live-g-file/test_initial_structure 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_traverse_structure/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_traverse_structure/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_traverse_structure/.dirs/system-config1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_traverse_structure/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_traverse_structure/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_traverse_structure/.dirs/system-data1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_traverse_structure/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_traverse_structure/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_traverse_structure/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_0NRNK3/live-g-file/test_traverse_structure/.dirs/runtime 1211s # Traversing through the sample structure in '/tmp/test_live-g-file_0NRNK3/testdir_live-g-file'... 1211s # Found file dir1, relative to root: dir1 1211s # Found file subdir, relative to root: dir1/subdir 1211s # Found file dir2, relative to root: dir2 1211s # Found file dir-target, relative to root: dir-target 1211s # Found file dir_no-access, relative to root: dir_no-access 1211s # Found file dir_no-write, relative to root: dir_no-write 1211s # Found file target-file, relative to root: target-file 1211s # Found file normal_file, relative to root: normal_file 1211s # Found file normal_file-symlink, relative to root: normal_file-symlink 1211s # Found file executable_file, relative to root: executable_file 1211s # Found file private_file, relative to root: private_file 1211s # Found file normal_file2, relative to root: normal_file2 1211s # Found file readonly_file, relative to root: readonly_file 1211s # Found file UTF_příliš z, relative to root: UTF_příliš z 1211s # Found file dir_příliš z, relative to root: dir_příliš z 1211s # Found file lost_symlink, relative to root: lost_symlink 1211s # Found file dir_hidden, relative to root: dir_hidden 1211s # Found file .a-hidden-file, relative to root: dir_hidden/.a-hidden-file 1211s # Found file file-in-.hidden1, relative to root: dir_hidden/file-in-.hidden1 1211s # Found file .hidden, relative to root: dir_hidden/.hidden 1211s # Found file file-in-.hidden2, relative to root: dir_hidden/file-in-.hidden2 1211s # Found file pattern_file, relative to root: pattern_file 1211s ok 4 /live-g-file/test_traverse_structure 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_enumerate/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_enumerate/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_enumerate/.dirs/system-config1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_enumerate/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_enumerate/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_enumerate/.dirs/system-data1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_enumerate/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_enumerate/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_enumerate/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_0NRNK3/live-g-file/test_enumerate/.dirs/runtime 1211s # Test enumerate '/tmp/test_live-g-file_0NRNK3/testdir_live-g-file'... 1211s # Testing file 'dir_no-access' 1211s # Testing file 'normal_file' 1211s # Testing file 'normal_file-symlink' 1211s # Testing file 'not_exists' 1211s # Testing file 'not_exists' 1211s # Testing file 'not_exists2' 1211s # Testing file 'not_exists3' 1211s # Testing file 'not_exists4' 1211s # Testing file 'dir_no-execute/file' 1211s ok 5 /live-g-file/test_enumerate 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_open/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_open/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_open/.dirs/system-config1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_open/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_open/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_open/.dirs/system-data1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_open/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_open/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_open/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_0NRNK3/live-g-file/test_open/.dirs/runtime 1211s # test_open: 'dir1' 1211s # test_open: 'dir_no-access' 1211s # test_open: 'target-file' 1211s # test_open: 'normal_file-symlink' 1211s # test_open: 'executable_file' 1211s # test_open: 'private_file' 1211s # test_open: 'readonly_file' 1211s # test_open: 'UTF_příliš z' 1211s # test_open: 'pattern_file' 1211s # test_open: 'not_exists' 1211s # test_open: 'dir_no-execute/file' 1211s # test_open: 'lost_symlink' 1211s ok 6 /live-g-file/test_open 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_create/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_create/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_create/.dirs/system-config1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_create/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_create/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_create/.dirs/system-data1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_create/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_create/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_create/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_0NRNK3/live-g-file/test_create/.dirs/runtime 1211s # test_create: 'dir1' 1211s # error code 3 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir1”: Is a directory 1211s # test_create: 'dir1/subdir' 1211s # error code 3 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir1/subdir”: Is a directory 1211s # test_create: 'dir2' 1211s # error code 2 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir2”: File exists 1211s # test_create: 'normal_file' 1211s # error code 2 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/normal_file”: File exists 1211s # test_create: 'executable_file' 1211s # test_create: 'private_file' 1211s # test_create: 'normal_file2' 1211s # test_create: 'UTF_příliš z' 1211s # error code 2 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/UTF_příliš z”: File exists 1211s # test_create: 'dir_příliš z' 1211s # error code 2 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_příliš z”: File exists 1211s # test_create: 'pattern_file' 1211s # test_create: 'not_exists2' 1211s # test_create: 'not_exists3' 1211s # test_create: 'not_exists4' 1211s ok 7 /live-g-file/test_create 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_copy_move/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_copy_move/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_copy_move/.dirs/system-config1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_copy_move/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_copy_move/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_copy_move/.dirs/system-data1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_copy_move/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_copy_move/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_copy_move/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_0NRNK3/live-g-file/test_copy_move/.dirs/runtime 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'dir1/subdir' --> 'dir-target' 1211s # res = 0, error code 25 = Can’t recursively copy directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'dir1/subdir' --> '.' 1211s # res = 0, error code 2 = Target file exists 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'dir1/subdir' --> 'target-file' 1211s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/target-file/dir1/subdir”: Not a directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'dir1/subdir' --> 'not_exists' 1211s # res = 0, error code 25 = Can’t recursively copy directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'dir1/subdir' --> 'dir_no-access' 1211s # res = 0, error code 25 = Can’t recursively copy directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'dir1/subdir' --> 'dir_no-write' 1211s # res = 0, error code 25 = Can’t recursively copy directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'dir2' --> 'dir-target' 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'dir-target' --> 'dir-target' 1211s # res = 0, error code 25 = Can’t recursively copy directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'dir-target' --> '.' 1211s # res = 0, error code 2 = Target file exists 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'dir-target' --> 'target-file' 1211s # res = 0, error code 4 = Error when getting information for file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/target-file/dir-target”: Not a directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'dir-target' --> 'not_exists' 1211s # res = 0, error code 25 = Can’t recursively copy directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'dir-target' --> 'dir_no-access' 1211s # res = 0, error code 25 = Can’t recursively copy directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'dir-target' --> 'dir_no-write' 1211s # res = 0, error code 25 = Can’t recursively copy directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'target-file' --> 'dir-target' 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'target-file' --> '.' 1211s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/target-file”: File exists 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'target-file' --> 'target-file' 1211s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/target-file/target-file”: Not a directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'target-file' --> 'not_exists' 1211s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists/target-file”: No such file or directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'target-file' --> 'dir_no-access' 1211s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-access/target-file”: Permission denied 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'target-file' --> 'dir_no-write' 1211s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-write/target-file”: Permission denied 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'normal_file-symlink' --> 'dir-target' 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'normal_file-symlink' --> '.' 1211s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/normal_file-symlink: File exists 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'normal_file-symlink' --> 'target-file' 1211s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/target-file/normal_file-symlink: Not a directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'normal_file-symlink' --> 'not_exists' 1211s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists/normal_file-symlink: No such file or directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'normal_file-symlink' --> 'dir_no-access' 1211s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-access/normal_file-symlink: Permission denied 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'normal_file-symlink' --> 'dir_no-write' 1211s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-write/normal_file-symlink: Permission denied 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'executable_file' --> 'dir-target' 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'executable_file' --> 'dir-target' 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'executable_file' --> '.' 1211s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/executable_file”: File exists 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'executable_file' --> 'target-file' 1211s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/target-file/executable_file”: Not a directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'executable_file' --> 'not_exists' 1211s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists/executable_file”: No such file or directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'executable_file' --> 'dir_no-access' 1211s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-access/executable_file”: Permission denied 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'executable_file' --> 'dir_no-write' 1211s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-write/executable_file”: Permission denied 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'private_file' --> 'dir-target' 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'private_file' --> 'dir-target' 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'private_file' --> '.' 1211s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/private_file”: File exists 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'private_file' --> 'target-file' 1211s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/target-file/private_file”: Not a directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'private_file' --> 'not_exists' 1211s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists/private_file”: No such file or directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'private_file' --> 'dir_no-access' 1211s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-access/private_file”: Permission denied 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'private_file' --> 'dir_no-write' 1211s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-write/private_file”: Permission denied 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'normal_file2' --> 'dir-target' 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'normal_file2' --> 'dir-target' 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'normal_file2' --> '.' 1211s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/normal_file2”: File exists 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'normal_file2' --> 'target-file' 1211s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/target-file/normal_file2”: Not a directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'normal_file2' --> 'not_exists' 1211s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists/normal_file2”: No such file or directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'normal_file2' --> 'dir_no-access' 1211s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-access/normal_file2”: Permission denied 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'normal_file2' --> 'dir_no-write' 1211s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-write/normal_file2”: Permission denied 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'UTF_příliš z' --> 'dir-target' 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'UTF_příliš z' --> '.' 1211s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/UTF_příliš z”: File exists 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'UTF_příliš z' --> 'target-file' 1211s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/target-file/UTF_příliš z”: Not a directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'UTF_příliš z' --> 'not_exists' 1211s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists/UTF_příliš z”: No such file or directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'UTF_příliš z' --> 'dir_no-access' 1211s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-access/UTF_příliš z”: Permission denied 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'UTF_příliš z' --> 'dir_no-write' 1211s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-write/UTF_příliš z”: Permission denied 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'pattern_file' --> 'dir-target' 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'pattern_file' --> '.' 1211s # res = 0, error code 2 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/pattern_file”: File exists 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'pattern_file' --> 'target-file' 1211s # res = 0, error code 4 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/target-file/pattern_file”: Not a directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'pattern_file' --> 'not_exists' 1211s # res = 0, error code 1 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists/pattern_file”: No such file or directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'pattern_file' --> 'dir_no-access' 1211s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-access/pattern_file”: Permission denied 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'pattern_file' --> 'dir_no-write' 1211s # res = 0, error code 14 = Error opening file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-write/pattern_file”: Permission denied 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'not_exists' --> 'dir-target' 1211s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists”: No such file or directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'not_exists' --> '.' 1211s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists”: No such file or directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'not_exists' --> 'target-file' 1211s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists”: No such file or directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'not_exists' --> 'not_exists' 1211s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists”: No such file or directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'not_exists' --> 'dir_no-access' 1211s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists”: No such file or directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'not_exists' --> 'dir_no-write' 1211s # res = 0, error code 1 = Error when getting information for file “/tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists”: No such file or directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'not_exists' --> 'dir-target' 1211s # res = 0, error code 1 = Error moving file /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists: No such file or directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'lost_symlink' --> 'dir-target' 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'lost_symlink' --> '.' 1211s # res = 0, error code 2 = Error making symbolic link /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/lost_symlink: File exists 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'lost_symlink' --> 'target-file' 1211s # res = 0, error code 4 = Error making symbolic link /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/target-file/lost_symlink: Not a directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'lost_symlink' --> 'not_exists' 1211s # res = 0, error code 1 = Error making symbolic link /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists/lost_symlink: No such file or directory 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'lost_symlink' --> 'dir_no-access' 1211s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-access/lost_symlink: Permission denied 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s # do_copy_move: 'lost_symlink' --> 'dir_no-write' 1211s # res = 0, error code 14 = Error making symbolic link /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-write/lost_symlink: Permission denied 1211s ok 8 /live-g-file/test_copy_move 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_delete/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_delete/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_delete/.dirs/system-config1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_delete/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_delete/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_delete/.dirs/system-data1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_delete/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_delete/.dirs/data 1211s ok - glib/live-g-file.test 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_delete/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_0NRNK3/live-g-file/test_delete/.dirs/runtime 1211s # Deleting dir1, path = /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir1 1211s # result = 0, error = Error removing file /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir1: Directory not empty 1211s # Deleting dir2, path = /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir2 1211s # result = 0, error = Error removing file /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir2: No such file or directory 1211s # Deleting executable_file, path = /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/executable_file 1211s # result = 0, error = Error trashing file /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/executable_file: No such file or directory 1211s # Deleting readonly_file, path = /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/readonly_file 1211s # Deleting dir_příliš z, path = /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_příliš z 1211s # Deleting not_exists, path = /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists 1211s # result = 0, error = Error removing file /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists: No such file or directory 1211s # Deleting not_exists, path = /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists 1211s # result = 0, error = Error trashing file /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/not_exists: No such file or directory 1211s # Deleting dir_no-execute/file, path = /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-execute/file 1211s # result = 0, error = Error removing file /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/dir_no-execute/file: No such file or directory 1211s # Deleting lost_symlink, path = /tmp/test_live-g-file_0NRNK3/testdir_live-g-file/lost_symlink 1211s ok 9 /live-g-file/test_delete 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_make_directory_with_parents/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_make_directory_with_parents/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_make_directory_with_parents/.dirs/system-config1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_make_directory_with_parents/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_make_directory_with_parents/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_make_directory_with_parents/.dirs/system-data1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_make_directory_with_parents/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_make_directory_with_parents/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_make_directory_with_parents/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_0NRNK3/live-g-file/test_make_directory_with_parents/.dirs/runtime 1211s # We do not have CAP_DAC_OVERRIDE or equivalent 1211s ok 10 /live-g-file/test_make_directory_with_parents 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/final_clean/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/final_clean/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/final_clean/.dirs/system-config1:/tmp/test_live-g-file_0NRNK3/live-g-file/final_clean/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/final_clean/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/final_clean/.dirs/system-data1:/tmp/test_live-g-file_0NRNK3/live-g-file/final_clean/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/final_clean/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/final_clean/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_0NRNK3/live-g-file/final_clean/.dirs/runtime 1211s # Cleaning target testing structure in '/tmp/test_live-g-file_0NRNK3/testdir_live-g-file'... 1211s # deleting 'dir1' 1211s # deleting 'subdir' 1211s # deleting 'dir-target' 1211s # deleting 'dir2' 1211s # deleting 'target-file' 1211s # deleting 'normal_file-symlink' 1211s # deleting 'pattern_file' 1211s # deleting 'executable_file' 1211s # deleting 'private_file' 1211s # deleting 'normal_file2' 1211s # deleting 'UTF_příliš z' 1211s # deleting 'lost_symlink' 1211s # deleting 'dir_no-access' 1211s # deleting 'dir_no-write' 1211s # deleting 'target-file' 1211s # deleting 'normal_file' 1211s # deleting 'normal_file-symlink' 1211s # deleting 'executable_file~' 1211s # deleting 'private_file' 1211s # deleting 'normal_file2~' 1211s # deleting 'a' 1211s # deleting 'UTF_příliš z' 1211s # deleting 'dir_hidden' 1211s # deleting '.a-hidden-file' 1211s # deleting 'file-in-.hidden1' 1211s # deleting '.hidden' 1211s # deleting 'file-in-.hidden2' 1211s # deleting 'pattern_file' 1211s # deleting 'executable_file' 1211s # deleting 'normal_file2' 1211s # deleting 'not_exists2' 1211s # deleting 'not_exists3' 1211s # deleting 'not_exists4' 1211s ok 11 /live-g-file/final_clean 1211s # Start of test_unix_is_mountpoint tests 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/sysroot/.dirs/runtime 1211s ok 12 /live-g-file/test_unix_is_mountpoint/sysroot 1211s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/home 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/cache 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-config2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/config 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data1:/tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/system-data2 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/data 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/state 1211s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_live-g-file_0NRNK3/live-g-file/test_unix_is_mountpoint/proc/.dirs/runtime 1211s ok 13 /live-g-file/test_unix_is_mountpoint/proc 1211s # End of test_unix_is_mountpoint tests 1211s # End of live-g-file tests 1211s # Running test: glib/giomodule.test 1211s TAP version 14 1211s # random seed: R02Scfe66454293cf50cc353dafcb970f54a 1211s 1..3 1211s # Start of giomodule tests 1211s ok 1 /giomodule/extension-point 1211s ok 2 /giomodule/module-scan-all 1211s ok - glib/giomodule.test 1211s # Running test: glib/cxx-17.test 1211s ok 3 /giomodule/module-scan-all-with-scope 1211s # End of giomodule tests 1211s TAP version 14 1211s # random seed: R02S04a56172bad2344325a6b7f1e10d77e3 1211s 1..2 1211s # Start of gtask tests 1211s ok - glib/cxx-17.test 1211s # 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. 1211s ok 1 /gtask/name 1211s # Start of name tests 1211s # 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. 1211s ok 2 /gtask/name/macro-wrapper 1211s # End of name tests 1211s # End of gtask tests 1211s # Running test: glib/onceinit.test 1211s TAP version 14 1211s # random seed: R02S208956821003acda957fba5ac61f26f2 1211s 1..1 1211s # Start of thread tests 1212s ok - glib/onceinit.test 1212s ok 1 /thread/onceinit 1212s # End of thread tests 1212s # Running test: glib/mem-overflow.test 1212s TAP version 14 1212s # random seed: R02S2af91471de2097a606ebc0866d6da8ee 1212s 1..2 1212s # Start of mem tests 1212s ok 1 /mem/overflow 1212s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=615379 1212s ok 2 /mem/empty-alloc 1212s # Start of overflow tests 1212s # Start of subprocess tests 1212s # End of subprocess tests 1212s # End of overflow tests 1212s # Start of empty-alloc tests 1212s # End of empty-alloc tests 1212s # End of mem tests 1212s ok - glib/mem-overflow.test 1212s # Running test: glib/param.test 1212s TAP version 14 1212s # random seed: R02Sef9afeb343aa51aad3fdff7885cd840d 1212s 1..32 1212s # Start of param tests 1212s ok 1 /param/value 1212s ok 2 /param/strings 1212s ok 3 /param/qdata 1212s ok 4 /param/validate 1212s ok 5 /param/convert 1212s ok 6 /param/implement # SKIP Skipping slow /param/implement test 1212s ok 7 /param/default 1212s ok 8 /param/is-valid-name 1212s # Start of invalid-name tests 1212s # /param/invalid-name/colon summary: Test that properties cannot be created with invalid names 1212s ok 9 /param/invalid-name/colon 1212s # /param/invalid-name/first-char summary: Test that properties cannot be created with invalid names 1212s ok 10 /param/invalid-name/first-char 1212s # /param/invalid-name/empty summary: Test that properties cannot be created with invalid names 1212s ok 11 /param/invalid-name/empty 1212s # End of invalid-name tests 1212s # Start of implement tests 1212s # Start of subprocess tests 1212s # End of subprocess tests 1212s # End of implement tests 1212s # End of param tests 1212s # Start of value tests 1212s ok 12 /value/transform 1212s # End of value tests 1212s # Start of paramspec tests 1212s ok 13 /paramspec/char 1212s ok 14 /paramspec/uchar 1212s ok 15 /paramspec/int 1212s ok 16 /paramspec/uint 1212s ok 17 /paramspec/long 1212s ok 18 /paramspec/ulong 1212s ok 19 /paramspec/int64 1212s ok 20 /paramspec/uint64 1212s ok 21 /paramspec/float 1212s ok 22 /paramspec/double 1212s ok 23 /paramspec/unichar 1212s ok 24 /paramspec/param 1212s ok 25 /paramspec/null-param 1212s ok 26 /paramspec/string 1212s ok 27 /paramspec/override 1212s ok 28 /paramspec/gtype 1212s ok 29 /paramspec/variant 1212s ok 30 /paramspec/custom 1212s ok 31 /paramspec/pool 1212s # Start of variant tests 1212s ok 32 /paramspec/variant/cmp 1212s # End of variant tests 1212s # End of paramspec tests 1212s ok - glib/param.test 1212s # Running test: glib/appmonitor.test 1212s ok - glib/appmonitor.test 1212s TAP version 14 1212s # random seed: R02S1edff61bf3d3fa85393645e4677b1e61 1212s 1..1 1212s # Start of monitor tests 1212s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_appmonitor_4YW9J3/monitor/app/.dirs/home 1212s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_appmonitor_4YW9J3/monitor/app/.dirs/cache 1212s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_appmonitor_4YW9J3/monitor/app/.dirs/system-config1:/tmp/test_appmonitor_4YW9J3/monitor/app/.dirs/system-config2 1212s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_appmonitor_4YW9J3/monitor/app/.dirs/config 1212s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_appmonitor_4YW9J3/monitor/app/.dirs/system-data1:/tmp/test_appmonitor_4YW9J3/monitor/app/.dirs/system-data2 1212s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_appmonitor_4YW9J3/monitor/app/.dirs/data 1212s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_appmonitor_4YW9J3/monitor/app/.dirs/state 1212s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_appmonitor_4YW9J3/monitor/app/.dirs/runtime 1212s # Using data directory: /tmp/test_appmonitor_4YW9J3/monitor/app/.dirs/data 1212s ok 1 /monitor/app 1212s # End of monitor tests 1212s # Running test: glib/rwlock.test 1212s TAP version 14 1212s # random seed: R02S48c0a6c88cd62ae84df2de6b181db410 1212s 1..8 1212s # Start of thread tests 1212s ok 1 /thread/rwlock1 1212s ok 2 /thread/rwlock2 1212s ok 3 /thread/rwlock3 1212s ok 4 /thread/rwlock4 1212s ok 5 /thread/rwlock5 1212s ok 6 /thread/rwlock6 1213s # Executing: glib/rwlock.test 1217s ok 7 /thread/rwlock7 1217s # slow test /thread/rwlock7 executed in 4.92 secs 1217s ok 8 /thread/rwlock8 1217s # End of thread tests 1217s ok - glib/rwlock.test 1217s # Running test: glib/async-close-output-stream.test 1217s TAP version 14 1217s # random seed: R02S89eb00761a188d2023b0636cb132f0ac 1217s 1..3 1217s # Start of close-async tests 1217s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1217s ok 1 /close-async/without-flush 1217s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1217s ok 2 /close-async/with-flush 1217s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=617937 1217s ok - glib/async-close-output-stream.test 1217s # Running test: glib/type-flags.test 1217s ok - glib/type-flags.test 1217s # Running test: glib/gdbus-subscribe.test 1217s ok 3 /close-async/with-async-flush 1217s # End of close-async tests 1217s TAP version 14 1217s # random seed: R02Sc0ab48324028f7a799008d5cb9bfc1ac 1217s 1..4 1217s # Start of type tests 1217s # Start of flags tests 1217s ok 1 /type/flags/interface 1217s ok 2 /type/flags/final 1217s # /type/flags/deprecated summary: Test that trying to instantiate a deprecated type results in a warning. 1217s ok 3 /type/flags/deprecated 1217s # Start of final tests 1217s ok 4 /type/flags/final/instance-check 1217s # End of final tests 1217s # End of flags tests 1217s # End of type tests 1217s TAP version 14 1217s # random seed: R02Sedffec1e776d921d7d108824a1c7f0e5 1217s 1..24 1217s # Start of gdbus tests 1217s # Start of subscribe tests 1217s # Start of conn tests 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/simple/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/simple/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/simple/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/simple/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/simple/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/simple/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/simple/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/simple/.dirs/runtime 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/conn/simple summary: A broadcast is only received after subscribing to it 1217s # Step 0: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 1: adding subscription 1217s # Sender: (any) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Waiting for AddMatch to be processed 1217s # Step 2: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 2 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 1 /gdbus/subscribe/conn/simple 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/broadcast_from_anyone/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/conn/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1217s # Step 0: adding subscription 1217s # Sender: (any) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Waiting for AddMatch to be processed 1217s # Step 1: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 2: emitting signal 1217s # Sender: service 2 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 3: emitting signal 1217s # Sender: service 1217s # Destination: subscriber :1.0 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 4: emitting signal 1217s # Sender: service 2 1217s # Destination: subscriber :1.0 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 1 1217s # Signal received from service 2 :1.2 1217s # Signal received from service 2 :1.2 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 2 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 3 1217s # Signal received from service 2 :1.2 1217s # Signal received from service 2 :1.2 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 4 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1217s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1217s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1217s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 2 /gdbus/subscribe/conn/broadcast_from_anyone 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/match_twice/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/match_twice/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/match_twice/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/match_twice/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/match_twice/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/match_twice/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/match_twice/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/match_twice/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/conn/match_twice summary: A message matching more than one subscription is received once per subscription 1217s # Step 0: adding subscription 1217s # Sender: service :1.1 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Waiting for AddMatch to be processed 1217s # Step 1: adding subscription 1217s # Sender: (any) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: (any) 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Waiting for AddMatch to be processed 1217s # Step 2: adding subscription 1217s # Sender: (any) 1217s # Path: (any) 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Waiting for AddMatch to be processed 1217s # Step 3: adding subscription 1217s # Sender: service :1.1 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Waiting for AddMatch to be processed 1217s # Step 4: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 4 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 4 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 4 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 4 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 3 /gdbus/subscribe/conn/match_twice 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_unique_name/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/conn/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1217s # Step 0: adding subscription 1217s # Sender: service :1.1 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Waiting for AddMatch to be processed 1217s # Step 1: emitting signal 1217s # Sender: attacker 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 2: emitting signal 1217s # Sender: attacker 1217s # Destination: subscriber :1.0 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 3: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 3 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 4 /gdbus/subscribe/conn/limit_by_unique_name 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/nonexistent_unique_name/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/conn/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1217s # Step 0: adding subscription 1217s # Sender: :0.this.had.better.not.exist 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Waiting for AddMatch to be processed 1217s # Step 1: emitting signal 1217s # Sender: attacker 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 2: emitting signal 1217s # Sender: attacker 1217s # Destination: subscriber :1.0 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 5 /gdbus/subscribe/conn/nonexistent_unique_name 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_by_well_known_name/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/conn/limit_by_well_known_name summary: A subscription via a well-known name only accepts messages sent by the owner of that well-known name 1217s # Step 0: claiming bus name 1217s # Name: org.gtk.Test.AlreadyOwned 1217s # Owner: service 1217s # Step 1: adding subscription 1217s # Sender: org.gtk.Test.AlreadyOwned 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Waiting for AddMatch to be processed 1217s # Step 2: adding subscription 1217s # Sender: org.gtk.Test.OwnedLater 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Waiting for AddMatch to be processed 1217s # Step 3: emitting signal 1217s # Sender: attacker 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 4: emitting signal 1217s # Sender: attacker 1217s # Destination: subscriber :1.0 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 5: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 6: claiming bus name 1217s # Name: org.gtk.Test.OwnedLater 1217s # Owner: service 1217s # Step 7: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 5 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 7 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 7 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1217s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 6 /gdbus/subscribe/conn/limit_by_well_known_name 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/limit_to_message_bus/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/conn/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1217s # Step 0: adding subscription 1217s # Sender: org.freedesktop.DBus 1217s # Path: /org/freedesktop/DBus 1217s # Interface: org.freedesktop.DBus 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Waiting for AddMatch to be processed 1217s # Step 1: emitting signal 1217s # Sender: attacker 1217s # Destination: (broadcast) 1217s # Path: /org/freedesktop/DBus 1217s # Interface: org.freedesktop.DBus 1217s # Member: NameOwnerChanged 1217s # String argument 0: would I lie to you? 1217s # Waiting for signal to reach message bus 1217s # Step 2: emitting signal 1217s # Sender: attacker 1217s # Destination: subscriber :1.0 1217s # Path: /org/freedesktop/DBus 1217s # Interface: org.freedesktop.DBus 1217s # Member: NameOwnerChanged 1217s # Waiting for signal to reach message bus 1217s # Step 3: claiming bus name 1217s # Name: org.gtk.Test.OwnedLater 1217s # Owner: service 1217s # Signal received from message bus org.freedesktop.DBus 1217s # Signal received from (unused) org.freedesktop.DBus via connection 1217s # Path: /org/freedesktop/DBus 1217s # Interface: org.freedesktop.DBus 1217s # Member: NameOwnerChanged 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1217s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 7 /gdbus/subscribe/conn/limit_to_message_bus 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/conn/unsubscribe_immediately/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/conn/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1217s # Step 0: claiming bus name 1217s # Name: org.gtk.Test.AlreadyOwned 1217s # Owner: service 1217s # Step 1: adding subscription 1217s # Sender: org.gtk.Test.AlreadyOwned 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Immediately unsubscribing 1217s # Waiting for AddMatch to be processed 1217s # Step 2: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 8 /gdbus/subscribe/conn/unsubscribe_immediately 1217s # End of conn tests 1217s # Start of proxy tests 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/simple/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/simple/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/simple/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/simple/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/simple/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/simple/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/simple/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/simple/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/proxy/simple summary: A broadcast is only received after subscribing to it 1217s # Step 0: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 1: adding subscription 1217s # Sender: (any) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Cannot subscribe via proxy: no bus name 1217s # Waiting for AddMatch to be processed 1217s # Step 2: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 9 /gdbus/subscribe/proxy/simple 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/broadcast_from_anyone/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/proxy/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1217s # Step 0: adding subscription 1217s # Sender: (any) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Cannot subscribe via proxy: no bus name 1217s # Waiting for AddMatch to be processed 1217s # Step 1: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 2: emitting signal 1217s # Sender: service 2 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 3: emitting signal 1217s # Sender: service 1217s # Destination: subscriber :1.0 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 4: emitting signal 1217s # Sender: service 2 1217s # Destination: subscriber :1.0 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 10 /gdbus/subscribe/proxy/broadcast_from_anyone 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/match_twice/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/match_twice/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/match_twice/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/match_twice/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/match_twice/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/match_twice/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/match_twice/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/match_twice/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/proxy/match_twice summary: A message matching more than one subscription is received once per subscription 1217s # Step 0: adding subscription 1217s # Sender: service :1.1 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 1: adding subscription 1217s # Sender: (any) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: (any) 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Cannot subscribe via proxy: no bus name 1217s # Waiting for AddMatch to be processed 1217s # Step 2: adding subscription 1217s # Sender: (any) 1217s # Path: (any) 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Cannot subscribe via proxy: no bus name 1217s # Waiting for AddMatch to be processed 1217s # Step 3: adding subscription 1217s # Sender: service :1.1 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 4: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via proxy 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 4 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via proxy 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 4 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 11 /gdbus/subscribe/proxy/match_twice 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_unique_name/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/proxy/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1217s # Step 0: adding subscription 1217s # Sender: service :1.1 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 1: emitting signal 1217s # Sender: attacker 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 2: emitting signal 1217s # Sender: attacker 1217s # Destination: subscriber :1.0 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 3: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via proxy 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 3 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 12 /gdbus/subscribe/proxy/limit_by_unique_name 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/nonexistent_unique_name/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/proxy/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1217s # Step 0: adding subscription 1217s # Sender: :0.this.had.better.not.exist 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 1: emitting signal 1217s # Sender: attacker 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 2: emitting signal 1217s # Sender: attacker 1217s # Destination: subscriber :1.0 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 13 /gdbus/subscribe/proxy/nonexistent_unique_name 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_by_well_known_name/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/proxy/limit_by_well_known_name summary: A subscription via a well-known name only accepts messages sent by the owner of that well-known name 1217s # Step 0: claiming bus name 1217s # Name: org.gtk.Test.AlreadyOwned 1217s # Owner: service 1217s # Step 1: adding subscription 1217s # Sender: org.gtk.Test.AlreadyOwned 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 2: adding subscription 1217s # Sender: org.gtk.Test.OwnedLater 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 3: emitting signal 1217s # Sender: attacker 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 4: emitting signal 1217s # Sender: attacker 1217s # Destination: subscriber :1.0 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 5: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 6: claiming bus name 1217s # Name: org.gtk.Test.OwnedLater 1217s # Owner: service 1217s # Step 7: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via proxy 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 5 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via proxy 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 7 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via proxy 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 7 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1217s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 14 /gdbus/subscribe/proxy/limit_by_well_known_name 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/limit_to_message_bus/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/proxy/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1217s # Step 0: adding subscription 1217s # Sender: org.freedesktop.DBus 1217s # Path: /org/freedesktop/DBus 1217s # Interface: org.freedesktop.DBus 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 1: emitting signal 1217s # Sender: attacker 1217s # Destination: (broadcast) 1217s # Path: /org/freedesktop/DBus 1217s # Interface: org.freedesktop.DBus 1217s # Member: NameOwnerChanged 1217s # String argument 0: would I lie to you? 1217s # Waiting for signal to reach message bus 1217s # Step 2: emitting signal 1217s # Sender: attacker 1217s # Destination: subscriber :1.0 1217s # Path: /org/freedesktop/DBus 1217s # Interface: org.freedesktop.DBus 1217s # Member: NameOwnerChanged 1217s # Waiting for signal to reach message bus 1217s # Step 3: claiming bus name 1217s # Name: org.gtk.Test.OwnedLater 1217s # Owner: service 1217s # Signal received from message bus org.freedesktop.DBus 1217s # Signal received from (unused) org.freedesktop.DBus via proxy 1217s # Path: /org/freedesktop/DBus 1217s # Interface: org.freedesktop.DBus 1217s # Member: NameOwnerChanged 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1217s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 15 /gdbus/subscribe/proxy/limit_to_message_bus 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/proxy/unsubscribe_immediately/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/proxy/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1217s # Step 0: claiming bus name 1217s # Name: org.gtk.Test.AlreadyOwned 1217s # Owner: service 1217s # Step 1: adding subscription 1217s # Sender: org.gtk.Test.AlreadyOwned 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 2: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via proxy 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 2 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 16 /gdbus/subscribe/proxy/unsubscribe_immediately 1217s # End of proxy tests 1217s # Start of parallel tests 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/simple/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/simple/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/simple/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/simple/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/simple/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/simple/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/simple/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/simple/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/simple/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/simple/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/parallel/simple summary: A broadcast is only received after subscribing to it 1217s # Step 0: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 1: adding subscription 1217s # Sender: (any) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Cannot subscribe via proxy: no bus name 1217s # Waiting for AddMatch to be processed 1217s # Step 2: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 2 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 0 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 0 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1217s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 17 /gdbus/subscribe/parallel/simple 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/broadcast_from_anyone/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/parallel/broadcast_from_anyone summary: A subscription with NULL sender accepts broadcast and unicast 1217s # Step 0: adding subscription 1217s # Sender: (any) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Cannot subscribe via proxy: no bus name 1217s # Waiting for AddMatch to be processed 1217s # Step 1: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 2: emitting signal 1217s # Sender: service 2 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 3: emitting signal 1217s # Sender: service 1217s # Destination: subscriber :1.0 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 4: emitting signal 1217s # Sender: service 2 1217s # Destination: subscriber :1.0 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 1 1217s # Signal received from service 2 :1.2 1217s # Signal received from service 2 :1.2 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 2 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 3 1217s # Signal received from service 2 :1.2 1217s # Signal received from service 2 :1.2 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 4 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 1 was received 1 times by GDBusConnection, expected 1 1217s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 2 was received 1 times by GDBusConnection, expected 1 1217s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1217s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 4 was received 1 times by GDBusConnection, expected 1 1217s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 18 /gdbus/subscribe/parallel/broadcast_from_anyone 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/match_twice/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/match_twice/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/match_twice/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/match_twice/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/match_twice/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/match_twice/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/match_twice/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/match_twice/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/match_twice/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/match_twice/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/parallel/match_twice summary: A message matching more than one subscription is received once per subscription 1217s # Step 0: adding subscription 1217s # Sender: service :1.1 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 1: adding subscription 1217s # Sender: (any) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: (any) 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Cannot subscribe via proxy: no bus name 1217s # Waiting for AddMatch to be processed 1217s # Step 2: adding subscription 1217s # Sender: (any) 1217s # Path: (any) 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Cannot subscribe via proxy: no bus name 1217s # Waiting for AddMatch to be processed 1217s # Step 3: adding subscription 1217s # Sender: service :1.1 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 4: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 4 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via proxy 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 4 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 4 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via proxy 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 4 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 4 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 4 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 4 was received 4 times by GDBusConnection, expected 4 1217s # Signal from step 4 was received 2 times by GDBusProxy, expected 2 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 19 /gdbus/subscribe/parallel/match_twice 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_unique_name/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/parallel/limit_by_unique_name summary: A subscription via a unique name only accepts messages sent by that same unique name 1217s # Step 0: adding subscription 1217s # Sender: service :1.1 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 1: emitting signal 1217s # Sender: attacker 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 2: emitting signal 1217s # Sender: attacker 1217s # Destination: subscriber :1.0 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 3: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 3 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via proxy 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 3 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 3 was received 1 times by GDBusConnection, expected 1 1217s # Signal from step 3 was received 1 times by GDBusProxy, expected 1 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 20 /gdbus/subscribe/parallel/limit_by_unique_name 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/nonexistent_unique_name/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/parallel/nonexistent_unique_name summary: A subscription via a unique name that doesn't exist accepts no messages 1217s # Step 0: adding subscription 1217s # Sender: :0.this.had.better.not.exist 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 1: emitting signal 1217s # Sender: attacker 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 2: emitting signal 1217s # Sender: attacker 1217s # Destination: subscriber :1.0 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 21 /gdbus/subscribe/parallel/nonexistent_unique_name 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_by_well_known_name/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/parallel/limit_by_well_known_name summary: A subscription via a well-known name only accepts messages sent by the owner of that well-known name 1217s # Step 0: claiming bus name 1217s # Name: org.gtk.Test.AlreadyOwned 1217s # Owner: service 1217s # Step 1: adding subscription 1217s # Sender: org.gtk.Test.AlreadyOwned 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 2: adding subscription 1217s # Sender: org.gtk.Test.OwnedLater 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 3: emitting signal 1217s # Sender: attacker 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 4: emitting signal 1217s # Sender: attacker 1217s # Destination: subscriber :1.0 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 5: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Step 6: claiming bus name 1217s # Name: org.gtk.Test.OwnedLater 1217s # Owner: service 1217s # Step 7: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 5 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via proxy 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 5 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 7 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via proxy 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 7 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via connection 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 7 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via proxy 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 7 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1217s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 3 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 3 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 4 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 4 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 5 was received 1 times by GDBusConnection, expected 1 1217s # Signal from step 5 was received 1 times by GDBusProxy, expected 1 1217s # NameOwnerChanged from step 6 was received 0 times by GDBusConnection, expected 0 1217s # NameOwnerChanged from step 6 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 7 was received 2 times by GDBusConnection, expected 2 1217s # Signal from step 7 was received 2 times by GDBusProxy, expected 2 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 22 /gdbus/subscribe/parallel/limit_by_well_known_name 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/limit_to_message_bus/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/parallel/limit_to_message_bus summary: A subscription to the message bus only accepts messages from the message bus 1217s # Step 0: adding subscription 1217s # Sender: org.freedesktop.DBus 1217s # Path: /org/freedesktop/DBus 1217s # Interface: org.freedesktop.DBus 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 1: emitting signal 1217s # Sender: attacker 1217s # Destination: (broadcast) 1217s # Path: /org/freedesktop/DBus 1217s # Interface: org.freedesktop.DBus 1217s # Member: NameOwnerChanged 1217s # String argument 0: would I lie to you? 1217s # Waiting for signal to reach message bus 1217s # Step 2: emitting signal 1217s # Sender: attacker 1217s # Destination: subscriber :1.0 1217s # Path: /org/freedesktop/DBus 1217s # Interface: org.freedesktop.DBus 1217s # Member: NameOwnerChanged 1217s # Waiting for signal to reach message bus 1217s # Step 3: claiming bus name 1217s # Name: org.gtk.Test.OwnedLater 1217s # Owner: service 1217s # Signal received from message bus org.freedesktop.DBus 1217s # Signal received from (unused) org.freedesktop.DBus via connection 1217s # Path: /org/freedesktop/DBus 1217s # Interface: org.freedesktop.DBus 1217s # Member: NameOwnerChanged 1217s # Signal received from message bus org.freedesktop.DBus 1217s # Signal received from (unused) org.freedesktop.DBus via proxy 1217s # Path: /org/freedesktop/DBus 1217s # Interface: org.freedesktop.DBus 1217s # Member: NameOwnerChanged 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # Signal from step 1 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 1 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 2 was received 0 times by GDBusProxy, expected 0 1217s # NameOwnerChanged from step 3 was received 1 times by GDBusConnection, expected 1 1217s # NameOwnerChanged from step 3 was received 1 times by GDBusProxy, expected 1 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 23 /gdbus/subscribe/parallel/limit_to_message_bus 1217s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/home 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/cache 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-config2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/config 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data1:/tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/system-data2 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/data 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/state 1217s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-subscribe_FBZ4J3/gdbus/subscribe/parallel/unsubscribe_immediately/.dirs/runtime 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1217s # subscriber is :1.0 1217s # service is :1.1 1217s # service 2 is :1.2 1217s # attacker is :1.3 1217s # Waiting for AddMatch to be processed 1217s # /gdbus/subscribe/parallel/unsubscribe_immediately summary: Unsubscribing before GetNameOwner can return doesn't result in a crash 1217s # Step 0: claiming bus name 1217s # Name: org.gtk.Test.AlreadyOwned 1217s # Owner: service 1217s # Step 1: adding subscription 1217s # Sender: org.gtk.Test.AlreadyOwned 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: (any) 1217s # String argument 0: (any) 1217s # Flags: 0 1217s # Subscribing via connection 1217s # Immediately unsubscribing 1217s # Subscribing via proxy 1217s # Waiting for AddMatch to be processed 1217s # Step 2: emitting signal 1217s # Sender: service 1217s # Destination: (broadcast) 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Waiting for signal to reach message bus 1217s # Signal received from service :1.1 1217s # Signal received from service :1.1 via proxy 1217s # Path: /org/gtk/GDBus/ExampleInterface 1217s # Interface: org.gtk.GDBus.ExampleInterface 1217s # Member: Foo 1217s # Argument 0: (not a string) 1217s # Sent in step: 2 1217s # Received Finished signal from subscriber :1.0 1217s # Received Finished signal from service :1.1 1217s # Received Finished signal from service 2 :1.2 1217s # Received Finished signal from attacker :1.3 1217s # NameOwnerChanged from step 0 was received 0 times by GDBusConnection, expected 0 1217s # NameOwnerChanged from step 0 was received 0 times by GDBusProxy, expected 0 1217s # Signal from step 2 was received 0 times by GDBusConnection, expected 0 1217s # Signal from step 2 was received 1 times by GDBusProxy, expected 1 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1217s ok 24 /gdbus/subscribe/parallel/unsubscribe_immediately 1217s # End of parallel tests 1217s # End of subscribe tests 1217s # End of gdbus tests 1217s ok - glib/gdbus-subscribe.test 1217s # Running test: glib/sequence.test 1217s TAP version 14 1217s # random seed: R02Saf4c41cfdecc16faecf72552ac04a01a 1217s 1..16 1217s # Start of sequence tests 1217s ok 1 /sequence/out-of-range-jump 1217s ok 2 /sequence/iter-move 1217s ok 3 /sequence/insert-sorted-non-pointer 1217s ok 4 /sequence/stable-sort 1217s ok 5 /sequence/is_empty 1217s # Start of random tests 1218s # Executing: glib/sequence.test 1218s ok 6 /sequence/random/seed:825541564 1218s # slow test /sequence/random/seed:825541564 executed in 0.68 secs 1219s ok 7 /sequence/random/seed:801678400 1219s # slow test /sequence/random/seed:801678400 executed in 0.64 secs 1219s ok 8 /sequence/random/seed:1477639090 1219s # slow test /sequence/random/seed:1477639090 executed in 0.67 secs 1220s ok 9 /sequence/random/seed:3369132895 1220s # slow test /sequence/random/seed:3369132895 executed in 0.62 secs 1221s ok 10 /sequence/random/seed:1192944867 1221s # slow test /sequence/random/seed:1192944867 executed in 0.65 secs 1221s ok 11 /sequence/random/seed:770458294 1221s # slow test /sequence/random/seed:770458294 executed in 0.68 secs 1222s ok 12 /sequence/random/seed:1099575817 1222s # slow test /sequence/random/seed:1099575817 executed in 0.65 secs 1223s ok 13 /sequence/random/seed:590523467 1223s # slow test /sequence/random/seed:590523467 executed in 0.67 secs 1223s # Executing: glib/sequence.test 1223s ok 14 /sequence/random/seed:3583571454 1223s # slow test /sequence/random/seed:3583571454 executed in 0.68 secs 1224s ok 15 /sequence/random/seed:579241222 1224s # slow test /sequence/random/seed:579241222 executed in 0.68 secs 1225s ok 16 /sequence/random/seed:148007819 1225s # slow test /sequence/random/seed:148007819 executed in 0.66 secs 1225s # End of random tests 1225s # End of sequence tests 1225s ok - glib/sequence.test 1225s # Running test: glib/win32-appinfo.test 1225s TAP version 14 1225s # random seed: R02S535ed90b3160f5ad7c10abacaf999020 1225s 1..5 1225s # Start of appinfo tests 1225s ok 1 /appinfo/utf16-strfuncs 1225s ok 2 /appinfo/win32-extract-executable 1225s ok 3 /appinfo/win32-rundll32-fixup 1225s ok 4 /appinfo/win32-parse-filename 1225s ok 5 /appinfo/win32-utf16-conversion-fail 1225s # Start of subprocess tests 1225s # End of subprocess tests 1225s # End of appinfo tests 1225s ok - glib/win32-appinfo.test 1225s # Running test: glib/tree.test 1225s ok - glib/tree.test 1225s # Running test: glib/reference.test 1225s TAP version 14 1225s # random seed: R02S149756ace075ff489414b1d9cd37a849 1225s 1..7 1225s # Start of tree tests 1225s ok 1 /tree/search 1225s ok 2 /tree/remove 1225s ok 3 /tree/destroy 1225s ok 4 /tree/traverse 1225s ok 5 /tree/insert 1225s ok 6 /tree/bounds 1225s ok 7 /tree/remove-all 1225s # End of tree tests 1225s TAP version 14 1225s # random seed: R02S7bed2de9a95d287db4f2c5bc14036489 1225s 1..29 1225s # Start of type tests 1225s ok 1 /type/fundamentals 1225s ok 2 /type/qdata 1225s ok 3 /type/query 1225s ok 4 /type/class-private 1225s # End of type tests 1225s # Start of object tests 1225s ok 5 /object/clear 1225s ok 6 /object/clear-function 1225s ok 7 /object/set 1225s ok 8 /object/set-function 1225s ok 9 /object/value 1225s ok 10 /object/initially-unowned 1225s ok 11 /object/weak-pointer 1225s ok 12 /object/weak-ref 1225s ok 13 /object/toggle-ref 1225s ok 14 /object/qdata 1225s ok 15 /object/qdata2 1225s # Start of set tests 1225s # /object/set/derived-type summary: Check that g_set_object() doesn’t give strict aliasing warnings when used on types derived from GObject 1225s ok 16 /object/set/derived-type 1225s # End of set tests 1225s # Start of weak-pointer tests 1225s ok 17 /object/weak-pointer/clear 1225s ok 18 /object/weak-pointer/clear-function 1225s ok 19 /object/weak-pointer/set 1225s ok 20 /object/weak-pointer/set-function 1225s # End of weak-pointer tests 1225s # Start of weak-ref tests 1225s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1225s # /object/weak-ref/on-dispose summary: Test that a weak ref set during dispose vfunc is cleared 1225s ok 21 /object/weak-ref/on-dispose 1225s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/865 1225s # /object/weak-ref/on-run-dispose summary: Test that a weak ref is cleared on g_object_run_dispose() 1225s ok 22 /object/weak-ref/on-run-dispose 1225s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1225s # /object/weak-ref/on-toggle-notify summary: Test that a weak ref set on toggle notify is cleared 1225s ok 23 /object/weak-ref/on-toggle-notify 1225s ok 24 /object/weak-ref/in-toggle-notify 1225s ok 25 /object/weak-ref/many 1225s # Start of concurrent tests 1225s ok 26 /object/weak-ref/concurrent/0 1225s ok - glib/reference.test 1225s # Running test: glib/utils.test 1225s ok 27 /object/weak-ref/concurrent/1 1225s # End of concurrent tests 1225s # End of weak-ref tests 1225s # Start of toggle-ref tests 1225s ok 28 /object/toggle-ref/ref-on-dispose 1225s ok 29 /object/toggle-ref/ref-and-notify-on-dispose 1225s # End of toggle-ref tests 1225s # End of object tests 1225s TAP version 14 1225s # random seed: R02S89d4df305ccef0d42c283c20db7b1245 1225s 1..41 1225s # Start of utils tests 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/language-names/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/language-names/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/language-names/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/language-names/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/language-names/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/language-names/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/language-names/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/language-names/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/language-names/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/language-names/.dirs/runtime 1225s ok 1 /utils/language-names 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/locale-variants/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/locale-variants/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/locale-variants/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/locale-variants/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/locale-variants/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/locale-variants/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/locale-variants/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/locale-variants/.dirs/runtime 1225s # Testing locale ‘en’ 1225s # Testing locale ‘sr@latin’ 1225s # Testing locale ‘fr_BE’ 1225s # Testing locale ‘sr_SR@latin’ 1225s # Testing locale ‘sr_SR@latin.UTF-8’ 1225s # Testing locale ‘sr@latin_invalid’ 1225s # Testing locale ‘sr.UTF-8@latin’ 1225s # Testing locale ‘sr.UTF-8_latin’ 1225s # Testing locale ‘sr.UTF-8@latin_invalid’ 1225s ok 2 /utils/locale-variants 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/version/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/version/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/version/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/version/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/version/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/version/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/version/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/version/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/version/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/version/.dirs/runtime 1225s ok 3 /utils/version 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/appname/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/appname/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/appname/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/appname/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/appname/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/appname/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/appname/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/appname/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/appname/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/appname/.dirs/runtime 1225s ok 4 /utils/appname 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/prgname-thread-safety/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/prgname-thread-safety/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/prgname-thread-safety/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/prgname-thread-safety/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/prgname-thread-safety/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/prgname-thread-safety/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/prgname-thread-safety/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/prgname-thread-safety/.dirs/runtime 1225s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1225s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1225s ok 5 /utils/prgname-thread-safety 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/tmpdir/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/tmpdir/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/tmpdir/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/tmpdir/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/tmpdir/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/tmpdir/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/tmpdir/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/tmpdir/.dirs/runtime 1225s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1225s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1225s Unable to clean up temporary directory /tmp/test_utils_LK1JK3/utils/tmpdir: No such file or directory 1225s ok 6 /utils/tmpdir 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/basic_bits/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/basic_bits/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/basic_bits/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/basic_bits/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/basic_bits/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/basic_bits/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/basic_bits/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/basic_bits/.dirs/runtime 1225s ok 7 /utils/basic_bits 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/bits/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/bits/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/bits/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/bits/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/bits/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/bits/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/bits/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/bits/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/bits/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/bits/.dirs/runtime 1225s ok 8 /utils/bits 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/swap/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/swap/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/swap/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/swap/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/swap/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/swap/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/swap/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/swap/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/swap/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/swap/.dirs/runtime 1225s ok 9 /utils/swap 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/find-program/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/find-program/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/find-program/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/find-program/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/find-program/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/find-program/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/find-program/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/find-program/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/find-program/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/find-program/.dirs/runtime 1225s ok 10 /utils/find-program 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/find-program-for-path/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/find-program-for-path/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/find-program-for-path/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/find-program-for-path/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/find-program-for-path/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/find-program-for-path/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/find-program-for-path/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/find-program-for-path/.dirs/runtime 1225s ok 11 /utils/find-program-for-path 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/debug/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/debug/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/debug/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/debug/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/debug/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/debug/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/debug/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/debug/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/debug/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/debug/.dirs/runtime 1225s Unable to clean up temporary directory /tmp/test_utils_LK1JK3/utils/debug: No such file or directory 1225s ok 12 /utils/debug 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/codeset/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/codeset/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/codeset/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/codeset/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/codeset/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/codeset/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/codeset/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/codeset/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/codeset/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/codeset/.dirs/runtime 1225s ok 13 /utils/codeset 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/codeset2/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/codeset2/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/codeset2/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/codeset2/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/codeset2/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/codeset2/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/codeset2/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/codeset2/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/codeset2/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/codeset2/.dirs/runtime 1225s Unable to clean up temporary directory /tmp/test_utils_LK1JK3/utils/codeset2: No such file or directory 1225s ok 14 /utils/codeset2 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/console-charset/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/console-charset/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/console-charset/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/console-charset/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/console-charset/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/console-charset/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/console-charset/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/console-charset/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/console-charset/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/console-charset/.dirs/runtime 1225s ok 15 /utils/console-charset 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/gettext/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/gettext/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/gettext/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/gettext/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/gettext/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/gettext/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/gettext/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/gettext/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/gettext/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/gettext/.dirs/runtime 1225s ok 16 /utils/gettext 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/username/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/username/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/username/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/username/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/username/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/username/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/username/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/username/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/username/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/username/.dirs/runtime 1225s ok 17 /utils/username 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/realname/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/realname/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/realname/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/realname/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/realname/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/realname/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/realname/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/realname/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/realname/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/realname/.dirs/runtime 1225s ok 18 /utils/realname 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/hostname/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/hostname/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/hostname/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/hostname/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/hostname/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/hostname/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/hostname/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/hostname/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/hostname/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/hostname/.dirs/runtime 1225s ok 19 /utils/hostname 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/os-info/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/os-info/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/os-info/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/os-info/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/os-info/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/os-info/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/os-info/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/os-info/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/os-info/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/os-info/.dirs/runtime 1225s # NAME: Ubuntu 1225s ok 20 /utils/os-info 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/clear-pointer/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/clear-pointer/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/clear-pointer/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/clear-pointer/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/clear-pointer/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/clear-pointer/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/clear-pointer/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/clear-pointer/.dirs/runtime 1225s ok 21 /utils/clear-pointer 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/clear-pointer-cast/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/clear-pointer-cast/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/clear-pointer-cast/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/clear-pointer-cast/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/clear-pointer-cast/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/clear-pointer-cast/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/clear-pointer-cast/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/clear-pointer-cast/.dirs/runtime 1225s ok 22 /utils/clear-pointer-cast 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/take-pointer/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/take-pointer/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/take-pointer/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/take-pointer/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/take-pointer/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/take-pointer/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/take-pointer/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/take-pointer/.dirs/runtime 1225s ok 23 /utils/take-pointer 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/clear-source/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/clear-source/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/clear-source/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/clear-source/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/clear-source/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/clear-source/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/clear-source/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/clear-source/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/clear-source/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/clear-source/.dirs/runtime 1225s ok 24 /utils/clear-source 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/misc-mem/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/misc-mem/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/misc-mem/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/misc-mem/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/misc-mem/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/misc-mem/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/misc-mem/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/misc-mem/.dirs/runtime 1225s ok 25 /utils/misc-mem 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/aligned-mem/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/aligned-mem/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/aligned-mem/.dirs/runtime 1225s # /utils/aligned-mem summary: Aligned memory allocator 1225s # Alignment must not be zero 1225s # Alignment must be a power of two 1225s # Alignment must be a multiple of sizeof(void*) 1225s ok 26 /utils/aligned-mem 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/free-sized/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/free-sized/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/free-sized/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/free-sized/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/free-sized/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/free-sized/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/free-sized/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/free-sized/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/free-sized/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/free-sized/.dirs/runtime 1225s # /utils/free-sized summary: Check that g_free_sized() works 1225s ok 27 /utils/free-sized 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/nullify/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/nullify/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/nullify/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/nullify/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/nullify/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/nullify/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/nullify/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/nullify/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/nullify/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/nullify/.dirs/runtime 1225s ok 28 /utils/nullify 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/atexit/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/atexit/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/atexit/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/atexit/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/atexit/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/atexit/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/atexit/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/atexit/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/atexit/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/atexit/.dirs/runtime 1225s Unable to clean up temporary directory /tmp/test_utils_LK1JK3/utils/atexit: No such file or directory 1225s ok 29 /utils/atexit 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/check-setuid/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/check-setuid/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/check-setuid/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/check-setuid/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/check-setuid/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/check-setuid/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/check-setuid/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/check-setuid/.dirs/runtime 1225s ok 30 /utils/check-setuid 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/int-limits/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/int-limits/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/int-limits/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/int-limits/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/int-limits/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/int-limits/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/int-limits/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/int-limits/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/int-limits/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/int-limits/.dirs/runtime 1225s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1225s ok 31 /utils/int-limits 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/clear-list/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/clear-list/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/clear-list/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/clear-list/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/clear-list/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/clear-list/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/clear-list/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/clear-list/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/clear-list/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/clear-list/.dirs/runtime 1225s ok 32 /utils/clear-list 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/clear-slist/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/clear-slist/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/clear-slist/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/clear-slist/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/clear-slist/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/clear-slist/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/clear-slist/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/clear-slist/.dirs/runtime 1225s ok 33 /utils/clear-slist 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/steal-handle-id/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/steal-handle-id/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/steal-handle-id/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/steal-handle-id/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/steal-handle-id/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/steal-handle-id/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/steal-handle-id/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/steal-handle-id/.dirs/runtime 1225s ok 34 /utils/steal-handle-id 1225s # Start of user-special-dirs tests 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/user-special-dirs/desktop/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/user-special-dirs/desktop/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/user-special-dirs/desktop/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/user-special-dirs/desktop/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/user-special-dirs/desktop/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/user-special-dirs/desktop/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/user-special-dirs/desktop/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/user-special-dirs/desktop/.dirs/runtime 1225s ok 35 /utils/user-special-dirs/desktop 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/user-special-dirs/load-unlocked/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/user-special-dirs/load-unlocked/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/user-special-dirs/load-unlocked/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/user-special-dirs/load-unlocked/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/user-special-dirs/load-unlocked/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1225s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1225s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1225s Unable to clean up temporary directory /tmp/test_utils_LK1JK3/utils/user-special-dirs/load-unlocked: No such file or directory 1225s ok 36 /utils/user-special-dirs/load-unlocked 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/user-special-dirs/reload-leaks/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/user-special-dirs/reload-leaks/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/user-special-dirs/reload-leaks/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/user-special-dirs/reload-leaks/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/user-special-dirs/reload-leaks/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1225s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1225s Unable to clean up temporary directory /tmp/test_utils_LK1JK3/utils/user-special-dirs/reload-leaks: No such file or directory 1225s ok 37 /utils/user-special-dirs/reload-leaks 1225s # End of user-special-dirs tests 1225s # Start of clear-pointer tests 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/clear-pointer/side-effects/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/clear-pointer/side-effects/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/clear-pointer/side-effects/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/clear-pointer/side-effects/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/clear-pointer/side-effects/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/clear-pointer/side-effects/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/clear-pointer/side-effects/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/clear-pointer/side-effects/.dirs/runtime 1225s ok 38 /utils/clear-pointer/side-effects 1225s # End of clear-pointer tests 1225s # Start of aligned-mem tests 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/alignment/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/alignment/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/aligned-mem/alignment/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/alignment/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/aligned-mem/alignment/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/alignment/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/alignment/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/aligned-mem/alignment/.dirs/runtime 1225s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1225s ok 39 /utils/aligned-mem/alignment 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/zeroed/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/zeroed/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/aligned-mem/zeroed/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/zeroed/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/aligned-mem/zeroed/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/zeroed/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/zeroed/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/aligned-mem/zeroed/.dirs/runtime 1225s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1225s ok 40 /utils/aligned-mem/zeroed 1225s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/free-sized/.dirs/home 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/free-sized/.dirs/cache 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils_LK1JK3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils_LK1JK3/utils/aligned-mem/free-sized/.dirs/system-config2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/free-sized/.dirs/config 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils_LK1JK3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils_LK1JK3/utils/aligned-mem/free-sized/.dirs/system-data2 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/free-sized/.dirs/data 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils_LK1JK3/utils/aligned-mem/free-sized/.dirs/state 1225s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils_LK1JK3/utils/aligned-mem/free-sized/.dirs/runtime 1225s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1225s ok 41 /utils/aligned-mem/free-sized 1225s # Start of subprocess tests 1225s # End of subprocess tests 1225s # End of aligned-mem tests 1225s # End of utils tests 1225s ok - glib/utils.test 1225s # Running test: glib/gdatetime.test 1225s TAP version 14 1225s # random seed: R02S52885e00c111aadfb94af0be120ae227 1225s 1..68 1225s # Start of GDateTime tests 1225s # Bug Reference: http://bugzilla.gnome.org/702674 1225s ok 1 /GDateTime/invalid 1225s ok 2 /GDateTime/add_days 1225s ok 3 /GDateTime/add_full 1225s ok 4 /GDateTime/add_hours 1225s ok 5 /GDateTime/add_minutes 1225s ok 6 /GDateTime/add_months 1225s ok 7 /GDateTime/add_seconds 1225s ok 8 /GDateTime/add_weeks 1225s ok 9 /GDateTime/add_years 1225s ok 10 /GDateTime/compare 1225s ok 11 /GDateTime/diff 1225s ok 12 /GDateTime/equal 1225s ok 13 /GDateTime/get_day_of_week 1225s ok 14 /GDateTime/get_day_of_month 1225s ok 15 /GDateTime/get_day_of_year 1225s ok 16 /GDateTime/get_hour 1225s ok 17 /GDateTime/get_microsecond 1225s ok 18 /GDateTime/get_minute 1225s ok 19 /GDateTime/get_month 1225s ok 20 /GDateTime/get_second 1225s ok 21 /GDateTime/get_utc_offset 1225s ok 22 /GDateTime/get_year 1225s ok 23 /GDateTime/hash 1225s ok 24 /GDateTime/new_from_unix 1225s ok 25 /GDateTime/new_from_unix_utc 1225s ok 26 /GDateTime/new_from_timeval 1225s ok 27 /GDateTime/new_from_timeval_utc 1225s ok 28 /GDateTime/new_from_iso8601 1225s ok 29 /GDateTime/new_full 1225s ok 30 /GDateTime/now 1225s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2215 1225s ok 31 /GDateTime/test-6-days-until-end-of-the-month 1225s # %a -> expected: Sat 1225s # %a -> actual: Sat 1225s # %A -> expected: Saturday 1225s # %A -> actual: Saturday 1225s # %b -> expected: Oct 1225s # %b -> actual: Oct 1225s # %B -> expected: October 1225s # %B -> actual: October 1225s # %d -> expected: 24 1225s # %d -> actual: 24 1225s # %d -> expected: 01 1225s # %d -> actual: 01 1225s # %e -> expected: 24 1225s # %e -> actual: 24 1225s # %e -> expected:  1 1225s # %e -> actual:  1 1225s # %f -> expected: 001000 1225s # %f -> actual: 001000 1225s # %h -> expected: Oct 1225s # %h -> actual: Oct 1225s # %H -> expected: 00 1225s # %H -> actual: 00 1225s # %H -> expected: 15 1225s # %H -> actual: 15 1225s # %I -> expected: 12 1225s # %I -> actual: 12 1225s # %I -> expected: 12 1225s # %I -> actual: 12 1225s # %I -> expected: 03 1225s # %I -> actual: 03 1225s # %j -> expected: 297 1225s # %j -> actual: 297 1225s # %k -> expected:  0 1225s # %k -> actual:  0 1225s # %k -> expected: 13 1225s # %k -> actual: 13 1225s # %l -> expected: 12 1225s # %l -> actual: 12 1225s # %I -> expected: 12 1225s # %I -> actual: 12 1225s # %l -> expected:  1 1225s # %l -> actual:  1 1225s # %l -> expected: 10 1225s # %l -> actual: 10 1225s # %m -> expected: 10 1225s # %m -> actual: 10 1225s # %M -> expected: 00 1225s # %M -> actual: 00 1225s # %p -> expected: AM 1225s # %p -> actual: AM 1225s # %p -> expected: PM 1225s # %p -> actual: PM 1225s # %P -> expected: am 1225s # %P -> actual: am 1225s # %P -> expected: pm 1225s # %P -> actual: pm 1225s # %r -> expected: 12:00:00 AM 1225s # %r -> actual: 12:00:00 AM 1225s # %r -> expected: 01:13:13 PM 1225s # %r -> actual: 01:13:13 PM 1225s # %R -> expected: 00:00 1225s # %R -> actual: 00:00 1225s # %R -> expected: 13:13 1225s # %R -> actual: 13:13 1225s # %S -> expected: 00 1225s # %S -> actual: 00 1225s # %t -> expected: 1225s # %t -> actual: 1225s # %u -> expected: 6 1225s # %u -> actual: 6 1225s # %x -> expected: 10/24/09 1225s # %x -> actual: 10/24/09 1225s # %X -> expected: 00:00:00 1225s # %X -> actual: 00:00:00 1225s # %X -> expected: 13:14:15 1225s # %X -> actual: 13:14:15 1225s # %y -> expected: 09 1225s # %y -> actual: 09 1225s # %Y -> expected: 2009 1225s # %Y -> actual: 2009 1225s # %% -> expected: % 1225s # %% -> actual: % 1225s # % -> expected: 1225s # % -> actual: 1225s # %9 -> expected: (null) 1225s # %9 -> actual: (null) 1225s # %Z -> expected: UTC 1225s # %Z -> actual: UTC 1225s # %#Z %Z -> expected: utc UTC 1225s # %#Z %Z -> actual: utc UTC 1225s ok 32 /GDateTime/printf 1225s # %a -> expected: 土 1225s # %a -> actual: 土 1225s # %A -> expected: 土曜日 1225s # %A -> actual: 土曜日 1225s # %b -> expected: 10月 1225s # %b -> actual: 10月 1225s # %B -> expected: 10月 1225s # %B -> actual: 10月 1225s # %c -> expected: 2009年10月24日 00時00分00秒 1225s # %c -> actual: 2009年10月24日 00時00分00秒 1225s # %C -> expected: 20 1225s # %C -> actual: 20 1225s # %d -> expected: 24 1225s # %d -> actual: 24 1225s # %d -> expected: 01 1225s # %d -> actual: 01 1225s # %e -> expected: 24 1225s # %e -> actual: 24 1225s # %h -> expected: 10月 1225s # %h -> actual: 10月 1225s # %H -> expected: 00 1225s # %H -> actual: 00 1225s # %H -> expected: 15 1225s # %H -> actual: 15 1225s # %I -> expected: 12 1225s # %I -> actual: 12 1225s # %I -> expected: 12 1225s # %I -> actual: 12 1225s # %I -> expected: 03 1225s # %I -> actual: 03 1225s # %j -> expected: 297 1225s # %j -> actual: 297 1225s # %k -> expected:  0 1225s # %k -> actual:  0 1225s # %k -> expected: 13 1225s # %k -> actual: 13 1225s # %l -> expected: 12 1225s # %l -> actual: 12 1225s # %I -> expected: 12 1225s # %I -> actual: 12 1225s # %l -> expected:  1 1225s # %l -> actual:  1 1225s # %l -> expected: 10 1225s # %l -> actual: 10 1225s # %m -> expected: 10 1225s # %m -> actual: 10 1225s # %M -> expected: 00 1225s # %M -> actual: 00 1225s # %p -> expected: 午前 1225s # %p -> actual: 午前 1225s # %p -> expected: 午後 1225s # %p -> actual: 午後 1225s # %P -> expected: 午前 1225s # %P -> actual: 午前 1225s # %P -> expected: 午後 1225s # %P -> actual: 午後 1225s # %r -> expected: 午前12時00分00秒 1225s # %r -> actual: 午前12時00分00秒 1225s # %r -> expected: 午後01時13分13秒 1225s # %r -> actual: 午後01時13分13秒 1225s # %R -> expected: 00:00 1225s # %R -> actual: 00:00 1225s # %R -> expected: 13:13 1225s # %R -> actual: 13:13 1225s # %S -> expected: 00 1225s # %S -> actual: 00 1225s # %t -> expected: 1225s # %t -> actual: 1225s # %u -> expected: 6 1225s # %u -> actual: 6 1225s # %x -> expected: 2009年10月24日 1225s # %x -> actual: 2009年10月24日 1225s # %X -> expected: 00時00分00秒 1225s # %X -> actual: 00時00分00秒 1225s # %X -> expected: 13時14分15秒 1225s # %X -> actual: 13時14分15秒 1225s # %y -> expected: 09 1225s # %y -> actual: 09 1225s # %Y -> expected: 2009 1225s # %Y -> actual: 2009 1225s # %% -> expected: % 1225s # %% -> actual: % 1225s # % -> expected: 1225s # % -> actual: 1225s # %9 -> expected: (null) 1225s # %9 -> actual: (null) 1225s # %Ec -> expected: 平成21年10月24日 00時00分00秒 1225s # %Ec -> actual: 平成21年10月24日 00時00分00秒 1225s # %EC -> expected: 平成 1225s # %EC -> actual: 平成 1225s # %Ex -> expected: 平成21年10月24日 1225s # %Ex -> actual: 平成21年10月24日 1225s # %EX -> expected: 00時00分00秒 1225s # %EX -> actual: 00時00分00秒 1225s # %Ey -> expected: 21 1225s # %Ey -> actual: 21 1225s # %EY -> expected: 平成21年 1225s # %EY -> actual: 平成21年 1225s ok 33 /GDateTime/non_utf8_printf 1225s # ąśćł -> expected: ąśćł 1225s # ąśćł -> actual: ąśćł 1225s # %H∶%M -> expected: 23∶15 1225s # %H∶%M -> actual: 23∶15 1225s # %H∶%M -> expected: 23∶15 1225s # %H∶%M -> actual: 23∶15 1225s ok 34 /GDateTime/format_unrepresentable 1225s ok 35 /GDateTime/format_iso8601 1225s ok 36 /GDateTime/strftime 1225s # %d -> expected: 01 1225s # %d -> actual: 01 1225s # %_d -> expected: 1 1225s # %_d -> actual: 1 1225s # %-d -> expected: 1 1225s # %-d -> actual: 1 1225s # %0d -> expected: 01 1225s # %0d -> actual: 01 1225s # %d -> expected: 21 1225s # %d -> actual: 21 1225s # %_d -> expected: 21 1225s # %_d -> actual: 21 1225s # %-d -> expected: 21 1225s # %-d -> actual: 21 1225s # %0d -> expected: 21 1225s # %0d -> actual: 21 1225s # %e -> expected:  1 1225s # %e -> actual:  1 1225s # %_e -> expected: 1 1225s # %_e -> actual: 1 1225s # %-e -> expected: 1 1225s # %-e -> actual: 1 1225s # %0e -> expected: 01 1225s # %0e -> actual: 01 1225s # %e -> expected: 21 1225s # %e -> actual: 21 1225s # %_e -> expected: 21 1225s # %_e -> actual: 21 1225s # %-e -> expected: 21 1225s # %-e -> actual: 21 1225s # %0e -> expected: 21 1225s # %0e -> actual: 21 1225s # %a -> expected: Thu 1225s # %a -> actual: Thu 1225s # %^a -> expected: THU 1225s # %^a -> actual: THU 1225s # %#a -> expected: THU 1225s # %#a -> actual: THU 1225s # %A -> expected: Thursday 1225s # %A -> actual: Thursday 1225s # %^A -> expected: THURSDAY 1225s # %^A -> actual: THURSDAY 1225s # %#A -> expected: THURSDAY 1225s # %#A -> actual: THURSDAY 1225s # %b -> expected: Jan 1225s # %b -> actual: Jan 1225s # %^b -> expected: JAN 1225s # %^b -> actual: JAN 1225s # %#b -> expected: JAN 1225s # %#b -> actual: JAN 1225s # %B -> expected: January 1225s # %B -> actual: January 1225s # %^B -> expected: JANUARY 1225s # %^B -> actual: JANUARY 1225s # %#B -> expected: JANUARY 1225s # %#B -> actual: JANUARY 1225s # %h -> expected: Jan 1225s # %h -> actual: Jan 1225s # %^h -> expected: JAN 1225s # %^h -> actual: JAN 1225s # %#h -> expected: JAN 1225s # %#h -> actual: JAN 1225s # %Z -> expected: UTC 1225s # %Z -> actual: UTC 1225s # %^Z -> expected: UTC 1225s # %^Z -> actual: UTC 1225s # %#Z -> expected: utc 1225s # %#Z -> actual: utc 1225s # %H -> expected: 01 1225s # %H -> actual: 01 1225s # %_H -> expected: 1 1225s # %_H -> actual: 1 1225s # %-H -> expected: 1 1225s # %-H -> actual: 1 1225s # %0H -> expected: 01 1225s # %0H -> actual: 01 1225s # %H -> expected: 21 1225s # %H -> actual: 21 1225s # %_H -> expected: 21 1225s # %_H -> actual: 21 1225s # %-H -> expected: 21 1225s # %-H -> actual: 21 1225s # %0H -> expected: 21 1225s # %0H -> actual: 21 1225s # %I -> expected: 01 1225s # %I -> actual: 01 1225s # %_I -> expected: 1 1225s # %_I -> actual: 1 1225s # %-I -> expected: 1 1225s # %-I -> actual: 1 1225s # %0I -> expected: 01 1225s # %0I -> actual: 01 1225s # %I -> expected: 11 1225s # %I -> actual: 11 1225s # %_I -> expected: 11 1225s # %_I -> actual: 11 1225s # %-I -> expected: 11 1225s # %-I -> actual: 11 1225s # %0I -> expected: 11 1225s # %0I -> actual: 11 1225s # %k -> expected:  1 1225s # %k -> actual:  1 1225s # %_k -> expected: 1 1225s # %_k -> actual: 1 1225s # %-k -> expected: 1 1225s # %-k -> actual: 1 1225s # %0k -> expected: 01 1225s # %0k -> actual: 01 1225s # %l -> expected:  1 1225s # %l -> actual:  1 1225s # %_l -> expected: 1 1225s # %_l -> actual: 1 1225s # %-l -> expected: 1 1225s # %-l -> actual: 1 1225s # %0l -> expected: 01 1225s # %0l -> actual: 01 1225s # %l -> expected: 11 1225s # %l -> actual: 11 1225s # %_l -> expected: 11 1225s # %_l -> actual: 11 1225s # %-l -> expected: 11 1225s # %-l -> actual: 11 1225s # %0l -> expected: 11 1225s # %0l -> actual: 11 1225s # %p -> expected: AM 1225s # %p -> actual: AM 1225s # %^p -> expected: AM 1225s # %^p -> actual: AM 1225s # %#p -> expected: am 1225s # %#p -> actual: am 1225s # %P -> expected: am 1225s # %P -> actual: am 1225s # %^P -> expected: AM 1225s # %^P -> actual: AM 1225s # %#P -> expected: am 1225s # %#P -> actual: am 1225s # %OH -> expected: ۲۳ 1225s # %OH -> actual: ۲۳ 1225s # %OI -> expected: ۱۱ 1225s # %OI -> actual: ۱۱ 1225s # %OM -> expected: ۰۰ 1225s # %OM -> actual: ۰۰ 1225s # %Om -> expected: ۰۷ 1225s # %Om -> actual: ۰۷ 1225s # %0Om -> expected: ۰۷ 1225s # %0Om -> actual: ۰۷ 1225s # %-Om -> expected: ۷ 1225s # %-Om -> actual: ۷ 1225s # %_Om -> expected: ۷ 1225s # %_Om -> actual: ۷ 1225s # %c -> expected: thu 01 jan 2009 00:00:00 utc 1225s # %c -> actual: Thu 01 Jan 2009 00:00:00 UTC 1225s # %Ec -> expected: thu 01 jan 2009 00:00:00 utc 1225s # %Ec -> actual: Thu 01 Jan 2009 00:00:00 UTC 1225s # %C -> expected: 20 1225s # %C -> actual: 20 1225s # %EC -> expected: 20 1225s # %EC -> actual: 20 1225s # %x -> expected: 02/01/09 1225s # %x -> actual: 02/01/09 1225s # %Ex -> expected: 02/01/09 1225s # %Ex -> actual: 02/01/09 1225s # %X -> expected: 01:02:03 1225s # %X -> actual: 01:02:03 1225s # %EX -> expected: 01:02:03 1225s # %EX -> actual: 01:02:03 1225s # %y -> expected: 09 1225s # %y -> actual: 09 1225s # %Ey -> expected: 09 1225s # %Ey -> actual: 09 1225s # %Y -> expected: 2009 1225s # %Y -> actual: 2009 1225s # %EY -> expected: 2009 1225s # %EY -> actual: 2009 1225s ok 37 /GDateTime/modifiers # SKIP locale gu_IN not available, skipping O modifier tests 1225s # Bug Reference: http://bugzilla.gnome.org/749206 1225s # %B -> expected: January 1225s # %B -> actual: January 1225s # %OB -> expected: February 1225s # %OB -> actual: February 1225s # %b -> expected: Mar 1225s # %b -> actual: Mar 1225s # %Ob -> expected: Apr 1225s # %Ob -> actual: Apr 1225s # %h -> expected: May 1225s # %h -> actual: May 1225s # %Oh -> expected: Jun 1225s # %Oh -> actual: Jun 1225s # %B -> expected: Juli 1225s # %B -> actual: Juli 1225s # %OB -> expected: August 1225s # %OB -> actual: August 1225s # %b -> expected: Sep 1225s # %b -> actual: Sep 1225s # %Ob -> expected: Okt 1225s # %Ob -> actual: Okt 1225s # %h -> expected: Nov 1225s # %h -> actual: Nov 1225s # %Oh -> expected: Dez 1225s # %Oh -> actual: Dez 1225s # %B -> expected: enero 1225s # %B -> actual: enero 1225s # %OB -> expected: febrero 1225s # %OB -> actual: febrero 1225s # %b -> expected: mar 1225s # %b -> actual: mar 1225s # %Ob -> expected: abr 1225s # %Ob -> actual: abr 1225s # %h -> expected: may 1225s # %h -> actual: may 1225s # %Oh -> expected: jun 1225s # %Oh -> actual: jun 1225s # %B -> expected: juillet 1225s # %B -> actual: juillet 1225s # %OB -> expected: août 1225s # %OB -> actual: août 1225s # %b -> expected: sept. 1225s # %b -> actual: sept. 1225s # %Ob -> expected: oct. 1225s # %Ob -> actual: oct. 1225s # %h -> expected: nov. 1225s # %h -> actual: nov. 1225s # %Oh -> expected: déc. 1225s # %Oh -> actual: déc. 1225s # %B -> expected: Ιανουαρίου 1225s # %B -> actual: Ιανουαρίου 1225s # %B -> expected: Φεβρουαρίου 1225s # %B -> actual: Φεβρουαρίου 1225s # %B -> expected: Μαρτίου 1225s # %B -> actual: Μαρτίου 1225s # %OB -> expected: Απρίλιος 1225s # %OB -> actual: Απρίλιος 1225s # %OB -> expected: Μάιος 1225s # %OB -> actual: Μάιος 1225s # %OB -> expected: Ιούνιος 1225s # %OB -> actual: Ιούνιος 1225s # %b -> expected: Ιουλ 1225s # %b -> actual: Ιουλ 1225s # %Ob -> expected: Αύγ 1225s # %Ob -> actual: Αύγ 1225s # %B -> expected: svibnja 1225s # %B -> actual: svibnja 1225s # %B -> expected: lipnja 1225s # %B -> actual: lipnja 1225s # %B -> expected: srpnja 1225s # %B -> actual: srpnja 1225s # %OB -> expected: Kolovoz 1225s # %OB -> actual: kolovoz 1225s # %OB -> expected: Rujan 1225s # %OB -> actual: rujan 1225s # %OB -> expected: Listopad 1225s # %OB -> actual: listopad 1225s # %b -> expected: Stu 1225s # %b -> actual: stu 1225s # %Ob -> expected: Pro 1225s # %Ob -> actual: pro 1225s # %B -> expected: sausio 1225s # %B -> actual: sausio 1225s # %B -> expected: vasario 1225s # %B -> actual: vasario 1225s # %B -> expected: kovo 1225s # %B -> actual: kovo 1225s # %OB -> expected: balandis 1225s # %OB -> actual: balandis 1225s # %OB -> expected: gegužė 1225s # %OB -> actual: gegužė 1225s # %OB -> expected: birželis 1225s # %OB -> actual: birželis 1225s # %b -> expected: liep. 1225s # %b -> actual: liep. 1225s # %Ob -> expected: rugp. 1225s # %Ob -> actual: rugp. 1225s # %B -> expected: maja 1225s # %B -> actual: maja 1225s # %B -> expected: czerwca 1225s # %B -> actual: czerwca 1225s # %B -> expected: lipca 1225s # %B -> actual: lipca 1225s # %OB -> expected: sierpień 1225s # %OB -> actual: sierpień 1225s # %OB -> expected: wrzesień 1225s # %OB -> actual: wrzesień 1225s # %OB -> expected: październik 1225s # %OB -> actual: październik 1225s # %b -> expected: lis 1225s # %b -> actual: lis 1225s # %Ob -> expected: gru 1225s # %Ob -> actual: gru 1225s # %B -> expected: января 1225s # %B -> actual: января 1225s # %B -> expected: февраля 1225s # %B -> actual: февраля 1225s # %B -> expected: марта 1225s # %B -> actual: марта 1225s # %OB -> expected: Апрель 1225s # %OB -> actual: Апрель 1225s # %OB -> expected: Май 1225s # %OB -> actual: Май 1225s # %OB -> expected: Июнь 1225s # %OB -> actual: Июнь 1225s # %b -> expected: июл 1225s # %b -> actual: июл 1225s # %Ob -> expected: авг 1225s # %Ob -> actual: авг 1225s # %b -> expected: мая 1225s # %b -> actual: мая 1225s # %Ob -> expected: май 1225s # %Ob -> actual: май 1225s ok 38 /GDateTime/month_names 1225s ok 39 /GDateTime/to_local 1225s ok 40 /GDateTime/to_unix 1225s ok 41 /GDateTime/to_timeval 1225s ok 42 /GDateTime/to_utc 1225s ok 43 /GDateTime/now_utc 1225s ok 44 /GDateTime/dst 1225s # Bug Reference: http://bugzilla.gnome.org/642935 1225s ok 45 /GDateTime/test_z 1226s ok 46 /GDateTime/test-all-dates 1226s # slow test /GDateTime/test-all-dates executed in 1.27 secs 1226s ok 47 /GDateTime/unix_usec 1226s # Start of new_from_unix tests 1226s # Bug Reference: http://bugzilla.gnome.org/782089 1226s ok 48 /GDateTime/new_from_unix/overflow 1226s # End of new_from_unix tests 1226s # Start of new_from_timeval tests 1226s # Bug Reference: http://bugzilla.gnome.org/782089 1226s # Maximum supported GTimeVal.tv_sec = 253402300799 1226s ok 49 /GDateTime/new_from_timeval/overflow 1226s # End of new_from_timeval tests 1226s # Start of new_from_iso8601 tests 1226s # /GDateTime/new_from_iso8601/2 summary: Further parser tests for g_date_time_new_from_iso8601(), checking success and failure using test vectors. 1226s # Vector 0: 1990-11-01T10:21:17Z 1226s # Vector 1: 19901101T102117Z 1226s # Vector 2: 1970-01-01T00:00:17.12Z 1226s # Vector 3: 1970-01-01T00:00:17.1234Z 1226s # Vector 4: 1970-01-01T00:00:17.123456Z 1226s # Vector 5: 1980-02-22T12:36:00+02:00 1226s # Vector 6: 1990-12-31T15:59:60-08:00 1226s # Vector 7: 1226s # Vector 8: x 1226s # Vector 9: 123x 1226s # Vector 10: 2001-10+x 1226s # Vector 11: 1980-02-22T 1226s # Vector 12: 2001-10-08Tx 1226s # Vector 13: 2001-10-08T10:11x 1226s # Vector 14: Wed Dec 19 17:20:20 GMT 2007 1226s # Vector 15: 1980-02-22T10:36:00Zulu 1226s # Vector 16: 2T0+819855292164632335 1226s # Vector 17: 2018-08-03T14:08:05.446178377+01:00 1226s # Vector 18: 2147483648-08-03T14:08:05.446178377+01:00 1226s # Vector 19: 2018-13-03T14:08:05.446178377+01:00 1226s # Vector 20: 2018-00-03T14:08:05.446178377+01:00 1226s # Vector 21: 2018-08-00T14:08:05.446178377+01:00 1226s # Vector 22: 2018-08-32T14:08:05.446178377+01:00 1226s # Vector 23: 2018-08-03T24:08:05.446178377+01:00 1226s # Vector 24: 2018-08-03T14:60:05.446178377+01:00 1226s # Vector 25: 2018-08-03T14:08:63.446178377+01:00 1226s # Vector 26: 2018-08-03T14:08:05.446178377+100:00 1226s # Vector 27: 20180803T140805.446178377+0100 1226s # Vector 28: 21474836480803T140805.446178377+0100 1226s # Vector 29: 20181303T140805.446178377+0100 1226s # Vector 30: 20180003T140805.446178377+0100 1226s # Vector 31: 20180800T140805.446178377+0100 1226s # Vector 32: 20180832T140805.446178377+0100 1226s # Vector 33: 20180803T240805.446178377+0100 1226s # Vector 34: 20180803T146005.446178377+0100 1226s # Vector 35: 20180803T140863.446178377+0100 1226s # Vector 36: 20180803T140805.446178377+10000 1226s # Vector 37: -0005-01-01T00:00:00Z 1226s # Vector 38: 2018-08-06 1226s # Vector 39: 20180803T140805,446178377+0100 1226s # Vector 40: 2018-08-03T14:08:05.446178377-01:00 1226s # Vector 41: 2018-08-03T14:08:05.446178377 01:00 1226s # Vector 42: 1990-11-01T10:21:17 1226s # Vector 43: 1719W462 407777-07 1226s # Vector 44: 4011090 260528Z 1226s # Vector 45: 0000W011 228214-22 1226s ok 50 /GDateTime/new_from_iso8601/2 1226s # End of new_from_iso8601 tests 1226s # Start of format_mixed tests 1226s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1226s # %b -> expected: mar 1226s # %b -> actual: Mar 1226s # %B -> expected: march 1226s # %B -> actual: March 1226s ok 51 /GDateTime/format_mixed/utf8_time_non_utf8_messages 1226s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1226s # %b -> expected: mar 1226s # %b -> actual: Mar 1226s # %B -> expected: march 1226s # %B -> actual: March 1226s ok 52 /GDateTime/format_mixed/utf8_time_utf8_messages 1226s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1226s # %b -> expected: Mär 1226s # %b -> actual: Mär 1226s # %B -> expected: März 1226s # %B -> actual: März 1226s ok 53 /GDateTime/format_mixed/non_utf8_time_non_utf8_messages 1226s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2055 1226s # %b -> expected: Mär 1226s # %b -> actual: Mär 1226s # %B -> expected: März 1226s # %B -> actual: März 1226s ok 54 /GDateTime/format_mixed/non_utf8_time_utf8_messages 1226s # End of format_mixed tests 1226s # Start of strftime tests 1226s # %r -> expected: (null) 1226s # %r -> actual: (null) 1226s ok 55 /GDateTime/strftime/error_handling 1226s # End of strftime tests 1226s # Start of eras tests 1226s # %Ec -> expected: 令和05年06月01日 00時00分00秒 1226s # %Ec -> actual: 令和05年06月01日 00時00分00秒 1226s # %EC -> expected: 令和 1226s # %EC -> actual: 令和 1226s # %Ex -> expected: 令和05年06月01日 1226s # %Ex -> actual: 令和05年06月01日 1226s # %EX -> expected: 00時00分00秒 1226s # %EX -> actual: 00時00分00秒 1226s # %Ey -> expected: 05 1226s # %Ey -> actual: 05 1226s # %EY -> expected: 令和05年 1226s # %EY -> actual: 令和05年 1226s # %Ec -> expected: 平成31年04月30日 00時00分00秒 1226s # %Ec -> actual: 平成31年04月30日 00時00分00秒 1226s # %EC -> expected: 平成 1226s # %EC -> actual: 平成 1226s # %Ex -> expected: 平成31年04月30日 1226s # %Ex -> actual: 平成31年04月30日 1226s # %EX -> expected: 00時00分00秒 1226s # %EX -> actual: 00時00分00秒 1226s # %Ey -> expected: 31 1226s # %Ey -> actual: 31 1226s # %EY -> expected: 平成31年 1226s # %EY -> actual: 平成31年 1226s # %Ec -> expected: 昭和元年12月25日 00時00分00秒 1226s # %Ec -> actual: 昭和元年12月25日 00時00分00秒 1226s # %EC -> expected: 昭和 1226s # %EC -> actual: 昭和 1226s # %Ex -> expected: 昭和元年12月25日 1226s # %Ex -> actual: 昭和元年12月25日 1226s # %EX -> expected: 00時00分00秒 1226s # %EX -> actual: 00時00分00秒 1226s # %Ey -> expected: 01 1226s # %Ey -> actual: 01 1226s # %EY -> expected: 昭和元年 1226s # %EY -> actual: 昭和元年 1226s ok 56 /GDateTime/eras/japan 1226s ok 57 /GDateTime/eras/thailand # SKIP locale th_TH.utf-8 not available, skipping Thai era tests 1226s # Vector 0: 1226s # Vector 1: +:1:-543/01/01:+*:พ.ศ.:%EC %Ey 1226s # 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年 1226s # Vector 3: -:2:2020/01/01:-*:令和:%EC%Ey年 1226s # Vector 4: +:2:2020/01/01:2020/01/01:令和:%EC%Ey年 1226s # Vector 5: +:2:+2020/01/01:+*:令和:%EC%Ey年 1226s # Vector 6: .:2:2020/01/01:+*:令和:%EC%Ey年 1226s # Vector 7: +.2:2020/01/01:+*:令和:%EC%Ey年 1226s # Vector 8: + 1226s # Vector 9: +: 1226s # Vector 10: +:: 1226s # Vector 11: +:200 1226s # Vector 12: +:2nonsense 1226s # Vector 13: +:2nonsense: 1226s # Vector 14: +:2: 1226s # Vector 15: +:2:: 1226s # Vector 16: +:2:2020-01/01:+*:令和:%EC%Ey年 1226s # Vector 17: +:2:2020nonsense/01/01:+*:令和:%EC%Ey年 1226s # Vector 18: +:2:2020:+*:令和:%EC%Ey年 1226s # Vector 19: +:2:18446744073709551615/01/01:+*:令和:%EC%Ey年 1226s # Vector 20: +:2:2020/01-01:+*:令和:%EC%Ey年 1226s # Vector 21: +:2:2020/01nonsense/01:+*:令和:%EC%Ey年 1226s # Vector 22: +:2:2020/01:+*:令和:%EC%Ey年 1226s # Vector 23: +:2:2020/00/01:+*:令和:%EC%Ey年 1226s # Vector 24: +:2:2020/13/01:+*:令和:%EC%Ey年 1226s # Vector 25: +:2:2020/01/00:+*:令和:%EC%Ey年 1226s # Vector 26: +:2:2020/01/32:+*:令和:%EC%Ey年 1226s # Vector 27: +:2:2020/01/01nonsense:+*:令和:%EC%Ey年 1226s # Vector 28: +:2:2020/01/01 1226s # Vector 29: +:2:2020/01/01: 1226s # Vector 30: +:2:2020/01/01:: 1226s # Vector 31: +:2:2020/01/01:2021-01-01:令和:%EC%Ey年 1226s # Vector 32: +:2:2020/01/01:+* 1226s # Vector 33: +:2:2020/01/01:+*: 1226s # Vector 34: +:2:2020/01/01:+*:: 1226s # Vector 35: +:2:2020/01/01:+*:令和 1226s # Vector 36: +:2:2020/01/01:+*:令和: 1226s # Vector 37: +:2:2020/01/01:+*:令和:; 1226s ok 58 /GDateTime/eras/parsing 1226s # End of eras tests 1226s # End of GDateTime tests 1226s # Start of GTimeZone tests 1226s ok 59 /GTimeZone/find-interval 1226s ok 60 /GTimeZone/adjust-time 1226s ok 61 /GTimeZone/no-header 1226s ok 62 /GTimeZone/no-header-identifier 1226s ok 63 /GTimeZone/posix-parse 1226s # Bug Reference: http://bugzilla.gnome.org/697715 1226s ok 64 /GTimeZone/floating-point 1226s # System time zone identifier: Etc/UTC 1226s ok 65 /GTimeZone/identifier 1226s # Vector 0: -158400 1226s # Vector 1: -10000 1226s # Vector 2: -3600 1226s # Vector 3: -61 1226s # Vector 4: -60 1226s # Vector 5: -59 1226s # Vector 6: 0 1226s # Vector 7: 59 1226s # Vector 8: 60 1226s # Vector 9: 61 1226s # Vector 10: 3600 1226s # Vector 11: 10000 1226s # Vector 12: 158400 1226s ok 66 /GTimeZone/new-offset 1226s # /GTimeZone/parse-rfc8536 summary: Test parsing time zone files in RFC 8536 version 3 format 1226s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2129 1226s ok 67 /GTimeZone/parse-rfc8536 1226s # /GTimeZone/caching summary: GTimeZone instances are cached 1226s ok 68 /GTimeZone/caching 1226s # End of GTimeZone tests 1226s TAP version 14 1226s # random seed: R02Saeb948b99dba77b7d9470e1e63450d87 1226s 1..1 1226s # Start of gobject tests 1226s # Start of refcount tests 1226s # init 0x1be26aabd4a0 1226s # 1226s # init 0x1be26aab5580 1226s # 1226s ok - glib/gdatetime.test 1226s # Running test: glib/signals-refcount3.test 1228s # Executing: glib/signals-refcount3.test 1231s ok - glib/signals-refcount3.test 1231s # dispose 0x1be26aabd4a0! 1231s # 1231s # dispose 0x1be26aab5580! 1231s # 1231s ok 1 /gobject/refcount/signals 1231s # slow test /gobject/refcount/signals executed in 5.00 secs 1231s # End of refcount tests 1231s # End of gobject tests 1231s # Running test: glib/mapping.test 1231s TAP version 14 1231s # random seed: R02Sb173ae324f3fe8440f58eccf340ca0ad 1231s 1..3 1231s # Start of mapping tests 1231s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_QRSMK3/mapping/flags/.dirs/home 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_QRSMK3/mapping/flags/.dirs/cache 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_QRSMK3/mapping/flags/.dirs/system-config1:/tmp/test_mapping_QRSMK3/mapping/flags/.dirs/system-config2 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_QRSMK3/mapping/flags/.dirs/config 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_QRSMK3/mapping/flags/.dirs/system-data1:/tmp/test_mapping_QRSMK3/mapping/flags/.dirs/system-data2 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_QRSMK3/mapping/flags/.dirs/data 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_QRSMK3/mapping/flags/.dirs/state 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_QRSMK3/mapping/flags/.dirs/runtime 1231s # test_mapping: ok 1231s ok 1 /mapping/flags 1231s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_QRSMK3/mapping/private/.dirs/home 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_QRSMK3/mapping/private/.dirs/cache 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_QRSMK3/mapping/private/.dirs/system-config1:/tmp/test_mapping_QRSMK3/mapping/private/.dirs/system-config2 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_QRSMK3/mapping/private/.dirs/config 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_QRSMK3/mapping/private/.dirs/system-data1:/tmp/test_mapping_QRSMK3/mapping/private/.dirs/system-data2 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_QRSMK3/mapping/private/.dirs/data 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_QRSMK3/mapping/private/.dirs/state 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_QRSMK3/mapping/private/.dirs/runtime 1231s ok 2 /mapping/private 1231s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_mapping_QRSMK3/mapping/private-child/.dirs/home 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_mapping_QRSMK3/mapping/private-child/.dirs/cache 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_mapping_QRSMK3/mapping/private-child/.dirs/system-config1:/tmp/test_mapping_QRSMK3/mapping/private-child/.dirs/system-config2 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_mapping_QRSMK3/mapping/private-child/.dirs/config 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_mapping_QRSMK3/mapping/private-child/.dirs/system-data1:/tmp/test_mapping_QRSMK3/mapping/private-child/.dirs/system-data2 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_mapping_QRSMK3/mapping/private-child/.dirs/data 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_mapping_QRSMK3/mapping/private-child/.dirs/state 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_mapping_QRSMK3/mapping/private-child/.dirs/runtime 1231s # test_child_private: child spawned 1231s # Subtest: /usr/libexec/installed-tests/glib/mapping 1231s # random seed: R02Sd564f5eded492b13b00928ee929b4c6d 1231s # test_child_private: received first child signal 1231s ok - glib/mapping.test 1231s # Running test: glib/gdbus-sasl.test 1231s ok - glib/gdbus-sasl.test 1231s # Running test: glib/thumbnail-verification.test 1231s ok - glib/thumbnail-verification.test 1231s # Running test: glib/simple-async-result.test 1231s # test_child_private: received parent signal 1231s # Child exited with status 0 1231s # test_child_private: received second child signal 1231s ok 3 /mapping/private-child 1231s # End of mapping tests 1231s TAP version 14 1231s # random seed: R02Sbcdee9cc3df1f1869d5808ef1c9badd9 1231s 1..1 1231s # Start of gdbus tests 1231s # Start of sasl tests 1231s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-sasl_D0YMK3/gdbus/sasl/server/.dirs/home 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-sasl_D0YMK3/gdbus/sasl/server/.dirs/cache 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-sasl_D0YMK3/gdbus/sasl/server/.dirs/system-config1:/tmp/test_gdbus-sasl_D0YMK3/gdbus/sasl/server/.dirs/system-config2 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-sasl_D0YMK3/gdbus/sasl/server/.dirs/config 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-sasl_D0YMK3/gdbus/sasl/server/.dirs/system-data1:/tmp/test_gdbus-sasl_D0YMK3/gdbus/sasl/server/.dirs/system-data2 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-sasl_D0YMK3/gdbus/sasl/server/.dirs/data 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-sasl_D0YMK3/gdbus/sasl/server/.dirs/state 1231s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-sasl_D0YMK3/gdbus/sasl/server/.dirs/runtime 1231s # New handshake: EXTERNAL with incorrect initial response 1231s # C:“AUTH EXTERNAL 30” 1231s # Expect: /^REJECTED.*$/ 1231s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 1231s # New handshake: EXTERNAL without initial response, failing to authenticate 1231s # C:“AUTH EXTERNAL” 1231s # Expect: /^DATA$/ 1231s # S:“DATA” 1231s # C:“DATA 30” 1231s # Expect: /^REJECTED.*$/ 1231s # S:“REJECTED EXTERNAL DBUS_COOKIE_SHA1” 1231s # New handshake: EXTERNAL with initial response 1231s # C:“AUTH EXTERNAL 31303030” 1231s # Expect: /^OK [0-9a-f]+$/ 1231s # S:“OK 8b8ac10c296e72af6283c042698543c5” 1231s # New handshake: EXTERNAL without initial response 1231s # C:“AUTH EXTERNAL” 1231s # Expect: /^DATA$/ 1231s # S:“DATA” 1231s # C:“DATA 31303030” 1231s # Expect: /^OK [0-9a-f]+$/ 1231s # S:“OK 8b8ac10c296e72af6283c042698543c5” 1231s # New handshake: EXTERNAL with empty authorization identity 1231s # C:“AUTH EXTERNAL” 1231s # Expect: /^DATA$/ 1231s # S:“DATA” 1231s # C:“DATA” 1231s # Expect: /^OK [0-9a-f]+$/ 1231s # S:“OK 8b8ac10c296e72af6283c042698543c5” 1231s # New handshake: EXTERNAL with empty authorization identity and whitespace 1231s # C:“AUTH EXTERNAL” 1231s # Expect: /^DATA$/ 1231s # S:“DATA” 1231s # C:“DATA ” 1231s # Expect: /^OK [0-9a-f]+$/ 1231s # S:“OK 8b8ac10c296e72af6283c042698543c5” 1231s ok 1 /gdbus/sasl/server 1231s # End of sasl tests 1231s # End of gdbus tests 1231s TAP version 14 1231s # random seed: R02S826288391db05507474420d917e3852d 1231s 1..1 1231s # Start of png-thumbs tests 1231s ok 1 /png-thumbs/validity 1231s # End of png-thumbs tests 1231s TAP version 14 1231s # random seed: R02S1936d6620abe75770023024c9dcebc6c 1231s 1..2 1231s # Start of gio tests 1231s # Start of simple-async-result tests 1231s ok 1 /gio/simple-async-result/test 1231s # GLib-GIO-DEBUG: GTask 0x6ea7c825b10 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1231s ok 2 /gio/simple-async-result/valid 1231s # End of simple-async-result tests 1231s # End of gio tests 1231s TAP version 14 1231s # random seed: R02S39e59682907f91920fcd5e895047025a 1231s 1..2 1231s # Start of gtask tests 1231s # 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. 1231s ok 1 /gtask/name 1231s # Start of name tests 1231s # 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. 1231s ok 2 /gtask/name/macro-wrapper 1231s # End of name tests 1231s # End of gtask tests 1231s ok - glib/simple-async-result.test 1231s # Running test: glib/cxx-11.test 1231s ok - glib/cxx-11.test 1231s # Running test: glib/network-monitor-race.test 1231s TAP version 14 1231s # random seed: R02S7e16deda038e93524fee3531790a76b1 1231s 1..1 1231s # Start of network-monitor tests 1231s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=793727 1233s # Executing: glib/network-monitor-race.test 1233s ok - glib/network-monitor-race.test 1233s ok 1 /network-monitor/create-in-thread 1233s # slow test /network-monitor/create-in-thread executed in 2.21 secs 1233s # End of network-monitor tests 1233s # Running test: glib/static-link.test 1233s Test disabled because GLIB_TEST_COMPILATION is not set in the env. 1233s If you wish to run this test, set GLIB_TEST_COMPILATION=1 in the env, 1233s and make sure you have glib build dependencies installed, including 1233s meson. 1233s ok # SKIP - glib/static-link.test 1233s # Running test: glib/dataset.test 1233s TAP version 14 1233s # random seed: R02Saed334f26e9951fe6ec9a15998275e30 1233s 1..15 1233s # Start of quark tests 1233s ok 1 /quark/basic 1233s ok 2 /quark/string 1233s # End of quark tests 1233s # Start of dataset tests 1233s ok 3 /dataset/basic 1233s ok 4 /dataset/id 1233s ok 5 /dataset/full 1233s ok 6 /dataset/foreach 1233s ok 7 /dataset/destroy 1233s # End of dataset tests 1233s # Start of datalist tests 1233s ok 8 /datalist/id 1233s ok 9 /datalist/recursive-clear 1233s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1233s ok 10 /datalist/id-remove-multiple 1233s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2672 1233s ok 11 /datalist/id-remove-multiple-destroy-order 1233s ok 12 /datalist/update-atomic 1233s # Start of basic tests 1233s ok 13 /datalist/basic/few 1233s ok 14 /datalist/basic/many 1233s # End of basic tests 1233s # Start of id-remove-multiple tests 1233s ok 15 /datalist/id-remove-multiple/resize 1233s # End of id-remove-multiple tests 1233s # End of datalist tests 1233s ok - glib/dataset.test 1233s # Running test: glib/asyncqueue.test 1233s TAP version 14 1233s # random seed: R02S1f39b9a3cadf09b5ead20c12025d33e4 1233s 1..7 1233s # Start of asyncqueue tests 1233s ok 1 /asyncqueue/basics 1233s ok 2 /asyncqueue/sort 1233s ok 3 /asyncqueue/destroy 1234s ok 4 /asyncqueue/threads 1234s ok - glib/asyncqueue.test 1234s ok 5 /asyncqueue/timed 1234s ok 6 /asyncqueue/remove 1234s ok 7 /asyncqueue/push_front 1234s # End of asyncqueue tests 1234s # Running test: glib/cxx-14.test 1234s TAP version 14 1234s # random seed: R02S559e2684e5275b55e0616fa7701d02a7 1234s 1..2 1234s # Start of gtask tests 1234s # 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. 1234s ok 1 /gtask/name 1234s # Start of name tests 1234s # 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. 1234s ok 2 /gtask/name/macro-wrapper 1234s # End of name tests 1234s # End of gtask tests 1234s ok - glib/cxx-14.test 1234s # Running test: glib/power-profile-monitor-portal.test 1234s TAP version 13 1234s ok 1 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal # SKIP xdg-desktop-portal not available 1234s ok 2 __main__.TestPowerProfileMonitorPortal.test_power_profile_power_saver_enabled_portal_default # SKIP xdg-desktop-portal not available 1234s 1..2 1234s ok - glib/power-profile-monitor-portal.test 1234s # Running test: glib/notify-init2.test 1234s TAP version 14 1234s # random seed: R02S898e2e51d58c5d23848b0d8872a6305a 1234s 1..1 1234s # Start of properties tests 1234s # /properties/notify-in-init2 summary: Test that notify freezing during construction of objects with custom constructor works 1234s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 1234s ok 1 /properties/notify-in-init2 1234s # End of properties tests 1234s ok - glib/notify-init2.test 1234s # Running test: glib/macros.test 1234s ok - glib/macros.test 1234s TAP version 14 1234s # random seed: R02Sb5c7c49c616dc4718ea28c79075c0c9d 1234s 1..3 1234s # Start of alignof tests 1234s ok 1 /alignof/fallback 1234s # End of alignof tests 1234s # Start of assert tests 1234s ok 2 /assert/static 1234s # End of assert tests 1234s # Start of struct tests 1234s ok 3 /struct/sizeof_member 1234s # End of struct tests 1234s # Running test: glib/object-info.test 1234s TAP version 14 1234s ok - glib/object-info.test 1234s # Running test: glib/sandbox.test 1234s # random seed: R02Sc893060599cb9d6654893f2ccf37f3ac 1234s 1..2 1234s # Start of object-info tests 1234s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_YRVOK3/object-info/find-method-using-interfaces/.dirs/home 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_YRVOK3/object-info/find-method-using-interfaces/.dirs/cache 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_YRVOK3/object-info/find-method-using-interfaces/.dirs/system-config1:/tmp/test_object-info_YRVOK3/object-info/find-method-using-interfaces/.dirs/system-config2 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_YRVOK3/object-info/find-method-using-interfaces/.dirs/config 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_YRVOK3/object-info/find-method-using-interfaces/.dirs/system-data1:/tmp/test_object-info_YRVOK3/object-info/find-method-using-interfaces/.dirs/system-data2 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_YRVOK3/object-info/find-method-using-interfaces/.dirs/data 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_YRVOK3/object-info/find-method-using-interfaces/.dirs/state 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_YRVOK3/object-info/find-method-using-interfaces/.dirs/runtime 1234s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1234s ok 1 /object-info/find-method-using-interfaces 1234s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_object-info_YRVOK3/object-info/find-vfunc-using-interfaces/.dirs/home 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_object-info_YRVOK3/object-info/find-vfunc-using-interfaces/.dirs/cache 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_object-info_YRVOK3/object-info/find-vfunc-using-interfaces/.dirs/system-config1:/tmp/test_object-info_YRVOK3/object-info/find-vfunc-using-interfaces/.dirs/system-config2 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_object-info_YRVOK3/object-info/find-vfunc-using-interfaces/.dirs/config 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_object-info_YRVOK3/object-info/find-vfunc-using-interfaces/.dirs/system-data1:/tmp/test_object-info_YRVOK3/object-info/find-vfunc-using-interfaces/.dirs/system-data2 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_object-info_YRVOK3/object-info/find-vfunc-using-interfaces/.dirs/data 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_object-info_YRVOK3/object-info/find-vfunc-using-interfaces/.dirs/state 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_object-info_YRVOK3/object-info/find-vfunc-using-interfaces/.dirs/runtime 1234s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1234s ok 2 /object-info/find-vfunc-using-interfaces 1234s # End of object-info tests 1234s TAP version 14 1234s # random seed: R02Sc46895e0cbc369c6f0bee2512e61ef61 1234s 1..4 1234s # Start of sandbox tests 1234s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_Z2YOK3/sandbox/none/.dirs/home 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/none/.dirs/cache 1234s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_Z2YOK3/sandbox/none/.dirs/system-config1:/tmp/test_sandbox_Z2YOK3/sandbox/none/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/none/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_Z2YOK3/sandbox/none/.dirs/system-data1:/tmp/test_sandbox_Z2YOK3/sandbox/none/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/none/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/none/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_Z2YOK3/sandbox/none/.dirs/runtime 1236s ok 1 /sandbox/none 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_Z2YOK3/sandbox/snap/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/snap/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_Z2YOK3/sandbox/snap/.dirs/system-config1:/tmp/test_sandbox_Z2YOK3/sandbox/snap/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/snap/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_Z2YOK3/sandbox/snap/.dirs/system-data1:/tmp/test_sandbox_Z2YOK3/sandbox/snap/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/snap/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/snap/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_Z2YOK3/sandbox/snap/.dirs/runtime 1236s # Created snap.yaml in /tmp/test_sandbox_Z2YOK3/snap/current/meta/snap.yaml 1236s ok 2 /sandbox/snap 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_Z2YOK3/sandbox/classic-snap/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/classic-snap/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_Z2YOK3/sandbox/classic-snap/.dirs/system-config1:/tmp/test_sandbox_Z2YOK3/sandbox/classic-snap/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/classic-snap/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_Z2YOK3/sandbox/classic-snap/.dirs/system-data1:/tmp/test_sandbox_Z2YOK3/sandbox/classic-snap/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/classic-snap/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/classic-snap/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_Z2YOK3/sandbox/classic-snap/.dirs/runtime 1236s # Created snap.yaml in /tmp/test_sandbox_Z2YOK3/snap/current/meta/snap.yaml 1236s ok 3 /sandbox/classic-snap 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_sandbox_Z2YOK3/sandbox/flatpak/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/flatpak/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_sandbox_Z2YOK3/sandbox/flatpak/.dirs/system-config1:/tmp/test_sandbox_Z2YOK3/sandbox/flatpak/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/flatpak/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_sandbox_Z2YOK3/sandbox/flatpak/.dirs/system-data1:/tmp/test_sandbox_Z2YOK3/sandbox/flatpak/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/flatpak/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_sandbox_Z2YOK3/sandbox/flatpak/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_sandbox_Z2YOK3/sandbox/flatpak/.dirs/runtime 1236s # Creating .flatpak-info in /tmp/test_sandbox_Z2YOK3/sandbox/flatpak/.dirs/runtime/.flatpak-info 1236s ok 4 /sandbox/flatpak 1236s # End of sandbox tests 1236s ok - glib/sandbox.test 1236s # Running test: glib/tls-interaction.test 1236s TAP version 14 1236s # random seed: R02S042da887a8181fdc65627b44a4ca738b 1236s 1..42 1236s # Start of tls-interaction tests 1236s # Start of ask-password tests 1236s # Start of invoke-with-loop tests 1236s ok 1 /tls-interaction/ask-password/invoke-with-loop/unhandled-implementation 1236s ok 2 /tls-interaction/ask-password/invoke-with-loop/async-implementation-success 1236s ok 3 /tls-interaction/ask-password/invoke-with-loop/async-implementation-failure 1236s ok 4 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-success 1236s ok 5 /tls-interaction/ask-password/invoke-with-loop/sync-implementation-failure 1236s # End of invoke-with-loop tests 1236s # Start of invoke-without-loop tests 1236s ok 6 /tls-interaction/ask-password/invoke-without-loop/unhandled-implementation 1236s ok 7 /tls-interaction/ask-password/invoke-without-loop/async-implementation-success 1236s ok 8 /tls-interaction/ask-password/invoke-without-loop/async-implementation-failure 1236s ok 9 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-success 1236s ok 10 /tls-interaction/ask-password/invoke-without-loop/sync-implementation-failure 1236s # End of invoke-without-loop tests 1236s # Start of invoke-in-loop tests 1236s ok 11 /tls-interaction/ask-password/invoke-in-loop/unhandled-implementation 1236s ok 12 /tls-interaction/ask-password/invoke-in-loop/async-implementation-success 1236s ok 13 /tls-interaction/ask-password/invoke-in-loop/async-implementation-failure 1236s ok 14 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-success 1236s ok 15 /tls-interaction/ask-password/invoke-in-loop/sync-implementation-failure 1236s # End of invoke-in-loop tests 1236s # Start of sync tests 1236s ok 16 /tls-interaction/ask-password/sync/unhandled-implementation 1236s ok 17 /tls-interaction/ask-password/sync/sync-implementation-success 1236s ok 18 /tls-interaction/ask-password/sync/sync-implementation-failure 1236s # End of sync tests 1236s # Start of async tests 1236s ok 19 /tls-interaction/ask-password/async/unhandled-implementation 1236s ok 20 /tls-interaction/ask-password/async/async-implementation-success 1236s ok 21 /tls-interaction/ask-password/async/async-implementation-failure 1236s # End of async tests 1236s # End of ask-password tests 1236s # Start of request-certificate tests 1236s # Start of invoke-with-loop tests 1236s ok 22 /tls-interaction/request-certificate/invoke-with-loop/unhandled-implementation 1236s ok 23 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-success 1236s ok 24 /tls-interaction/request-certificate/invoke-with-loop/async-implementation-failure 1236s ok 25 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-success 1236s ok 26 /tls-interaction/request-certificate/invoke-with-loop/sync-implementation-failure 1236s # End of invoke-with-loop tests 1236s # Start of invoke-without-loop tests 1236s ok 27 /tls-interaction/request-certificate/invoke-without-loop/unhandled-implementation 1236s ok 28 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-success 1236s ok - glib/tls-interaction.test 1236s # Running test: glib/resources.test 1236s ok - glib/resources.test 1236s # Running test: glib/registered-type-info.test 1236s ok - glib/registered-type-info.test 1236s # Running test: glib/memory-monitor.test 1236s ok - glib/memory-monitor.test 1236s # Running test: glib/gdbus-connection-flush.test 1236s ok 29 /tls-interaction/request-certificate/invoke-without-loop/async-implementation-failure 1236s ok 30 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-success 1236s ok 31 /tls-interaction/request-certificate/invoke-without-loop/sync-implementation-failure 1236s # End of invoke-without-loop tests 1236s # Start of invoke-in-loop tests 1236s ok 32 /tls-interaction/request-certificate/invoke-in-loop/unhandled-implementation 1236s ok 33 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-success 1236s ok 34 /tls-interaction/request-certificate/invoke-in-loop/async-implementation-failure 1236s ok 35 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-success 1236s ok 36 /tls-interaction/request-certificate/invoke-in-loop/sync-implementation-failure 1236s # End of invoke-in-loop tests 1236s # Start of sync tests 1236s ok 37 /tls-interaction/request-certificate/sync/unhandled-implementation 1236s ok 38 /tls-interaction/request-certificate/sync/sync-implementation-success 1236s ok 39 /tls-interaction/request-certificate/sync/sync-implementation-failure 1236s # End of sync tests 1236s # Start of async tests 1236s ok 40 /tls-interaction/request-certificate/async/unhandled-implementation 1236s ok 41 /tls-interaction/request-certificate/async/async-implementation-success 1236s ok 42 /tls-interaction/request-certificate/async/async-implementation-failure 1236s # End of async tests 1236s # End of request-certificate tests 1236s # End of tls-interaction tests 1236s TAP version 14 1236s # random seed: R02S9dc93eca10548fae2c47c674cdc47e2a 1236s 1..19 1236s # Start of resource tests 1236s ok 1 /resource/file 1236s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1236s ok 2 /resource/file-path 1236s ok 3 /resource/data 1236s ok 4 /resource/data_unaligned 1236s ok 5 /resource/data-corrupt 1236s # /resource/data-corrupt-compression summary: Test error handling for corrupt GResource files (specifically, corrupt zlib compression). 1236s ok 6 /resource/data-corrupt-compression 1236s ok 7 /resource/data-empty 1236s ok 8 /resource/registered 1236s ok 9 /resource/manual 1236s ok 10 /resource/manual2 1236s ok 11 /resource/automatic 1236s ok 12 /resource/module 1236s ok 13 /resource/binary-linked 1236s ok 14 /resource/64k 1236s GLib-GIO-Message: 01:28:40.738: Adding GResources overlay '/auto_loaded/test1.txt=/usr/libexec/installed-tests/glib/test1.overlay' 1236s GLib-GIO-Message: 01:28:40.739: Opened file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1236s GLib-GIO-Message: 01:28:40.739: Mapped file '/usr/libexec/installed-tests/glib/test1.overlay' as a resource overlay 1236s ok 15 /resource/overlay 1236s ok 16 /resource/digits 1236s ok 17 /resource/has-children 1236s # Start of uri tests 1236s ok 18 /resource/uri/query-info 1236s ok 19 /resource/uri/file 1236s # End of uri tests 1236s # End of resource tests 1236s TAP version 14 1236s # random seed: R02S53d5351b5d07c8b32af8bdbee304a9ec 1236s 1..1 1236s # Start of registered-type-info tests 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_registered-type-info_VH8MK3/registered-type-info/boxed/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_registered-type-info_VH8MK3/registered-type-info/boxed/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_registered-type-info_VH8MK3/registered-type-info/boxed/.dirs/system-config1:/tmp/test_registered-type-info_VH8MK3/registered-type-info/boxed/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_registered-type-info_VH8MK3/registered-type-info/boxed/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_registered-type-info_VH8MK3/registered-type-info/boxed/.dirs/system-data1:/tmp/test_registered-type-info_VH8MK3/registered-type-info/boxed/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_registered-type-info_VH8MK3/registered-type-info/boxed/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_registered-type-info_VH8MK3/registered-type-info/boxed/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_registered-type-info_VH8MK3/registered-type-info/boxed/.dirs/runtime 1236s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1236s # /registered-type-info/boxed summary: Test various boxed and non-boxed types for GIRegisteredTypeInfo 1236s # Expecting CClosure to not be boxed 1236s # Expecting TypeCValue to not be boxed 1236s # Expecting InitiallyUnownedClass to not be boxed 1236s # Expecting BookmarkFile to be boxed 1236s # Expecting Closure to be boxed 1236s # Expecting Object to not be boxed 1236s ok 1 /registered-type-info/boxed 1236s # End of registered-type-info tests 1236s TAP version 14 1236s # random seed: R02Sf7fdf5417c24ac6714b40b6738d13f8d 1236s 1..1 1236s # Start of memory-monitor tests 1236s # GLib-GIO-DEBUG: Failed to initialize portal (GMemoryMonitorPortal) for gio-memory-monitor: Not using portals 1236s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GMemoryMonitorDBus) for ‘gio-memory-monitor’ 1236s ok 1 /memory-monitor/default 1236s # End of memory-monitor tests 1236s TAP version 14 1236s # random seed: R02S06e6964c04317808f0a7b8bc19bb70f4 1236s 1..2 1236s # Start of gdbus tests 1236s # Start of connection tests 1236s # Start of flush tests 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/busy/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/busy/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/busy/.dirs/system-config1:/tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/busy/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/busy/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/busy/.dirs/system-data1:/tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/busy/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/busy/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/busy/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/busy/.dirs/runtime 1236s ok 1 /gdbus/connection/flush/busy 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/idle/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/idle/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/idle/.dirs/system-config1:/tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/idle/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/idle/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/idle/.dirs/system-data1:/tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/idle/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/idle/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/idle/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-connection-flush_TUDNK3/gdbus/connection/flush/idle/.dirs/runtime 1236s ok 2 /gdbus/connection/flush/idle 1236s # End of flush tests 1236s # End of connection tests 1236s # End of gdbus tests 1236s TAP version 14 1236s # random seed: R02Sb7b5f305f04e2c4cbdc4824fa69294f3 1236s 1..9 1236s # Start of glib tests 1236s # Start of testing tests 1236s # Start of protocol tests 1236s ok 1 /glib/testing/protocol/debug 1236s ok 2 /glib/testing/protocol/info 1236s ok 3 /glib/testing/protocol/message 1236s ok 4 /glib/testing/protocol/warning 1236s ok 5 /glib/testing/protocol/critical 1236s ok 6 /glib/testing/protocol/error 1236s ok 7 /glib/testing/protocol/gtest-message 1236s ok 8 /glib/testing/protocol/test-message 1236s ok 9 /glib/testing/protocol/test-error 1236s # End of protocol tests 1236s # End of testing tests 1236s # End of glib tests 1236s ok - glib/gdbus-connection-flush.test 1236s # Running test: glib/protocol.test 1236s ok - glib/protocol.test 1236s # Running test: glib/gdbus-serialization.test 1236s TAP version 14 1236s # random seed: R02Sfd235e90e72d5c21fa131a9d8e0b8694 1236s 1..18 1236s # Start of gdbus tests 1236s # Start of message-serialize tests 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/basic/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/basic/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/basic/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/basic/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/basic/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/basic/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/basic/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/basic/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/basic/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/basic/.dirs/runtime 1236s ok 1 /gdbus/message-serialize/basic 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/complex/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/complex/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/complex/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/complex/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/complex/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/complex/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/complex/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/complex/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/complex/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/complex/.dirs/runtime 1236s ok 2 /gdbus/message-serialize/complex 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/invalid/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/invalid/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/invalid/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/invalid/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/invalid/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/invalid/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/invalid/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/invalid/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/invalid/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/invalid/.dirs/runtime 1236s ok 3 /gdbus/message-serialize/invalid 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/.dirs/runtime 1236s ok 4 /gdbus/message-serialize/header-checks 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/double-array/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/double-array/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/double-array/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/double-array/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/double-array/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/double-array/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/double-array/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/double-array/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/double-array/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/double-array/.dirs/runtime 1236s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=732754 1236s ok 5 /gdbus/message-serialize/double-array 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/empty-structure/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/empty-structure/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/empty-structure/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/empty-structure/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/empty-structure/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/empty-structure/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/empty-structure/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/empty-structure/.dirs/runtime 1236s # /gdbus/message-serialize/empty-structure summary: Test that empty structures are rejected when serializing. 1236s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1236s ok 6 /gdbus/message-serialize/empty-structure 1236s # Start of header-checks tests 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/valid/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/valid/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/valid/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/valid/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/valid/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/valid/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/valid/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/valid/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/valid/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-serialize/header-checks/valid/.dirs/runtime 1236s # /gdbus/message-serialize/header-checks/valid summary: Test that validation allows well-formed messages of all the different types 1236s ok 7 /gdbus/message-serialize/header-checks/valid 1236s # End of header-checks tests 1236s # End of message-serialize tests 1236s # Start of message-parse tests 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-arrays-of-arrays/.dirs/runtime 1236s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=673612 1236s ok 8 /gdbus/message-parse/empty-arrays-of-arrays 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/non-signature-header/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/non-signature-header/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/non-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/non-signature-header/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/non-signature-header/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/non-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/non-signature-header/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/non-signature-header/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/non-signature-header/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/non-signature-header/.dirs/runtime 1236s ok 9 /gdbus/message-parse/non-signature-header 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-signature-header/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-signature-header/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-signature-header/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-signature-header/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-signature-header/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-signature-header/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-signature-header/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-signature-header/.dirs/runtime 1236s ok 10 /gdbus/message-parse/empty-signature-header 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/multiple-signature-header/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/multiple-signature-header/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/multiple-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/multiple-signature-header/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/multiple-signature-header/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/multiple-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/multiple-signature-header/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/multiple-signature-header/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/multiple-signature-header/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/multiple-signature-header/.dirs/runtime 1236s ok 11 /gdbus/message-parse/multiple-signature-header 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/over-long-signature-header/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/over-long-signature-header/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/over-long-signature-header/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/over-long-signature-header/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/over-long-signature-header/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/over-long-signature-header/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/over-long-signature-header/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/over-long-signature-header/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/over-long-signature-header/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/over-long-signature-header/.dirs/runtime 1236s ok 12 /gdbus/message-parse/over-long-signature-header 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-header-nesting/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-header-nesting/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-header-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-header-nesting/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-header-nesting/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-header-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-header-nesting/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-header-nesting/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-header-nesting/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-header-nesting/.dirs/runtime 1236s ok 13 /gdbus/message-parse/deep-header-nesting 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-body-nesting/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-body-nesting/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-body-nesting/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-body-nesting/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-body-nesting/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-body-nesting/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-body-nesting/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-body-nesting/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-body-nesting/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/deep-body-nesting/.dirs/runtime 1236s ok 14 /gdbus/message-parse/deep-body-nesting 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/truncated/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/truncated/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/truncated/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/truncated/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/truncated/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/truncated/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/truncated/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/truncated/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/truncated/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/truncated/.dirs/runtime 1236s # /gdbus/message-parse/truncated summary: Test that truncated messages are properly rejected. 1236s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2528 1236s ok 15 /gdbus/message-parse/truncated 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-structure/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-structure/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-structure/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-structure/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-structure/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-structure/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-structure/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-structure/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-structure/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/empty-structure/.dirs/runtime 1236s # /gdbus/message-parse/empty-structure summary: Test that empty structures are rejected when parsing. 1236s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2557 1236s ok 16 /gdbus/message-parse/empty-structure 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/missing-header/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/missing-header/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/missing-header/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/missing-header/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/missing-header/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/missing-header/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/missing-header/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/missing-header/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/missing-header/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/missing-header/.dirs/runtime 1236s # /gdbus/message-parse/missing-header summary: Test that missing (required) headers prompt an error. 1236s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1236s ok 17 /gdbus/message-parse/missing-header 1236s ok - glib/gdbus-serialization.test 1236s # Running test: glib/dump.test 1236s ok - glib/dump.test 1236s # Running test: glib/module-test-plugin.test 1236s ok - glib/module-test-plugin.test 1236s # Running test: glib/type.test 1236s ok - glib/type.test 1236s # Running test: glib/dynamictests.test 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/invalid-header-type/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/invalid-header-type/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/invalid-header-type/.dirs/system-config1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/invalid-header-type/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/invalid-header-type/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/invalid-header-type/.dirs/system-data1:/tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/invalid-header-type/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/invalid-header-type/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/invalid-header-type/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-serialization_EX1CK3/gdbus/message-parse/invalid-header-type/.dirs/runtime 1236s # /gdbus/message-parse/invalid-header-type summary: Test that the type of well-known headers is checked. 1236s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3061 1236s ok 18 /gdbus/message-parse/invalid-header-type 1236s # End of message-parse tests 1236s # End of gdbus tests 1236s TAP version 14 1236s # random seed: R02S15854fd66a821565aa2446459ed2c3c5 1236s 1..4 1236s # Start of dump tests 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_EYMCK3/dump/empty-file/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_EYMCK3/dump/empty-file/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_EYMCK3/dump/empty-file/.dirs/system-config1:/tmp/test_dump_EYMCK3/dump/empty-file/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_EYMCK3/dump/empty-file/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_EYMCK3/dump/empty-file/.dirs/system-data1:/tmp/test_dump_EYMCK3/dump/empty-file/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_EYMCK3/dump/empty-file/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_EYMCK3/dump/empty-file/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_EYMCK3/dump/empty-file/.dirs/runtime 1236s ok 1 /dump/empty-file 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_EYMCK3/dump/missing-get-type/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_EYMCK3/dump/missing-get-type/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_EYMCK3/dump/missing-get-type/.dirs/system-config1:/tmp/test_dump_EYMCK3/dump/missing-get-type/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_EYMCK3/dump/missing-get-type/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_EYMCK3/dump/missing-get-type/.dirs/system-data1:/tmp/test_dump_EYMCK3/dump/missing-get-type/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_EYMCK3/dump/missing-get-type/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_EYMCK3/dump/missing-get-type/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_EYMCK3/dump/missing-get-type/.dirs/runtime 1236s Invalid GType function: 'does_not_exist_get_type' 1236s ok 2 /dump/missing-get-type 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_EYMCK3/dump/missing-quark/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_EYMCK3/dump/missing-quark/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_EYMCK3/dump/missing-quark/.dirs/system-config1:/tmp/test_dump_EYMCK3/dump/missing-quark/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_EYMCK3/dump/missing-quark/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_EYMCK3/dump/missing-quark/.dirs/system-data1:/tmp/test_dump_EYMCK3/dump/missing-quark/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_EYMCK3/dump/missing-quark/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_EYMCK3/dump/missing-quark/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_EYMCK3/dump/missing-quark/.dirs/runtime 1236s Invalid error quark function: 'does_not_exist_error' 1236s ok 3 /dump/missing-quark 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_dump_EYMCK3/dump/basic/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_dump_EYMCK3/dump/basic/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_dump_EYMCK3/dump/basic/.dirs/system-config1:/tmp/test_dump_EYMCK3/dump/basic/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_dump_EYMCK3/dump/basic/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_dump_EYMCK3/dump/basic/.dirs/system-data1:/tmp/test_dump_EYMCK3/dump/basic/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_dump_EYMCK3/dump/basic/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_dump_EYMCK3/dump/basic/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_dump_EYMCK3/dump/basic/.dirs/runtime 1236s ok 4 /dump/basic 1236s # End of dump tests 1236s TAP version 14 1236s # random seed: R02S0b438a398c587a205f3dc7fee504d371 1236s 1..3 1236s # Start of module tests 1236s ok 1 /module/basics 1236s # /module/invalid-libtool-archive summary: Test that opening an invalid .la file fails 1236s ok 2 /module/invalid-libtool-archive 1236s # /module/local-binding summary: Test that binding a library's symbols locally does not add them globally 1236s ok 3 /module/local-binding 1236s # End of module tests 1236s TAP version 14 1236s # random seed: R02S5dc5a355fd32647e90529a7f67c9c88f 1236s 1..6 1236s # Start of type tests 1236s ok 1 /type/registration-serial 1236s ok 2 /type/interface-prerequisite 1236s ok 3 /type/interface-check 1236s ok 4 /type/next-base 1236s ok 5 /type/is-a 1236s # Invalid types can’t be queried. 1236s # Unclassed types can’t be queried. 1236s ok 6 /type/query 1236s # End of type tests 1236s TAP version 14 1236s # random seed: R02S8a9cac8ff4a4b351af47ffef300ab49b 1236s 1..2 1236s # Start of GObject tests 1236s ok - glib/dynamictests.test 1236s # Running test: glib/strfuncs.test 1236s ok - glib/strfuncs.test 1236s ok 1 /GObject/threaded-dynamic-ref-unref-init 1236s ok 2 /GObject/dynamic-interface-properties 1236s # End of GObject tests 1236s TAP version 14 1236s # random seed: R02S2643e7cd0493bc67ab2625e9f0ddc5e8 1236s 1..51 1236s # Start of strfuncs tests 1236s ok 1 /strfuncs/ascii-strcasecmp 1236s ok 2 /strfuncs/ascii_strdown 1236s ok 3 /strfuncs/ascii_strdup 1236s ok 4 /strfuncs/ascii_strtod 1236s ok 5 /strfuncs/bounds-check 1236s ok 6 /strfuncs/has-prefix 1236s ok 7 /strfuncs/has-prefix-macro 1236s ok 8 /strfuncs/has-suffix 1236s ok 9 /strfuncs/has-suffix-macro 1236s ok 10 /strfuncs/memdup 1236s ok 11 /strfuncs/memdup2 1236s ok 12 /strfuncs/set_str 1236s ok 13 /strfuncs/stpcpy 1236s ok 14 /strfuncs/str_match_string 1236s ok 15 /strfuncs/str_tokenize_and_fold 1236s ok 16 /strfuncs/strcanon 1236s ok 17 /strfuncs/strchomp 1236s ok 18 /strfuncs/strchug 1236s ok 19 /strfuncs/strcompress-strescape 1236s ok 20 /strfuncs/strconcat 1236s ok 21 /strfuncs/strdelimit 1236s ok 22 /strfuncs/strdup 1236s ok 23 /strfuncs/strdup-printf 1236s ok 24 /strfuncs/strdupv 1236s ok 25 /strfuncs/strerror 1236s ok 26 /strfuncs/strip-context 1236s ok 27 /strfuncs/strjoin 1236s ok 28 /strfuncs/strjoinv 1236s ok 29 /strfuncs/strlcat 1236s ok 30 /strfuncs/strlcpy 1236s ok 31 /strfuncs/strncasecmp 1236s ok 32 /strfuncs/strndup 1236s ok 33 /strfuncs/strnfill 1236s ok 34 /strfuncs/strreverse 1236s ok 35 /strfuncs/strsignal 1236s ok 36 /strfuncs/strsplit 1236s ok 37 /strfuncs/strsplit-set 1236s ok 38 /strfuncs/strstr 1236s ok 39 /strfuncs/strtod 1236s ok 40 /strfuncs/strtoull-strtoll 1236s ok 41 /strfuncs/strup 1236s ok 42 /strfuncs/strv-contains 1236s ok 43 /strfuncs/strv-equal 1236s ok 44 /strfuncs/strv-length 1236s ok 45 /strfuncs/test-is-to-digit 1236s ok 46 /strfuncs/transliteration 1236s # /strfuncs/str-equal summary: Test macro and function forms of g_str_equal() 1236s ok 47 /strfuncs/str-equal 1236s ok 48 /strfuncs/str-is-ascii 1236s # Start of ascii-string-to-num tests 1236s ok 49 /strfuncs/ascii-string-to-num/pathological 1236s ok 50 /strfuncs/ascii-string-to-num/usual 1236s # End of ascii-string-to-num tests 1236s # Start of strdup tests 1236s ok 51 /strfuncs/strdup/inline 1236s # End of strdup tests 1236s # End of strfuncs tests 1236s # Running test: glib/hash.test 1236s TAP version 14 1236s # random seed: R02Sbd0c2c665b624e21ca551787756fee06 1236s 1..34 1236s # Start of hash tests 1236s ok - glib/hash.test 1236s # Running test: glib/markup-escape.test 1236s ok 1 /hash/misc 1236s ok 2 /hash/one 1236s ok 3 /hash/honeyman 1236s ok 4 /hash/direct 1236s ok 5 /hash/direct2 1236s ok 6 /hash/int 1236s ok 7 /hash/int64 1236s ok 8 /hash/double 1236s ok 9 /hash/string 1236s ok 10 /hash/set 1236s ok 11 /hash/set-ref 1236s ok 12 /hash/ref 1236s ok 13 /hash/remove-all 1236s ok 14 /hash/recursive-remove-all 1236s ok 15 /hash/find 1236s ok 16 /hash/foreach 1236s ok 17 /hash/foreach-steal 1236s ok 18 /hash/steal-extended 1236s ok 19 /hash/steal-all-keys 1236s ok 20 /hash/steal-all-values 1236s ok 21 /hash/lookup-extended 1236s ok 22 /hash/new-similar 1236s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642944 1236s ok 23 /hash/lookup-null-key 1236s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=650459 1236s ok 24 /hash/destroy-modify 1236s ok 25 /hash/consistency 1236s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=662544 1236s ok 26 /hash/iter-replace 1236s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=692815 1236s ok 27 /hash/set-insert-corruption 1236s ok 28 /hash/set-to-strv 1236s ok 29 /hash/get-keys-as-ptr-array 1236s ok 30 /hash/get-values-as-ptr-array 1236s ok 31 /hash/primes 1236s # Start of int64 tests 1236s # /hash/int64/collisions summary: Check int64 Hash collisions caused by ignoring high word 1236s ok 32 /hash/int64/collisions 1236s # End of int64 tests 1236s # Start of double tests 1236s # /hash/double/collisions summary: Check double Hash collisions caused by int conversion and by numbers larger than 2^64-1 (G_MAXUINT64) 1236s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2771 1236s ok 33 /hash/double/collisions 1236s # End of double tests 1236s # Start of recursive-remove-all tests 1236s # End of recursive-remove-all tests 1236s # Start of steal-extended tests 1236s ok 34 /hash/steal-extended/optional 1236s # End of steal-extended tests 1236s # End of hash tests 1236s TAP version 14 1236s # random seed: R02Sa9f2d34740ada569ac252f40b57d2294 1236s ok - glib/markup-escape.test 1236s # Running test: glib/gdbus-auth.test 1236s 1..41 1236s # Start of markup tests 1236s ok 1 /markup/format 1236s # Start of escape-text tests 1236s ok 2 /markup/escape-text/0 1236s ok 3 /markup/escape-text/1 1236s ok 4 /markup/escape-text/2 1236s ok 5 /markup/escape-text/3 1236s ok 6 /markup/escape-text/4 1236s ok 7 /markup/escape-text/5 1236s ok 8 /markup/escape-text/6 1236s ok 9 /markup/escape-text/7 1236s ok 10 /markup/escape-text/8 1236s ok 11 /markup/escape-text/9 1236s ok 12 /markup/escape-text/10 1236s ok 13 /markup/escape-text/11 1236s ok 14 /markup/escape-text/12 1236s ok 15 /markup/escape-text/13 1236s ok 16 /markup/escape-text/14 1236s ok 17 /markup/escape-text/15 1236s ok 18 /markup/escape-text/16 1236s ok 19 /markup/escape-text/17 1236s ok 20 /markup/escape-text/18 1236s ok 21 /markup/escape-text/19 1236s ok 22 /markup/escape-text/20 1236s ok 23 /markup/escape-text/21 1236s ok 24 /markup/escape-text/22 1236s # End of escape-text tests 1236s # Start of escape-unichar tests 1236s ok 25 /markup/escape-unichar/0 1236s ok 26 /markup/escape-unichar/1 1236s ok 27 /markup/escape-unichar/2 1236s ok 28 /markup/escape-unichar/3 1236s ok 29 /markup/escape-unichar/4 1236s ok 30 /markup/escape-unichar/5 1236s ok 31 /markup/escape-unichar/6 1236s ok 32 /markup/escape-unichar/7 1236s ok 33 /markup/escape-unichar/8 1236s ok 34 /markup/escape-unichar/9 1236s ok 35 /markup/escape-unichar/10 1236s ok 36 /markup/escape-unichar/11 1236s ok 37 /markup/escape-unichar/12 1236s ok 38 /markup/escape-unichar/13 1236s ok 39 /markup/escape-unichar/14 1236s ok 40 /markup/escape-unichar/15 1236s ok 41 /markup/escape-unichar/16 1236s # End of escape-unichar tests 1236s # End of markup tests 1236s TAP version 14 1236s # random seed: R02S059daf0ba047155a0804507da1911021 1236s 1..5 1236s # Start of gdbus tests 1236s # Start of auth tests 1236s # Start of client tests 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/EXTERNAL/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/EXTERNAL/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/EXTERNAL/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/EXTERNAL/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/EXTERNAL/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/EXTERNAL/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/EXTERNAL/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/EXTERNAL/.dirs/runtime 1236s ok 1 /gdbus/auth/client/EXTERNAL 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/client/DBUS_COOKIE_SHA1/.dirs/runtime 1236s ok 2 /gdbus/auth/client/DBUS_COOKIE_SHA1 1236s # End of client tests 1236s # Start of server tests 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/ANONYMOUS/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/ANONYMOUS/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/ANONYMOUS/.dirs/system-config1:/tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/ANONYMOUS/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/ANONYMOUS/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/ANONYMOUS/.dirs/system-data1:/tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/ANONYMOUS/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/ANONYMOUS/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/ANONYMOUS/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/ANONYMOUS/.dirs/runtime 1236s ok 3 /gdbus/auth/server/ANONYMOUS 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/EXTERNAL/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/EXTERNAL/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/EXTERNAL/.dirs/system-config1:/tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/EXTERNAL/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/EXTERNAL/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/EXTERNAL/.dirs/system-data1:/tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/EXTERNAL/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/EXTERNAL/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/EXTERNAL/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/EXTERNAL/.dirs/runtime 1236s ok 4 /gdbus/auth/server/EXTERNAL 1236s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/home 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/cache 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config1:/tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-config2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/config 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data1:/tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/system-data2 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/data 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/state 1236s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-auth_BC25J3/gdbus/auth/server/DBUS_COOKIE_SHA1/.dirs/runtime 1236s ok - glib/gdbus-auth.test 1236s # Running test: glib/mkenums.py.test 1236s ok 5 /gdbus/auth/server/DBUS_COOKIE_SHA1 1236s # End of server tests 1236s # End of auth tests 1236s # End of gdbus tests 1236s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1236s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1236s TAP version 13 1236s ok 1 __main__.TestMkenums.test_available_in 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpqx1fk3yc 1236s # rspfile: False 1236s # /tmp/tmpqx1fk3yc/tmpata3opb8.h: 1236s # typedef enum { 1236s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1236s # } GDBusServerFlags; 1236s # 1236s # /tmp/tmpqx1fk3yc/tmpbjgn2uuw.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpqx1fk3yc/tmpbjgn2uuw.template', '/tmp/tmpqx1fk3yc/tmpata3opb8.h'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpqx1fk3yc/tmpata3opb8.h 1236s # basename: tmpata3opb8.h 1236s # enumeration-production 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-header 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-production 1236s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1236s # valuenick: user 1236s # valuenum: 4 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-tail 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 2 __main__.TestMkenums.test_comma_in_enum_value 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpvvrdwvty 1236s # rspfile: False 1236s # /tmp/tmpvvrdwvty/tmpd2fe40t5.h: 1236s # typedef enum { 1236s # ENUM_VALUE_WITH_COMMA = ',', 1236s # } TestCommaEnum; 1236s # 1236s # /tmp/tmpvvrdwvty/tmpfpt7ne20.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpvvrdwvty/tmpfpt7ne20.template', '/tmp/tmpvvrdwvty/tmpd2fe40t5.h'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpvvrdwvty/tmpd2fe40t5.h 1236s # basename: tmpd2fe40t5.h 1236s # enumeration-production 1236s # EnumName: TestCommaEnum 1236s # enum_name: test_comma_enum 1236s # ENUMNAME: TEST_COMMA_ENUM 1236s # ENUMSHORT: COMMA_ENUM 1236s # ENUMPREFIX: TEST 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: TestCommaEnum 1236s # enum_name: test_comma_enum 1236s # ENUMNAME: TEST_COMMA_ENUM 1236s # ENUMSHORT: COMMA_ENUM 1236s # ENUMPREFIX: TEST 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: ENUM_VALUE_WITH_COMMA 1236s # valuenick: comma 1236s # valuenum: 44 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: TestCommaEnum 1236s # enum_name: test_comma_enum 1236s # ENUMNAME: TEST_COMMA_ENUM 1236s # ENUMSHORT: COMMA_ENUM 1236s # ENUMPREFIX: TEST 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 3 __main__.TestMkenums.test_deprecated_in 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpsvdpnsik 1236s # rspfile: False 1236s # /tmp/tmpsvdpnsik/tmpwp13btis.h: 1236s # typedef enum { 1236s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1236s # } GDBusServerFlags; 1236s # 1236s # /tmp/tmpsvdpnsik/tmppyebfze7.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpsvdpnsik/tmppyebfze7.template', '/tmp/tmpsvdpnsik/tmpwp13btis.h'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpsvdpnsik/tmpwp13btis.h 1236s # basename: tmpwp13btis.h 1236s # enumeration-production 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-header 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-production 1236s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1236s # valuenick: user 1236s # valuenum: 4 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-tail 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 4 __main__.TestMkenums.test_deprecated_in_for 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpa2hyi3p6 1236s # rspfile: False 1236s # /tmp/tmpa2hyi3p6/tmpbe8_e9u6.h: 1236s # typedef enum { 1236s # 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) 1236s # } GDBusServerFlags; 1236s # 1236s # /tmp/tmpa2hyi3p6/tmpm0xu9nca.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpa2hyi3p6/tmpm0xu9nca.template', '/tmp/tmpa2hyi3p6/tmpbe8_e9u6.h'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpa2hyi3p6/tmpbe8_e9u6.h 1236s # basename: tmpbe8_e9u6.h 1236s # enumeration-production 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-header 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-production 1236s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1236s # valuenick: user 1236s # valuenum: 4 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-tail 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 5 __main__.TestMkenums.test_empty_header 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpdo0i5qmj 1236s # rspfile: False 1236s # /tmp/tmpdo0i5qmj/tmp6famzqw1.h: 1236s # /tmp/tmpdo0i5qmj/tmpk280vnql.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpdo0i5qmj/tmpk280vnql.template', '/tmp/tmpdo0i5qmj/tmp6famzqw1.h'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 6 __main__.TestMkenums.test_empty_template 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpt7i2l5xl 1236s # rspfile: False 1236s # /tmp/tmpt7i2l5xl/tmpmh4ofifc.template: 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpt7i2l5xl/tmpmh4ofifc.template'] 1236s # Return code: 0 1236s # Output: 1236s # /* 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. */ 1236s # 1236s # 1236s # /* Generated data ends here */ 1236s # Error: 1236s ok 7 __main__.TestMkenums.test_enum_name 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmp1cl3e9l6 1236s # rspfile: False 1236s # /tmp/tmp1cl3e9l6/tmpjmtx1a9o.h: 1236s # typedef enum _SomeEnumIdentifier { 1236s # ENUM_VALUE 1236s # } SomeEnumIdentifier; 1236s # 1236s # /tmp/tmp1cl3e9l6/tmpd0s26r7f.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp1cl3e9l6/tmpd0s26r7f.template', '/tmp/tmp1cl3e9l6/tmpjmtx1a9o.h'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmp1cl3e9l6/tmpjmtx1a9o.h 1236s # basename: tmpjmtx1a9o.h 1236s # enumeration-production 1236s # EnumName: SomeEnumIdentifier 1236s # enum_name: some_enum_identifier 1236s # ENUMNAME: SOME_ENUM_IDENTIFIER 1236s # ENUMSHORT: ENUM_IDENTIFIER 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: SomeEnumIdentifier 1236s # enum_name: some_enum_identifier 1236s # ENUMNAME: SOME_ENUM_IDENTIFIER 1236s # ENUMSHORT: ENUM_IDENTIFIER 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: ENUM_VALUE 1236s # valuenick: value 1236s # valuenum: 0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: SomeEnumIdentifier 1236s # enum_name: some_enum_identifier 1236s # ENUMNAME: SOME_ENUM_IDENTIFIER 1236s # ENUMSHORT: ENUM_IDENTIFIER 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 8 __main__.TestMkenums.test_enum_private_public 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpmzqnr82z 1236s # rspfile: False 1236s # /tmp/tmpmzqnr82z/tmpdyf_s_av.h: 1236s # typedef enum { 1236s # ENUM_VALUE_PUBLIC1, 1236s # /*< private >*/ 1236s # ENUM_VALUE_PRIVATE, 1236s # } SomeEnumA 1236s # 1236s # /tmp/tmpmzqnr82z/tmpv2077zwc.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpmzqnr82z/tmpv2077zwc.template', '/tmp/tmpmzqnr82z/tmpdyf_s_av.h'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpmzqnr82z/tmpdyf_s_av.h 1236s # basename: tmpdyf_s_av.h 1236s # enumeration-production 1236s # EnumName: SomeEnumA 1236s # enum_name: some_enum_a 1236s # ENUMNAME: SOME_ENUM_A 1236s # ENUMSHORT: ENUM_A 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: SomeEnumA 1236s # enum_name: some_enum_a 1236s # ENUMNAME: SOME_ENUM_A 1236s # ENUMSHORT: ENUM_A 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: ENUM_VALUE_PUBLIC1 1236s # valuenick: public1 1236s # valuenum: 0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: SomeEnumA 1236s # enum_name: some_enum_a 1236s # ENUMNAME: SOME_ENUM_A 1236s # ENUMSHORT: ENUM_A 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s # 1236s # /tmp/tmpmzqnr82z/tmp_j51ibwu.h: 1236s # typedef enum { 1236s # /*< private >*/ 1236s # ENUM_VALUE_PRIVATE, 1236s # /*< public >*/ 1236s # ENUM_VALUE_PUBLIC2, 1236s # } SomeEnumB; 1236s # 1236s # /tmp/tmpmzqnr82z/tmp2qjpcx4n.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpmzqnr82z/tmp2qjpcx4n.template', '/tmp/tmpmzqnr82z/tmp_j51ibwu.h'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpmzqnr82z/tmp_j51ibwu.h 1236s # basename: tmp_j51ibwu.h 1236s # enumeration-production 1236s # EnumName: SomeEnumB 1236s # enum_name: some_enum_b 1236s # ENUMNAME: SOME_ENUM_B 1236s # ENUMSHORT: ENUM_B 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: SomeEnumB 1236s # enum_name: some_enum_b 1236s # ENUMNAME: SOME_ENUM_B 1236s # ENUMSHORT: ENUM_B 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: ENUM_VALUE_PUBLIC2 1236s # valuenick: public2 1236s # valuenum: 1 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: SomeEnumB 1236s # enum_name: some_enum_b 1236s # ENUMNAME: SOME_ENUM_B 1236s # ENUMSHORT: ENUM_B 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 9 __main__.TestMkenums.test_enum_symbolic_expression 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmp4ax8_kcx 1236s # rspfile: False 1236s # /tmp/tmp4ax8_kcx/tmp_ew7go1y.h: 1236s # typedef enum { 1236s # /*< private >*/ 1236s # ENUM_VALUE_PRIVATE = 5, 1236s # /*< public >*/ 1236s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1236s # } TestSymbolicEnum; 1236s # 1236s # /tmp/tmp4ax8_kcx/tmpy0wco0eu.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp4ax8_kcx/tmpy0wco0eu.template', '/tmp/tmp4ax8_kcx/tmp_ew7go1y.h'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmp4ax8_kcx/tmp_ew7go1y.h 1236s # basename: tmp_ew7go1y.h 1236s # enumeration-production 1236s # EnumName: TestSymbolicEnum 1236s # enum_name: test_symbolic_enum 1236s # ENUMNAME: TEST_SYMBOLIC_ENUM 1236s # ENUMSHORT: SYMBOLIC_ENUM 1236s # ENUMPREFIX: TEST 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: TestSymbolicEnum 1236s # enum_name: test_symbolic_enum 1236s # ENUMNAME: TEST_SYMBOLIC_ENUM 1236s # ENUMSHORT: SYMBOLIC_ENUM 1236s # ENUMPREFIX: TEST 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: ENUM_VALUE_PUBLIC 1236s # valuenick: public 1236s # valuenum: 7 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: TestSymbolicEnum 1236s # enum_name: test_symbolic_enum 1236s # ENUMNAME: TEST_SYMBOLIC_ENUM 1236s # ENUMSHORT: SYMBOLIC_ENUM 1236s # ENUMPREFIX: TEST 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 10 __main__.TestMkenums.test_filename_basename_in_fhead_ftail 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmptrw5ezy_ 1236s # rspfile: False 1236s # /tmp/tmptrw5ezy_/tmpzfvlqof8.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-tail ***/ 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmptrw5ezy_/tmpzfvlqof8.template'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # file-tail 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s # WARNING: @filename@ used in file-header section. 1236s # WARNING: @basename@ used in file-header section. 1236s # WARNING: @filename@ used in file-tail section. 1236s # WARNING: @basename@ used in file-tail section. 1236s ok 11 __main__.TestMkenums.test_help 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmp6pwrwhqq 1236s # rspfile: False 1236s # Running: ['/usr/bin/glib-mkenums', '--help'] 1236s # Return code: 0 1236s # Output: 1236s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1236s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1236s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1236s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1236s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1236s # [--output OUTPUT] [--version] 1236s # [args ...] 1236s # 1236s # positional arguments: 1236s # args One or more input files, or a single argument 1236s # @rspfile_path pointing to a file that contains the 1236s # actual arguments 1236s # 1236s # options: 1236s # -h, --help show this help message and exit 1236s # --identifier-prefix IDPREFIX 1236s # Identifier prefix 1236s # --symbol-prefix SYMPREFIX 1236s # Symbol prefix 1236s # --fhead FHEAD Output file header 1236s # --ftail FTAIL Output file footer 1236s # --fprod FPROD Put out TEXT every time a new input file is being 1236s # processed. 1236s # --eprod EPROD Per enum text, produced prior to value iterations 1236s # --vhead VHEAD Value header, produced before iterating over enum 1236s # values 1236s # --vprod VPROD Value text, produced for each enum value. 1236s # --vtail VTAIL Value tail, produced after iterating over enum values 1236s # --comments COMMENT_TMPL 1236s # Comment structure 1236s # --template TEMPLATE Template file 1236s # --output OUTPUT 1236s # --version, -v Print version information 1236s # 1236s # Production text substitutions: 1236s # @EnumName@ PrefixTheXEnum 1236s # @enum_name@ prefix_the_xenum 1236s # @ENUMNAME@ PREFIX_THE_XENUM 1236s # @ENUMSHORT@ THE_XENUM 1236s # @ENUMPREFIX@ PREFIX 1236s # @enumsince@ the user-provided since value given 1236s # @VALUENAME@ PREFIX_THE_XVALUE 1236s # @valuenick@ the-xvalue 1236s # @valuenum@ the integer value (limited support, Since: 2.26) 1236s # @type@ either enum or flags 1236s # @Type@ either Enum or Flags 1236s # @TYPE@ either ENUM or FLAGS 1236s # @filename@ name of current input file 1236s # @basename@ base name of the current input file (Since: 2.22) 1236s # Error: 1236s ok 12 __main__.TestMkenums.test_no_args 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpuf86i5ga 1236s # rspfile: False 1236s # Running: ['/usr/bin/glib-mkenums'] 1236s # Return code: 0 1236s # Output: 1236s # /* 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. */ 1236s # 1236s # 1236s # /* Generated data ends here */ 1236s # Error: 1236s ok 13 __main__.TestMkenums.test_no_headers 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpix0ejygh 1236s # rspfile: False 1236s # /tmp/tmpix0ejygh/tmpjixyl6tl.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpix0ejygh/tmpjixyl6tl.template'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 14 __main__.TestMkenums.test_no_nick 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpg60cm64u 1236s # rspfile: False 1236s # /tmp/tmpg60cm64u/tmpuadvicto.h: 1236s # typedef enum { 1236s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1236s # } GeglSamplerType; 1236s # 1236s # /tmp/tmpg60cm64u/tmptmzl5hdy.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpg60cm64u/tmptmzl5hdy.template', '/tmp/tmpg60cm64u/tmpuadvicto.h'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpg60cm64u/tmpuadvicto.h 1236s # basename: tmpuadvicto.h 1236s # enumeration-production 1236s # EnumName: GeglSamplerType 1236s # enum_name: gegl_sampler_type 1236s # ENUMNAME: GEGL_SAMPLER_TYPE 1236s # ENUMSHORT: SAMPLER_TYPE 1236s # ENUMPREFIX: GEGL 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: GeglSamplerType 1236s # enum_name: gegl_sampler_type 1236s # ENUMNAME: GEGL_SAMPLER_TYPE 1236s # ENUMSHORT: SAMPLER_TYPE 1236s # ENUMPREFIX: GEGL 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: GEGL_SAMPLER_NEAREST 1236s # valuenick: nearest 1236s # valuenum: 0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: GeglSamplerType 1236s # enum_name: gegl_sampler_type 1236s # ENUMNAME: GEGL_SAMPLER_TYPE 1236s # ENUMSHORT: SAMPLER_TYPE 1236s # ENUMPREFIX: GEGL 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 15 __main__.TestMkenums.test_non_utf8_encoding 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpsd422xyn 1236s # rspfile: False 1236s # /tmp/tmpsd422xyn/tmpidj9hhc5.h: 1236s # /* Copyright © La Peña */ 1236s # typedef enum { 1236s # ENUM_VALUE 1236s # } SomeEnumIdentifier; 1236s # 1236s # /tmp/tmpsd422xyn/tmpbsa0w0hj.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpsd422xyn/tmpbsa0w0hj.template', '/tmp/tmpsd422xyn/tmpidj9hhc5.h'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpsd422xyn/tmpidj9hhc5.h 1236s # basename: tmpidj9hhc5.h 1236s # enumeration-production 1236s # EnumName: SomeEnumIdentifier 1236s # enum_name: some_enum_identifier 1236s # ENUMNAME: SOME_ENUM_IDENTIFIER 1236s # ENUMSHORT: ENUM_IDENTIFIER 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: SomeEnumIdentifier 1236s # enum_name: some_enum_identifier 1236s # ENUMNAME: SOME_ENUM_IDENTIFIER 1236s # ENUMSHORT: ENUM_IDENTIFIER 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: ENUM_VALUE 1236s # valuenick: value 1236s # valuenum: 0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: SomeEnumIdentifier 1236s # enum_name: some_enum_identifier 1236s # ENUMNAME: SOME_ENUM_IDENTIFIER 1236s # ENUMSHORT: ENUM_IDENTIFIER 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1236s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1236s ok 16 __main__.TestMkenums.test_reproducible 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmp3dbe0ysr 1236s # rspfile: False 1236s # /tmp/tmp3dbe0ysr/tmpy13rz6_o.template: template 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp3dbe0ysr/tmpy13rz6_o.template', '/tmp/tmp3dbe0ysr/tmp0phwhy4w1.h', '/tmp/tmp3dbe0ysr/tmpg3c_l5ls2.h'] 1236s # Return code: 0 1236s # Output: 1236s # /* 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. */ 1236s # 1236s # 1236s # /* Generated data ends here */ 1236s # Error: 1236s # 1236s # /tmp/tmp3dbe0ysr/tmpentaq8kw.template: template 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp3dbe0ysr/tmpentaq8kw.template', '/tmp/tmp3dbe0ysr/tmpg3c_l5ls2.h', '/tmp/tmp3dbe0ysr/tmp0phwhy4w1.h'] 1236s # Return code: 0 1236s # Output: 1236s # /* 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. */ 1236s # 1236s # 1236s # /* Generated data ends here */ 1236s # Error: 1236s ok 17 __main__.TestMkenums.test_since 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmp8166k886 1236s # rspfile: False 1236s # /tmp/tmp8166k886/tmpybza_vse.h: 1236s # typedef enum { /*< since=1.0 >*/ 1236s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1236s # } QmiWmsMessageProtocol; 1236s # 1236s # /tmp/tmp8166k886/tmp1yrqpu1t.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmp8166k886/tmp1yrqpu1t.template', '/tmp/tmp8166k886/tmpybza_vse.h'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmp8166k886/tmpybza_vse.h 1236s # basename: tmpybza_vse.h 1236s # enumeration-production 1236s # EnumName: QmiWmsMessageProtocol 1236s # enum_name: qmi_wms_message_protocol 1236s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1236s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1236s # ENUMPREFIX: QMI 1236s # enumsince: 1.0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: QmiWmsMessageProtocol 1236s # enum_name: qmi_wms_message_protocol 1236s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1236s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1236s # ENUMPREFIX: QMI 1236s # enumsince: 1.0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1236s # valuenick: cdma 1236s # valuenum: 0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: QmiWmsMessageProtocol 1236s # enum_name: qmi_wms_message_protocol 1236s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1236s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1236s # ENUMPREFIX: QMI 1236s # enumsince: 1.0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 18 __main__.TestMkenums.test_with_double_quotes 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpjiq9nsy6 1236s # rspfile: False 1236s # /tmp/tmpjiq9nsy6/tmp8atnudv4.h: 1236s # typedef enum { 1236s # FOO_VALUE /*< nick="eek, a comma" >*/ 1236s # } Foo; 1236s # 1236s # /tmp/tmpjiq9nsy6/tmpoiwaqbb6.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Running: ['/usr/bin/glib-mkenums', '--template', '/tmp/tmpjiq9nsy6/tmpoiwaqbb6.template', '/tmp/tmpjiq9nsy6/tmp8atnudv4.h'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpjiq9nsy6/tmp8atnudv4.h 1236s # basename: tmp8atnudv4.h 1236s # enumeration-production 1236s # EnumName: Foo 1236s # enum_name: foo_ 1236s # ENUMNAME: FOO_ 1236s # ENUMSHORT: 1236s # ENUMPREFIX: FOO 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: Foo 1236s # enum_name: foo_ 1236s # ENUMNAME: FOO_ 1236s # ENUMSHORT: 1236s # ENUMPREFIX: FOO 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: FOO_VALUE 1236s # valuenick: eek, a comma 1236s # valuenum: 0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: Foo 1236s # enum_name: foo_ 1236s # ENUMNAME: FOO_ 1236s # ENUMSHORT: 1236s # ENUMPREFIX: FOO 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 19 __main__.TestRspMkenums.test_available_in 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmppaxs98tl 1236s # rspfile: True 1236s # /tmp/tmppaxs98tl/tmpcfr6j9zs.h: 1236s # typedef enum { 1236s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_AVAILABLE_ENUMERATOR_IN_2_68 = (1<<2) 1236s # } GDBusServerFlags; 1236s # 1236s # /tmp/tmppaxs98tl/tmp0paods35.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Response file contains: --template /tmp/tmppaxs98tl/tmp0paods35.template /tmp/tmppaxs98tl/tmpcfr6j9zs.h 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmppaxs98tl/tmpvq2fndap'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmppaxs98tl/tmpcfr6j9zs.h 1236s # basename: tmpcfr6j9zs.h 1236s # enumeration-production 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-header 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-production 1236s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1236s # valuenick: user 1236s # valuenum: 4 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-tail 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 20 __main__.TestRspMkenums.test_comma_in_enum_value 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpgdpw7gtc 1236s # rspfile: True 1236s # /tmp/tmpgdpw7gtc/tmpcosd3yrv.h: 1236s # typedef enum { 1236s # ENUM_VALUE_WITH_COMMA = ',', 1236s # } TestCommaEnum; 1236s # 1236s # /tmp/tmpgdpw7gtc/tmp6qaioure.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Response file contains: --template /tmp/tmpgdpw7gtc/tmp6qaioure.template /tmp/tmpgdpw7gtc/tmpcosd3yrv.h 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpgdpw7gtc/tmpu6syk09i'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpgdpw7gtc/tmpcosd3yrv.h 1236s # basename: tmpcosd3yrv.h 1236s # enumeration-production 1236s # EnumName: TestCommaEnum 1236s # enum_name: test_comma_enum 1236s # ENUMNAME: TEST_COMMA_ENUM 1236s # ENUMSHORT: COMMA_ENUM 1236s # ENUMPREFIX: TEST 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: TestCommaEnum 1236s # enum_name: test_comma_enum 1236s # ENUMNAME: TEST_COMMA_ENUM 1236s # ENUMSHORT: COMMA_ENUM 1236s # ENUMPREFIX: TEST 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: ENUM_VALUE_WITH_COMMA 1236s # valuenick: comma 1236s # valuenum: 44 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: TestCommaEnum 1236s # enum_name: test_comma_enum 1236s # ENUMNAME: TEST_COMMA_ENUM 1236s # ENUMSHORT: COMMA_ENUM 1236s # ENUMPREFIX: TEST 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 21 __main__.TestRspMkenums.test_deprecated_in 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpx837utyc 1236s # rspfile: True 1236s # /tmp/tmpx837utyc/tmpj0ezf3pb.h: 1236s # typedef enum { 1236s # G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER GLIB_DEPRECATED_ENUMERATOR_IN_2_68 = (1<<2) 1236s # } GDBusServerFlags; 1236s # 1236s # /tmp/tmpx837utyc/tmpmewn_58k.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Response file contains: --template /tmp/tmpx837utyc/tmpmewn_58k.template /tmp/tmpx837utyc/tmpj0ezf3pb.h 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpx837utyc/tmpmhycks_t'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpx837utyc/tmpj0ezf3pb.h 1236s # basename: tmpj0ezf3pb.h 1236s # enumeration-production 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-header 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-production 1236s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1236s # valuenick: user 1236s # valuenum: 4 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-tail 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 22 __main__.TestRspMkenums.test_deprecated_in_for 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpqxtdzrge 1236s # rspfile: True 1236s # /tmp/tmpqxtdzrge/tmpzdc2tbkz.h: 1236s # typedef enum { 1236s # 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) 1236s # } GDBusServerFlags; 1236s # 1236s # /tmp/tmpqxtdzrge/tmp15zi2n9w.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Response file contains: --template /tmp/tmpqxtdzrge/tmp15zi2n9w.template /tmp/tmpqxtdzrge/tmpzdc2tbkz.h 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpqxtdzrge/tmpe9ysk_pj'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpqxtdzrge/tmpzdc2tbkz.h 1236s # basename: tmpzdc2tbkz.h 1236s # enumeration-production 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-header 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-production 1236s # VALUENAME: G_DBUS_SERVER_FLAGS_AUTHENTICATION_REQUIRE_SAME_USER 1236s # valuenick: user 1236s # valuenum: 4 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # value-tail 1236s # EnumName: GDBusServerFlags 1236s # enum_name: g_dbus_server_flags 1236s # ENUMNAME: G_DBUS_SERVER_FLAGS 1236s # ENUMSHORT: DBUS_SERVER_FLAGS 1236s # ENUMPREFIX: G 1236s # enumsince: 1236s # type: flags 1236s # Type: Flags 1236s # TYPE: FLAGS 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 23 __main__.TestRspMkenums.test_empty_header 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpzs8p4w97 1236s # rspfile: True 1236s # /tmp/tmpzs8p4w97/tmpqinv49ny.h: 1236s # /tmp/tmpzs8p4w97/tmppot5wdnt.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Response file contains: --template /tmp/tmpzs8p4w97/tmppot5wdnt.template /tmp/tmpzs8p4w97/tmpqinv49ny.h 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpzs8p4w97/tmpk9navvlb'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 24 __main__.TestRspMkenums.test_empty_template 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpnqem0571 1236s # rspfile: True 1236s # /tmp/tmpnqem0571/tmplxrwdbbg.template: 1236s # Response file contains: --template /tmp/tmpnqem0571/tmplxrwdbbg.template 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpnqem0571/tmpcdzwx0va'] 1236s # Return code: 0 1236s # Output: 1236s # /* 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. */ 1236s # 1236s # 1236s # /* Generated data ends here */ 1236s # Error: 1236s ok 25 __main__.TestRspMkenums.test_enum_name 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpend2g3mx 1236s # rspfile: True 1236s # /tmp/tmpend2g3mx/tmpdi9oqc7b.h: 1236s # typedef enum _SomeEnumIdentifier { 1236s # ENUM_VALUE 1236s # } SomeEnumIdentifier; 1236s # 1236s # /tmp/tmpend2g3mx/tmpzfqphdwo.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Response file contains: --template /tmp/tmpend2g3mx/tmpzfqphdwo.template /tmp/tmpend2g3mx/tmpdi9oqc7b.h 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpend2g3mx/tmp8g70jf3l'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpend2g3mx/tmpdi9oqc7b.h 1236s # basename: tmpdi9oqc7b.h 1236s # enumeration-production 1236s # EnumName: SomeEnumIdentifier 1236s # enum_name: some_enum_identifier 1236s # ENUMNAME: SOME_ENUM_IDENTIFIER 1236s # ENUMSHORT: ENUM_IDENTIFIER 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: SomeEnumIdentifier 1236s # enum_name: some_enum_identifier 1236s # ENUMNAME: SOME_ENUM_IDENTIFIER 1236s # ENUMSHORT: ENUM_IDENTIFIER 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: ENUM_VALUE 1236s # valuenick: value 1236s # valuenum: 0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: SomeEnumIdentifier 1236s # enum_name: some_enum_identifier 1236s # ENUMNAME: SOME_ENUM_IDENTIFIER 1236s # ENUMSHORT: ENUM_IDENTIFIER 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 26 __main__.TestRspMkenums.test_enum_private_public 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmphuqeaeej 1236s # rspfile: True 1236s # /tmp/tmphuqeaeej/tmpwzd8go2d.h: 1236s # typedef enum { 1236s # ENUM_VALUE_PUBLIC1, 1236s # /*< private >*/ 1236s # ENUM_VALUE_PRIVATE, 1236s # } SomeEnumA 1236s # 1236s # /tmp/tmphuqeaeej/tmp2py_5nh8.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Response file contains: --template /tmp/tmphuqeaeej/tmp2py_5nh8.template /tmp/tmphuqeaeej/tmpwzd8go2d.h 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmphuqeaeej/tmpox6rukak'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmphuqeaeej/tmpwzd8go2d.h 1236s # basename: tmpwzd8go2d.h 1236s # enumeration-production 1236s # EnumName: SomeEnumA 1236s # enum_name: some_enum_a 1236s # ENUMNAME: SOME_ENUM_A 1236s # ENUMSHORT: ENUM_A 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: SomeEnumA 1236s # enum_name: some_enum_a 1236s # ENUMNAME: SOME_ENUM_A 1236s # ENUMSHORT: ENUM_A 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: ENUM_VALUE_PUBLIC1 1236s # valuenick: public1 1236s # valuenum: 0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: SomeEnumA 1236s # enum_name: some_enum_a 1236s # ENUMNAME: SOME_ENUM_A 1236s # ENUMSHORT: ENUM_A 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s # 1236s # /tmp/tmphuqeaeej/tmp88n1ahz8.h: 1236s # typedef enum { 1236s # /*< private >*/ 1236s # ENUM_VALUE_PRIVATE, 1236s # /*< public >*/ 1236s # ENUM_VALUE_PUBLIC2, 1236s # } SomeEnumB; 1236s # 1236s # /tmp/tmphuqeaeej/tmpjw7s9jm5.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Response file contains: --template /tmp/tmphuqeaeej/tmpjw7s9jm5.template /tmp/tmphuqeaeej/tmp88n1ahz8.h 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmphuqeaeej/tmpfwab_sp7'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmphuqeaeej/tmp88n1ahz8.h 1236s # basename: tmp88n1ahz8.h 1236s # enumeration-production 1236s # EnumName: SomeEnumB 1236s # enum_name: some_enum_b 1236s # ENUMNAME: SOME_ENUM_B 1236s # ENUMSHORT: ENUM_B 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: SomeEnumB 1236s # enum_name: some_enum_b 1236s # ENUMNAME: SOME_ENUM_B 1236s # ENUMSHORT: ENUM_B 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: ENUM_VALUE_PUBLIC2 1236s # valuenick: public2 1236s # valuenum: 1 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: SomeEnumB 1236s # enum_name: some_enum_b 1236s # ENUMNAME: SOME_ENUM_B 1236s # ENUMSHORT: ENUM_B 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 27 __main__.TestRspMkenums.test_enum_symbolic_expression 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpuq3aihhc 1236s # rspfile: True 1236s # /tmp/tmpuq3aihhc/tmpp9cy4cn5.h: 1236s # typedef enum { 1236s # /*< private >*/ 1236s # ENUM_VALUE_PRIVATE = 5, 1236s # /*< public >*/ 1236s # ENUM_VALUE_PUBLIC = ENUM_VALUE_PRIVATE + 2, 1236s # } TestSymbolicEnum; 1236s # 1236s # /tmp/tmpuq3aihhc/tmppaxolb31.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Response file contains: --template /tmp/tmpuq3aihhc/tmppaxolb31.template /tmp/tmpuq3aihhc/tmpp9cy4cn5.h 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpuq3aihhc/tmpz_tosh1c'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpuq3aihhc/tmpp9cy4cn5.h 1236s # basename: tmpp9cy4cn5.h 1236s # enumeration-production 1236s # EnumName: TestSymbolicEnum 1236s # enum_name: test_symbolic_enum 1236s # ENUMNAME: TEST_SYMBOLIC_ENUM 1236s # ENUMSHORT: SYMBOLIC_ENUM 1236s # ENUMPREFIX: TEST 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: TestSymbolicEnum 1236s # enum_name: test_symbolic_enum 1236s # ENUMNAME: TEST_SYMBOLIC_ENUM 1236s # ENUMSHORT: SYMBOLIC_ENUM 1236s # ENUMPREFIX: TEST 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: ENUM_VALUE_PUBLIC 1236s # valuenick: public 1236s # valuenum: 7 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: TestSymbolicEnum 1236s # enum_name: test_symbolic_enum 1236s # ENUMNAME: TEST_SYMBOLIC_ENUM 1236s # ENUMSHORT: SYMBOLIC_ENUM 1236s # ENUMPREFIX: TEST 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 28 __main__.TestRspMkenums.test_filename_basename_in_fhead_ftail 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpsvylgre1 1236s # rspfile: True 1236s # /tmp/tmpsvylgre1/tmp7tcoa0ox.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-tail ***/ 1236s # Response file contains: --template /tmp/tmpsvylgre1/tmp7tcoa0ox.template 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpsvylgre1/tmpsct52xly'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # file-tail 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s # WARNING: @filename@ used in file-header section. 1236s # WARNING: @basename@ used in file-header section. 1236s # WARNING: @filename@ used in file-tail section. 1236s # WARNING: @basename@ used in file-tail section. 1236s ok 29 __main__.TestRspMkenums.test_help 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpmcc1ef32 1236s # rspfile: True 1236s # Response file contains: --help 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpmcc1ef32/tmpjlkc6kkn'] 1236s # Return code: 0 1236s # Output: 1236s # usage: glib-mkenums [-h] [--identifier-prefix IDPREFIX] 1236s # [--symbol-prefix SYMPREFIX] [--fhead FHEAD] 1236s # [--ftail FTAIL] [--fprod FPROD] [--eprod EPROD] 1236s # [--vhead VHEAD] [--vprod VPROD] [--vtail VTAIL] 1236s # [--comments COMMENT_TMPL] [--template TEMPLATE] 1236s # [--output OUTPUT] [--version] 1236s # [args ...] 1236s # 1236s # positional arguments: 1236s # args One or more input files, or a single argument 1236s # @rspfile_path pointing to a file that contains the 1236s # actual arguments 1236s # 1236s # options: 1236s # -h, --help show this help message and exit 1236s # --identifier-prefix IDPREFIX 1236s # Identifier prefix 1236s # --symbol-prefix SYMPREFIX 1236s # Symbol prefix 1236s # --fhead FHEAD Output file header 1236s # --ftail FTAIL Output file footer 1236s # --fprod FPROD Put out TEXT every time a new input file is being 1236s # processed. 1236s # --eprod EPROD Per enum text, produced prior to value iterations 1236s # --vhead VHEAD Value header, produced before iterating over enum 1236s # values 1236s # --vprod VPROD Value text, produced for each enum value. 1236s # --vtail VTAIL Value tail, produced after iterating over enum values 1236s # --comments COMMENT_TMPL 1236s # Comment structure 1236s # --template TEMPLATE Template file 1236s # --output OUTPUT 1236s # --version, -v Print version information 1236s # 1236s # Production text substitutions: 1236s # @EnumName@ PrefixTheXEnum 1236s # @enum_name@ prefix_the_xenum 1236s # @ENUMNAME@ PREFIX_THE_XENUM 1236s # @ENUMSHORT@ THE_XENUM 1236s # @ENUMPREFIX@ PREFIX 1236s # @enumsince@ the user-provided since value given 1236s # @VALUENAME@ PREFIX_THE_XVALUE 1236s # @valuenick@ the-xvalue 1236s # @valuenum@ the integer value (limited support, Since: 2.26) 1236s # @type@ either enum or flags 1236s # @Type@ either Enum or Flags 1236s # @TYPE@ either ENUM or FLAGS 1236s # @filename@ name of current input file 1236s # @basename@ base name of the current input file (Since: 2.22) 1236s # Error: 1236s ok 30 __main__.TestRspMkenums.test_no_args 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmps7hdo2qq 1236s # rspfile: True 1236s # Response file contains: 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmps7hdo2qq/tmpanv7exhs'] 1236s # Return code: 0 1236s # Output: 1236s # /* 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. */ 1236s # 1236s # 1236s # /* Generated data ends here */ 1236s # Error: 1236s ok 31 __main__.TestRspMkenums.test_no_headers 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpbxmsp6sa 1236s # rspfile: True 1236s # /tmp/tmpbxmsp6sa/tmp1kuyjl8q.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Response file contains: --template /tmp/tmpbxmsp6sa/tmp1kuyjl8q.template 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpbxmsp6sa/tmpt69xi6ox'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 32 __main__.TestRspMkenums.test_no_nick 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpqrjasqq5 1236s # rspfile: True 1236s # /tmp/tmpqrjasqq5/tmpgqk1e22h.h: 1236s # typedef enum { 1236s # GEGL_SAMPLER_NEAREST = 0, /*< desc="nearest" >*/ 1236s # } GeglSamplerType; 1236s # 1236s # /tmp/tmpqrjasqq5/tmparvwuhrg.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Response file contains: --template /tmp/tmpqrjasqq5/tmparvwuhrg.template /tmp/tmpqrjasqq5/tmpgqk1e22h.h 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpqrjasqq5/tmpgn9y4zwo'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpqrjasqq5/tmpgqk1e22h.h 1236s # basename: tmpgqk1e22h.h 1236s # enumeration-production 1236s # EnumName: GeglSamplerType 1236s # enum_name: gegl_sampler_type 1236s # ENUMNAME: GEGL_SAMPLER_TYPE 1236s # ENUMSHORT: SAMPLER_TYPE 1236s # ENUMPREFIX: GEGL 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: GeglSamplerType 1236s # enum_name: gegl_sampler_type 1236s # ENUMNAME: GEGL_SAMPLER_TYPE 1236s # ENUMSHORT: SAMPLER_TYPE 1236s # ENUMPREFIX: GEGL 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: GEGL_SAMPLER_NEAREST 1236s # valuenick: nearest 1236s # valuenum: 0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: GeglSamplerType 1236s # enum_name: gegl_sampler_type 1236s # ENUMNAME: GEGL_SAMPLER_TYPE 1236s # ENUMSHORT: SAMPLER_TYPE 1236s # ENUMPREFIX: GEGL 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 33 __main__.TestRspMkenums.test_non_utf8_encoding 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpn2_gkc1q 1236s # rspfile: True 1236s # /tmp/tmpn2_gkc1q/tmp8qph79t1.h: 1236s # /* Copyright © La Peña */ 1236s # typedef enum { 1236s # ENUM_VALUE 1236s # } SomeEnumIdentifier; 1236s # 1236s # /tmp/tmpn2_gkc1q/tmpyt_v9gvs.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Response file contains: --template /tmp/tmpn2_gkc1q/tmpyt_v9gvs.template /tmp/tmpn2_gkc1q/tmp8qph79t1.h 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpn2_gkc1q/tmp4p8g6_fj'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpn2_gkc1q/tmp8qph79t1.h 1236s # basename: tmp8qph79t1.h 1236s # enumeration-production 1236s # EnumName: SomeEnumIdentifier 1236s # enum_name: some_enum_identifier 1236s # ENUMNAME: SOME_ENUM_IDENTIFIER 1236s # ENUMSHORT: ENUM_IDENTIFIER 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: SomeEnumIdentifier 1236s # enum_name: some_enum_identifier 1236s # ENUMNAME: SOME_ENUM_IDENTIFIER 1236s # ENUMSHORT: ENUM_IDENTIFIER 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: ENUM_VALUE 1236s # valuenick: value 1236s # valuenum: 0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: SomeEnumIdentifier 1236s # enum_name: some_enum_identifier 1236s # ENUMNAME: SOME_ENUM_IDENTIFIER 1236s # ENUMSHORT: ENUM_IDENTIFIER 1236s # ENUMPREFIX: SOME 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s # WARNING: UnicodeWarning: invalid start byte at 22 (b'yright \xa9 La Pe\xf1') 1236s # WARNING: UnicodeWarning: invalid continuation byte at 29 (b'\xa9 La Pe\xf1a */\n ') 1236s ok 34 __main__.TestRspMkenums.test_reproducible 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpqj2b5rr4 1236s # rspfile: True 1236s # /tmp/tmpqj2b5rr4/tmp5knnhnl6.template: template 1236s # Response file contains: --template /tmp/tmpqj2b5rr4/tmp5knnhnl6.template /tmp/tmpqj2b5rr4/tmp3kq3xl3d1.h /tmp/tmpqj2b5rr4/tmp70zvvgs32.h 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpqj2b5rr4/tmp48hb75xr'] 1236s # Return code: 0 1236s # Output: 1236s # /* 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. */ 1236s # 1236s # 1236s # /* Generated data ends here */ 1236s # Error: 1236s # 1236s # /tmp/tmpqj2b5rr4/tmpw509ydgw.template: template 1236s # Response file contains: --template /tmp/tmpqj2b5rr4/tmpw509ydgw.template /tmp/tmpqj2b5rr4/tmp70zvvgs32.h /tmp/tmpqj2b5rr4/tmp3kq3xl3d1.h 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpqj2b5rr4/tmp17bc7nan'] 1236s # Return code: 0 1236s # Output: 1236s # /* 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. */ 1236s # 1236s # 1236s # /* Generated data ends here */ 1236s # Error: 1236s ok 35 __main__.TestRspMkenums.test_since 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpnfseg7aa 1236s # rspfile: True 1236s # /tmp/tmpnfseg7aa/tmpsip7jiwz.h: 1236s # typedef enum { /*< since=1.0 >*/ 1236s # QMI_WMS_MESSAGE_PROTOCOL_CDMA = 0, 1236s # } QmiWmsMessageProtocol; 1236s # 1236s # /tmp/tmpnfseg7aa/tmp3h62euc5.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Response file contains: --template /tmp/tmpnfseg7aa/tmp3h62euc5.template /tmp/tmpnfseg7aa/tmpsip7jiwz.h 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpnfseg7aa/tmpto8y29k0'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpnfseg7aa/tmpsip7jiwz.h 1236s # basename: tmpsip7jiwz.h 1236s # enumeration-production 1236s # EnumName: QmiWmsMessageProtocol 1236s # enum_name: qmi_wms_message_protocol 1236s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1236s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1236s # ENUMPREFIX: QMI 1236s # enumsince: 1.0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: QmiWmsMessageProtocol 1236s # enum_name: qmi_wms_message_protocol 1236s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1236s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1236s # ENUMPREFIX: QMI 1236s # enumsince: 1.0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: QMI_WMS_MESSAGE_PROTOCOL_CDMA 1236s # valuenick: cdma 1236s # valuenum: 0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: QmiWmsMessageProtocol 1236s # enum_name: qmi_wms_message_protocol 1236s # ENUMNAME: QMI_WMS_MESSAGE_PROTOCOL 1236s # ENUMSHORT: WMS_MESSAGE_PROTOCOL 1236s # ENUMPREFIX: QMI 1236s # enumsince: 1.0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s ok 36 __main__.TestRspMkenums.test_with_double_quotes 1236s # glib-mkenums: /usr/bin/glib-mkenums 1236s # tmpdir: /tmp/tmpredncny2 1236s # rspfile: True 1236s # /tmp/tmpredncny2/tmp0b4_2g16.h: 1236s # typedef enum { 1236s # FOO_VALUE /*< nick="eek, a comma" >*/ 1236s # } Foo; 1236s # 1236s # /tmp/tmpredncny2/tmp_3vpl_ay.template: 1236s # /*** BEGIN file-header ***/ 1236s # file-header 1236s # /*** END file-header ***/ 1236s # 1236s # /*** BEGIN file-production ***/ 1236s # file-production 1236s # filename: @filename@ 1236s # basename: @basename@ 1236s # /*** END file-production ***/ 1236s # 1236s # /*** BEGIN enumeration-production ***/ 1236s # enumeration-production 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END enumeration-production ***/ 1236s # 1236s # /*** BEGIN value-header ***/ 1236s # value-header 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-header ***/ 1236s # 1236s # /*** BEGIN value-production ***/ 1236s # value-production 1236s # VALUENAME: @VALUENAME@ 1236s # valuenick: @valuenick@ 1236s # valuenum: @valuenum@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-production ***/ 1236s # 1236s # /*** BEGIN value-tail ***/ 1236s # value-tail 1236s # EnumName: @EnumName@ 1236s # enum_name: @enum_name@ 1236s # ENUMNAME: @ENUMNAME@ 1236s # ENUMSHORT: @ENUMSHORT@ 1236s # ENUMPREFIX: @ENUMPREFIX@ 1236s # enumsince: @enumsince@ 1236s # type: @type@ 1236s # Type: @Type@ 1236s # TYPE: @TYPE@ 1236s # /*** END value-tail ***/ 1236s # 1236s # /*** BEGIN comment ***/ 1236s # comment 1236s # comment: @comment@ 1236s # /*** END comment ***/ 1236s # 1236s # /*** BEGIN file-tail ***/ 1236s # file-tail 1236s # /*** END file-tail ***/ 1236s # 1236s # Response file contains: --template /tmp/tmpredncny2/tmp_3vpl_ay.template /tmp/tmpredncny2/tmp0b4_2g16.h 1236s # Running: ['/usr/bin/glib-mkenums', '@/tmp/tmpredncny2/tmpk2zsvfhq'] 1236s # Return code: 0 1236s # Output: 1236s # comment 1236s # 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. 1236s # 1236s # 1236s # file-header 1236s # file-production 1236s # filename: /tmp/tmpredncny2/tmp0b4_2g16.h 1236s # basename: tmp0b4_2g16.h 1236s # enumeration-production 1236s # EnumName: Foo 1236s # enum_name: foo_ 1236s # ENUMNAME: FOO_ 1236s # ENUMSHORT: 1236s # ENUMPREFIX: FOO 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-header 1236s # EnumName: Foo 1236s # enum_name: foo_ 1236s # ENUMNAME: FOO_ 1236s # ENUMSHORT: 1236s # ENUMPREFIX: FOO 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-production 1236s # VALUENAME: FOO_VALUE 1236s # valuenick: eek, a comma 1236s # valuenum: 0 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # value-tail 1236s # EnumName: Foo 1236s # enum_name: foo_ 1236s # ENUMNAME: FOO_ 1236s # ENUMSHORT: 1236s # ENUMPREFIX: FOO 1236s # enumsince: 1236s # type: enum 1236s # Type: Enum 1236s # TYPE: ENUM 1236s # file-tail 1236s # 1236s # comment 1236s # comment: Generated data ends here 1236s # Error: 1236s 1..36 1236s ok - glib/mkenums.py.test 1236s # Running test: glib/option-context.test 1236s TAP version 14 1236s # random seed: R02Sa3d1983d3cd82e35eb219f8a78c33e5f 1236s 1..61 1236s # Start of option tests 1236s ok 1 /option/basic 1236s ok 2 /option/translate 1236s ok 3 /option/strict-posix 1236s # Testing command: program --double abc 1236s # Testing command: program --double 2e309 1236s # Testing command: program --int abc 1236s # Testing command: program --int 99999999999999999999999999999999999 1236s # Testing command: program --int64 abc 1236s # Testing command: program --int64 99999999999999999999999999999999999 1236s ok 4 /option/parsing-errors 1236s # Start of help tests 1236s ok 5 /option/help/options 1236s ok 6 /option/help/no-options 1236s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=697652 1236s ok 7 /option/help/no-help-options 1236s # Usage: 1236s # /usr/libexec/installed-tests/glib/option-context [OPTION…] blabla 1236s # 1236s # Summary 1236s # 1236s # Help Options: 1236s # -h, --help Show help options 1236s # 1236s # Application Options: 1236s # -t, --test=Argument to use in test (deprecated) Test tests 1236s # --test2 Tests also 1236s # 1236s # Description 1236s # 1236s ok 8 /option/help/deprecated 1236s ok 9 /option/help/main-get_help-format 1236s ok 10 /option/help/group-get_help-format 1236s # End of help tests 1236s # Start of group tests 1236s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=504142 1236s ok 11 /option/group/captions 1236s ok 12 /option/group/main 1236s ok 13 /option/group/error-hook 1236s ok 14 /option/group/parse 1236s # Start of captions tests 1236s # Start of subprocess tests 1236s # End of subprocess tests 1236s # End of captions tests 1236s # End of group tests 1236s # Start of restoration tests 1236s ok 15 /option/restoration/int 1236s ok 16 /option/restoration/string 1236s ok 17 /option/restoration/boolean 1236s # End of restoration tests 1236s # Start of arg tests 1236s ok 18 /option/arg/reverse-string 1236s ok 19 /option/arg/optional-int 1236s # Start of repetition tests 1236s ok 20 /option/arg/repetition/int 1236s ok 21 /option/arg/repetition/string 1236s ok 22 /option/arg/repetition/filename 1236s ok 23 /option/arg/repetition/double 1236s ok 24 /option/arg/repetition/locale 1236s ok 25 /option/arg/repetition/int64 1236s # End of repetition tests 1236s # Start of array tests 1236s ok 26 /option/arg/array/string 1236s # End of array tests 1236s # Start of callback tests 1236s ok 27 /option/arg/callback/string 1236s ok 28 /option/arg/callback/count 1236s ok 29 /option/arg/callback/optional1 1236s ok 30 /option/arg/callback/optional2 1236s ok 31 /option/arg/callback/optional3 1236s ok 32 /option/arg/callback/optional4 1236s ok 33 /option/arg/callback/optional5 1236s ok 34 /option/arg/callback/optional6 1236s ok 35 /option/arg/callback/optional7 1236s ok 36 /option/arg/callback/optional8 1236s # End of callback tests 1236s # Start of remaining tests 1236s ok 37 /option/arg/remaining/callback 1236s ok 38 /option/arg/remaining/callback-false 1236s ok 39 /option/arg/remaining/non-option 1236s ok 40 /option/arg/remaining/separator 1236s ok 41 /option/arg/remaining/array 1236s # End of remaining tests 1236s # Start of ignore tests 1236s ok 42 /option/arg/ignore/long 1236s ok 43 /option/arg/ignore/short 1236s ok 44 /option/arg/ignore/arg 1236s # End of ignore tests 1236s # Start of rest tests 1236s ok 45 /option/arg/rest/non-option 1236s ok 46 /option/arg/rest/separator1 1236s ok 47 /option/arg/rest/separator2 1236s ok 48 /option/arg/rest/separator3 1236s ok 49 /option/arg/rest/separator4 1236s ok 50 /option/arg/rest/separator5 1236s # End of rest tests 1236s # End of arg tests 1236s # Start of context tests 1236s ok 51 /option/context/add 1236s ok 52 /option/context/empty2 1236s ok 53 /option/context/empty3 1236s # End of context tests 1236s # Start of bug tests 1236s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=166609 1236s ok 54 /option/bug/unknown-short 1236s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=168008 1236s ok 55 /option/bug/lonely-dash 1236s ok 56 /option/bug/triple-dash 1236s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=305576 1236s ok 57 /option/bug/missing-arg 1236s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=577638 1236s ok 58 /option/bug/dash-arg 1236s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=729563 1236s ok 59 /option/bug/short-remaining 1236s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=646926 1236s ok 60 /option/bug/double-free 1236s ok 61 /option/bug/double-zero 1236s # End of bug tests 1236s # End of option tests 1236s ok - glib/option-context.test 1236s # Running test: glib/utf8-pointer.test 1236s TAP version 14 1236s # random seed: R02S472cec1a452a10521248f562738bf1c1 1236s 1..3 1236s # Start of utf8 tests 1237s ok 1 /utf8/offsets 1237s # slow test /utf8/offsets executed in 0.76 secs 1237s ok 2 /utf8/lengths 1237s ok 3 /utf8/find 1237s # End of utf8 tests 1237s ok - glib/utf8-pointer.test 1237s # Running test: glib/checksum.test 1237s TAP version 14 1237s # random seed: R02S28520623a24c79993fbd4572d63400b0 1237s 1..1851 1237s # Start of checksum tests 1237s ok 1 /checksum/unsupported 1237s # Start of MD5 tests 1237s ok 2 /checksum/MD5/0 1237s ok 3 /checksum/MD5/1 1237s ok 4 /checksum/MD5/2 1237s ok 5 /checksum/MD5/3 1237s ok 6 /checksum/MD5/4 1237s ok 7 /checksum/MD5/5 1237s ok 8 /checksum/MD5/6 1237s ok 9 /checksum/MD5/7 1237s ok 10 /checksum/MD5/8 1237s ok 11 /checksum/MD5/9 1237s ok 12 /checksum/MD5/10 1237s ok 13 /checksum/MD5/11 1237s ok 14 /checksum/MD5/12 1237s ok 15 /checksum/MD5/13 1237s ok 16 /checksum/MD5/14 1237s ok 17 /checksum/MD5/15 1237s ok 18 /checksum/MD5/16 1237s ok 19 /checksum/MD5/17 1237s ok 20 /checksum/MD5/18 1237s ok 21 /checksum/MD5/19 1237s ok 22 /checksum/MD5/20 1237s ok 23 /checksum/MD5/21 1237s ok 24 /checksum/MD5/22 1237s ok 25 /checksum/MD5/23 1237s ok 26 /checksum/MD5/24 1237s ok 27 /checksum/MD5/25 1237s ok 28 /checksum/MD5/26 1237s ok 29 /checksum/MD5/27 1237s ok 30 /checksum/MD5/28 1237s ok 31 /checksum/MD5/29 1237s ok 32 /checksum/MD5/30 1237s ok 33 /checksum/MD5/31 1237s ok 34 /checksum/MD5/32 1237s ok 35 /checksum/MD5/33 1237s ok 36 /checksum/MD5/34 1237s ok 37 /checksum/MD5/35 1237s ok 38 /checksum/MD5/36 1237s ok 39 /checksum/MD5/37 1237s ok 40 /checksum/MD5/38 1237s ok 41 /checksum/MD5/39 1237s ok 42 /checksum/MD5/40 1237s ok 43 /checksum/MD5/41 1237s ok 44 /checksum/MD5/42 1237s ok 45 /checksum/MD5/43 1237s ok 46 /checksum/MD5/44 1237s ok 47 /checksum/MD5/45 1237s ok 48 /checksum/MD5/46 1237s ok 49 /checksum/MD5/47 1237s ok 50 /checksum/MD5/48 1237s ok 51 /checksum/MD5/49 1237s ok 52 /checksum/MD5/50 1237s ok 53 /checksum/MD5/51 1237s ok 54 /checksum/MD5/52 1237s ok 55 /checksum/MD5/53 1237s ok 56 /checksum/MD5/54 1237s ok 57 /checksum/MD5/55 1237s ok 58 /checksum/MD5/56 1237s ok 59 /checksum/MD5/57 1237s ok 60 /checksum/MD5/58 1237s ok 61 /checksum/MD5/59 1237s ok 62 /checksum/MD5/60 1237s ok 63 /checksum/MD5/61 1237s ok 64 /checksum/MD5/62 1237s ok 65 /checksum/MD5/63 1237s ok 66 /checksum/MD5/64 1237s ok 67 /checksum/MD5/65 1237s ok 68 /checksum/MD5/66 1237s ok 69 /checksum/MD5/67 1237s ok 70 /checksum/MD5/68 1237s ok 71 /checksum/MD5/69 1237s ok 72 /checksum/MD5/70 1237s ok 73 /checksum/MD5/71 1237s ok 74 /checksum/MD5/72 1237s ok 75 /checksum/MD5/73 1237s ok 76 /checksum/MD5/74 1237s ok 77 /checksum/MD5/75 1237s ok 78 /checksum/MD5/76 1237s ok 79 /checksum/MD5/77 1237s ok 80 /checksum/MD5/78 1237s ok 81 /checksum/MD5/79 1237s ok 82 /checksum/MD5/80 1237s ok 83 /checksum/MD5/81 1237s ok 84 /checksum/MD5/82 1237s ok 85 /checksum/MD5/83 1237s ok 86 /checksum/MD5/84 1237s ok 87 /checksum/MD5/85 1237s ok 88 /checksum/MD5/86 1237s ok 89 /checksum/MD5/87 1237s ok 90 /checksum/MD5/88 1237s ok 91 /checksum/MD5/89 1237s ok 92 /checksum/MD5/90 1237s ok 93 /checksum/MD5/91 1237s ok 94 /checksum/MD5/92 1237s ok 95 /checksum/MD5/93 1237s ok 96 /checksum/MD5/94 1237s ok 97 /checksum/MD5/95 1237s ok 98 /checksum/MD5/96 1237s ok 99 /checksum/MD5/97 1237s ok 100 /checksum/MD5/98 1237s ok 101 /checksum/MD5/99 1237s ok 102 /checksum/MD5/100 1237s ok 103 /checksum/MD5/101 1237s ok 104 /checksum/MD5/102 1237s ok 105 /checksum/MD5/103 1237s ok 106 /checksum/MD5/104 1237s ok 107 /checksum/MD5/105 1237s ok 108 /checksum/MD5/106 1237s ok 109 /checksum/MD5/107 1237s ok 110 /checksum/MD5/108 1237s ok 111 /checksum/MD5/109 1237s ok 112 /checksum/MD5/110 1237s ok 113 /checksum/MD5/111 1237s ok 114 /checksum/MD5/112 1237s ok 115 /checksum/MD5/113 1237s ok 116 /checksum/MD5/114 1237s ok 117 /checksum/MD5/115 1237s ok 118 /checksum/MD5/116 1237s ok 119 /checksum/MD5/117 1237s ok 120 /checksum/MD5/118 1237s ok 121 /checksum/MD5/119 1237s ok 122 /checksum/MD5/120 1237s ok 123 /checksum/MD5/121 1237s ok 124 /checksum/MD5/122 1237s ok 125 /checksum/MD5/123 1237s ok 126 /checksum/MD5/124 1237s ok 127 /checksum/MD5/125 1237s ok 128 /checksum/MD5/126 1237s ok 129 /checksum/MD5/127 1237s ok 130 /checksum/MD5/128 1237s ok 131 /checksum/MD5/129 1237s ok 132 /checksum/MD5/130 1237s ok 133 /checksum/MD5/131 1237s ok 134 /checksum/MD5/132 1237s ok 135 /checksum/MD5/133 1237s ok 136 /checksum/MD5/134 1237s ok 137 /checksum/MD5/135 1237s ok 138 /checksum/MD5/136 1237s ok 139 /checksum/MD5/137 1237s ok 140 /checksum/MD5/138 1237s ok 141 /checksum/MD5/139 1237s ok 142 /checksum/MD5/140 1237s ok 143 /checksum/MD5/141 1237s ok 144 /checksum/MD5/142 1237s ok 145 /checksum/MD5/143 1237s ok 146 /checksum/MD5/144 1237s ok 147 /checksum/MD5/145 1237s ok 148 /checksum/MD5/146 1237s ok 149 /checksum/MD5/147 1237s ok 150 /checksum/MD5/148 1237s ok 151 /checksum/MD5/149 1237s ok 152 /checksum/MD5/150 1237s ok 153 /checksum/MD5/151 1237s ok 154 /checksum/MD5/152 1237s ok 155 /checksum/MD5/153 1237s ok 156 /checksum/MD5/154 1237s ok 157 /checksum/MD5/155 1237s ok 158 /checksum/MD5/156 1237s ok 159 /checksum/MD5/157 1237s ok 160 /checksum/MD5/158 1237s ok 161 /checksum/MD5/159 1237s ok 162 /checksum/MD5/160 1237s ok 163 /checksum/MD5/161 1237s ok 164 /checksum/MD5/162 1237s ok 165 /checksum/MD5/163 1237s ok 166 /checksum/MD5/164 1237s ok 167 /checksum/MD5/165 1237s ok 168 /checksum/MD5/166 1237s ok 169 /checksum/MD5/167 1237s ok 170 /checksum/MD5/168 1237s ok 171 /checksum/MD5/169 1237s ok 172 /checksum/MD5/170 1237s ok 173 /checksum/MD5/171 1237s ok 174 /checksum/MD5/172 1237s ok 175 /checksum/MD5/173 1237s ok 176 /checksum/MD5/174 1237s ok 177 /checksum/MD5/175 1237s ok 178 /checksum/MD5/176 1237s ok 179 /checksum/MD5/177 1237s ok 180 /checksum/MD5/178 1237s ok 181 /checksum/MD5/179 1237s ok 182 /checksum/MD5/180 1237s ok 183 /checksum/MD5/181 1237s ok 184 /checksum/MD5/182 1237s ok 185 /checksum/MD5/183 1237s ok 186 /checksum/MD5/string 1237s ok 187 /checksum/MD5/bytes 1237s # Start of reset tests 1237s ok 188 /checksum/MD5/reset/0 1237s ok 189 /checksum/MD5/reset/1 1237s ok 190 /checksum/MD5/reset/2 1237s ok 191 /checksum/MD5/reset/3 1237s ok 192 /checksum/MD5/reset/4 1237s ok 193 /checksum/MD5/reset/5 1237s ok 194 /checksum/MD5/reset/6 1237s ok 195 /checksum/MD5/reset/7 1237s ok 196 /checksum/MD5/reset/8 1237s ok 197 /checksum/MD5/reset/9 1237s ok 198 /checksum/MD5/reset/10 1237s ok 199 /checksum/MD5/reset/11 1237s ok 200 /checksum/MD5/reset/12 1237s ok 201 /checksum/MD5/reset/13 1237s ok 202 /checksum/MD5/reset/14 1237s ok 203 /checksum/MD5/reset/15 1237s ok 204 /checksum/MD5/reset/16 1237s ok 205 /checksum/MD5/reset/17 1237s ok 206 /checksum/MD5/reset/18 1237s ok 207 /checksum/MD5/reset/19 1237s ok 208 /checksum/MD5/reset/20 1237s ok 209 /checksum/MD5/reset/21 1237s ok 210 /checksum/MD5/reset/22 1237s ok 211 /checksum/MD5/reset/23 1237s ok 212 /checksum/MD5/reset/24 1237s ok 213 /checksum/MD5/reset/25 1237s ok 214 /checksum/MD5/reset/26 1237s ok 215 /checksum/MD5/reset/27 1237s ok 216 /checksum/MD5/reset/28 1237s ok 217 /checksum/MD5/reset/29 1237s ok 218 /checksum/MD5/reset/30 1237s ok 219 /checksum/MD5/reset/31 1237s ok 220 /checksum/MD5/reset/32 1237s ok 221 /checksum/MD5/reset/33 1237s ok 222 /checksum/MD5/reset/34 1237s ok 223 /checksum/MD5/reset/35 1237s ok 224 /checksum/MD5/reset/36 1237s ok 225 /checksum/MD5/reset/37 1237s ok 226 /checksum/MD5/reset/38 1237s ok 227 /checksum/MD5/reset/39 1237s ok 228 /checksum/MD5/reset/40 1237s ok 229 /checksum/MD5/reset/41 1237s ok 230 /checksum/MD5/reset/42 1237s ok 231 /checksum/MD5/reset/43 1237s ok 232 /checksum/MD5/reset/44 1237s ok 233 /checksum/MD5/reset/45 1237s ok 234 /checksum/MD5/reset/46 1237s ok 235 /checksum/MD5/reset/47 1237s ok 236 /checksum/MD5/reset/48 1237s ok 237 /checksum/MD5/reset/49 1237s ok 238 /checksum/MD5/reset/50 1237s ok 239 /checksum/MD5/reset/51 1237s ok 240 /checksum/MD5/reset/52 1237s ok 241 /checksum/MD5/reset/53 1237s ok 242 /checksum/MD5/reset/54 1237s ok 243 /checksum/MD5/reset/55 1237s ok 244 /checksum/MD5/reset/56 1237s ok 245 /checksum/MD5/reset/57 1237s ok 246 /checksum/MD5/reset/58 1237s ok 247 /checksum/MD5/reset/59 1237s ok 248 /checksum/MD5/reset/60 1237s ok 249 /checksum/MD5/reset/61 1237s ok 250 /checksum/MD5/reset/62 1237s ok 251 /checksum/MD5/reset/63 1237s ok 252 /checksum/MD5/reset/64 1237s ok 253 /checksum/MD5/reset/65 1237s ok 254 /checksum/MD5/reset/66 1237s ok 255 /checksum/MD5/reset/67 1237s ok 256 /checksum/MD5/reset/68 1237s ok 257 /checksum/MD5/reset/69 1237s ok 258 /checksum/MD5/reset/70 1237s ok 259 /checksum/MD5/reset/71 1237s ok 260 /checksum/MD5/reset/72 1237s ok 261 /checksum/MD5/reset/73 1237s ok 262 /checksum/MD5/reset/74 1237s ok 263 /checksum/MD5/reset/75 1237s ok 264 /checksum/MD5/reset/76 1237s ok 265 /checksum/MD5/reset/77 1237s ok 266 /checksum/MD5/reset/78 1237s ok 267 /checksum/MD5/reset/79 1237s ok 268 /checksum/MD5/reset/80 1237s ok 269 /checksum/MD5/reset/81 1237s ok 270 /checksum/MD5/reset/82 1237s ok 271 /checksum/MD5/reset/83 1237s ok 272 /checksum/MD5/reset/84 1237s ok 273 /checksum/MD5/reset/85 1237s ok 274 /checksum/MD5/reset/86 1237s ok 275 /checksum/MD5/reset/87 1237s ok 276 /checksum/MD5/reset/88 1237s ok 277 /checksum/MD5/reset/89 1237s ok 278 /checksum/MD5/reset/90 1237s ok 279 /checksum/MD5/reset/91 1237s ok 280 /checksum/MD5/reset/92 1237s ok 281 /checksum/MD5/reset/93 1237s ok 282 /checksum/MD5/reset/94 1237s ok 283 /checksum/MD5/reset/95 1237s ok 284 /checksum/MD5/reset/96 1237s ok 285 /checksum/MD5/reset/97 1237s ok 286 /checksum/MD5/reset/98 1237s ok 287 /checksum/MD5/reset/99 1237s ok 288 /checksum/MD5/reset/100 1237s ok 289 /checksum/MD5/reset/101 1237s ok 290 /checksum/MD5/reset/102 1237s ok 291 /checksum/MD5/reset/103 1237s ok 292 /checksum/MD5/reset/104 1237s ok 293 /checksum/MD5/reset/105 1237s ok 294 /checksum/MD5/reset/106 1237s ok 295 /checksum/MD5/reset/107 1237s ok 296 /checksum/MD5/reset/108 1237s ok 297 /checksum/MD5/reset/109 1237s ok 298 /checksum/MD5/reset/110 1237s ok 299 /checksum/MD5/reset/111 1237s ok 300 /checksum/MD5/reset/112 1237s ok 301 /checksum/MD5/reset/113 1237s ok 302 /checksum/MD5/reset/114 1237s ok 303 /checksum/MD5/reset/115 1237s ok 304 /checksum/MD5/reset/116 1237s ok 305 /checksum/MD5/reset/117 1237s ok 306 /checksum/MD5/reset/118 1237s ok 307 /checksum/MD5/reset/119 1237s ok 308 /checksum/MD5/reset/120 1237s ok 309 /checksum/MD5/reset/121 1237s ok 310 /checksum/MD5/reset/122 1237s ok 311 /checksum/MD5/reset/123 1237s ok 312 /checksum/MD5/reset/124 1237s ok 313 /checksum/MD5/reset/125 1237s ok 314 /checksum/MD5/reset/126 1237s ok 315 /checksum/MD5/reset/127 1237s ok 316 /checksum/MD5/reset/128 1237s ok 317 /checksum/MD5/reset/129 1237s ok 318 /checksum/MD5/reset/130 1237s ok 319 /checksum/MD5/reset/131 1237s ok 320 /checksum/MD5/reset/132 1237s ok 321 /checksum/MD5/reset/133 1237s ok 322 /checksum/MD5/reset/134 1237s ok 323 /checksum/MD5/reset/135 1237s ok 324 /checksum/MD5/reset/136 1237s ok 325 /checksum/MD5/reset/137 1237s ok 326 /checksum/MD5/reset/138 1237s ok 327 /checksum/MD5/reset/139 1237s ok 328 /checksum/MD5/reset/140 1237s ok 329 /checksum/MD5/reset/141 1237s ok 330 /checksum/MD5/reset/142 1237s ok 331 /checksum/MD5/reset/143 1237s ok 332 /checksum/MD5/reset/144 1237s ok 333 /checksum/MD5/reset/145 1237s ok 334 /checksum/MD5/reset/146 1237s ok 335 /checksum/MD5/reset/147 1237s ok 336 /checksum/MD5/reset/148 1237s ok 337 /checksum/MD5/reset/149 1237s ok 338 /checksum/MD5/reset/150 1237s ok 339 /checksum/MD5/reset/151 1237s ok 340 /checksum/MD5/reset/152 1237s ok 341 /checksum/MD5/reset/153 1237s ok 342 /checksum/MD5/reset/154 1237s ok 343 /checksum/MD5/reset/155 1237s ok 344 /checksum/MD5/reset/156 1237s ok 345 /checksum/MD5/reset/157 1237s ok 346 /checksum/MD5/reset/158 1237s ok 347 /checksum/MD5/reset/159 1237s ok 348 /checksum/MD5/reset/160 1237s ok 349 /checksum/MD5/reset/161 1237s ok 350 /checksum/MD5/reset/162 1237s ok 351 /checksum/MD5/reset/163 1237s ok 352 /checksum/MD5/reset/164 1237s ok 353 /checksum/MD5/reset/165 1237s ok 354 /checksum/MD5/reset/166 1237s ok 355 /checksum/MD5/reset/167 1237s ok 356 /checksum/MD5/reset/168 1237s ok 357 /checksum/MD5/reset/169 1237s ok 358 /checksum/MD5/reset/170 1237s ok 359 /checksum/MD5/reset/171 1237s ok 360 /checksum/MD5/reset/172 1237s ok 361 /checksum/MD5/reset/173 1237s ok 362 /checksum/MD5/reset/174 1237s ok 363 /checksum/MD5/reset/175 1237s ok 364 /checksum/MD5/reset/176 1237s ok 365 /checksum/MD5/reset/177 1237s ok 366 /checksum/MD5/reset/178 1237s ok 367 /checksum/MD5/reset/179 1237s ok 368 /checksum/MD5/reset/180 1237s ok 369 /checksum/MD5/reset/181 1237s ok 370 /checksum/MD5/reset/182 1237s ok 371 /checksum/MD5/reset/183 1237s # End of reset tests 1237s # End of MD5 tests 1237s # Start of SHA1 tests 1237s ok 372 /checksum/SHA1/0 1237s ok 373 /checksum/SHA1/1 1237s ok 374 /checksum/SHA1/2 1237s ok 375 /checksum/SHA1/3 1237s ok 376 /checksum/SHA1/4 1237s ok 377 /checksum/SHA1/5 1237s ok 378 /checksum/SHA1/6 1237s ok 379 /checksum/SHA1/7 1237s ok 380 /checksum/SHA1/8 1237s ok 381 /checksum/SHA1/9 1237s ok 382 /checksum/SHA1/10 1237s ok 383 /checksum/SHA1/11 1237s ok 384 /checksum/SHA1/12 1237s ok 385 /checksum/SHA1/13 1237s ok 386 /checksum/SHA1/14 1237s ok 387 /checksum/SHA1/15 1237s ok 388 /checksum/SHA1/16 1237s ok 389 /checksum/SHA1/17 1237s ok 390 /checksum/SHA1/18 1237s ok 391 /checksum/SHA1/19 1237s ok 392 /checksum/SHA1/20 1237s ok 393 /checksum/SHA1/21 1237s ok 394 /checksum/SHA1/22 1237s ok 395 /checksum/SHA1/23 1237s ok 396 /checksum/SHA1/24 1237s ok 397 /checksum/SHA1/25 1237s ok 398 /checksum/SHA1/26 1237s ok 399 /checksum/SHA1/27 1237s ok 400 /checksum/SHA1/28 1237s ok 401 /checksum/SHA1/29 1237s ok 402 /checksum/SHA1/30 1237s ok 403 /checksum/SHA1/31 1237s ok 404 /checksum/SHA1/32 1237s ok 405 /checksum/SHA1/33 1237s ok 406 /checksum/SHA1/34 1237s ok 407 /checksum/SHA1/35 1237s ok 408 /checksum/SHA1/36 1237s ok 409 /checksum/SHA1/37 1237s ok 410 /checksum/SHA1/38 1237s ok 411 /checksum/SHA1/39 1237s ok 412 /checksum/SHA1/40 1237s ok 413 /checksum/SHA1/41 1237s ok 414 /checksum/SHA1/42 1237s ok 415 /checksum/SHA1/43 1237s ok 416 /checksum/SHA1/44 1237s ok 417 /checksum/SHA1/45 1237s ok 418 /checksum/SHA1/46 1237s ok 419 /checksum/SHA1/47 1237s ok 420 /checksum/SHA1/48 1237s ok 421 /checksum/SHA1/49 1237s ok 422 /checksum/SHA1/50 1237s ok 423 /checksum/SHA1/51 1237s ok 424 /checksum/SHA1/52 1237s ok 425 /checksum/SHA1/53 1237s ok 426 /checksum/SHA1/54 1237s ok 427 /checksum/SHA1/55 1237s ok 428 /checksum/SHA1/56 1237s ok 429 /checksum/SHA1/57 1237s ok 430 /checksum/SHA1/58 1237s ok 431 /checksum/SHA1/59 1237s ok 432 /checksum/SHA1/60 1237s ok 433 /checksum/SHA1/61 1237s ok 434 /checksum/SHA1/62 1237s ok 435 /checksum/SHA1/63 1237s ok 436 /checksum/SHA1/64 1237s ok 437 /checksum/SHA1/65 1237s ok 438 /checksum/SHA1/66 1237s ok 439 /checksum/SHA1/67 1237s ok 440 /checksum/SHA1/68 1237s ok 441 /checksum/SHA1/69 1237s ok 442 /checksum/SHA1/70 1237s ok 443 /checksum/SHA1/71 1237s ok 444 /checksum/SHA1/72 1237s ok 445 /checksum/SHA1/73 1237s ok 446 /checksum/SHA1/74 1237s ok 447 /checksum/SHA1/75 1237s ok 448 /checksum/SHA1/76 1237s ok 449 /checksum/SHA1/77 1237s ok 450 /checksum/SHA1/78 1237s ok 451 /checksum/SHA1/79 1237s ok 452 /checksum/SHA1/80 1237s ok 453 /checksum/SHA1/81 1237s ok 454 /checksum/SHA1/82 1237s ok 455 /checksum/SHA1/83 1237s ok 456 /checksum/SHA1/84 1237s ok 457 /checksum/SHA1/85 1237s ok 458 /checksum/SHA1/86 1237s ok 459 /checksum/SHA1/87 1237s ok 460 /checksum/SHA1/88 1237s ok 461 /checksum/SHA1/89 1237s ok 462 /checksum/SHA1/90 1237s ok 463 /checksum/SHA1/91 1237s ok 464 /checksum/SHA1/92 1237s ok 465 /checksum/SHA1/93 1237s ok 466 /checksum/SHA1/94 1237s ok 467 /checksum/SHA1/95 1237s ok 468 /checksum/SHA1/96 1237s ok 469 /checksum/SHA1/97 1237s ok 470 /checksum/SHA1/98 1237s ok 471 /checksum/SHA1/99 1237s ok 472 /checksum/SHA1/100 1237s ok 473 /checksum/SHA1/101 1237s ok 474 /checksum/SHA1/102 1237s ok 475 /checksum/SHA1/103 1237s ok 476 /checksum/SHA1/104 1237s ok 477 /checksum/SHA1/105 1237s ok 478 /checksum/SHA1/106 1237s ok 479 /checksum/SHA1/107 1237s ok 480 /checksum/SHA1/108 1237s ok 481 /checksum/SHA1/109 1237s ok 482 /checksum/SHA1/110 1237s ok 483 /checksum/SHA1/111 1237s ok 484 /checksum/SHA1/112 1237s ok 485 /checksum/SHA1/113 1237s ok 486 /checksum/SHA1/114 1237s ok 487 /checksum/SHA1/115 1237s ok 488 /checksum/SHA1/116 1237s ok 489 /checksum/SHA1/117 1237s ok 490 /checksum/SHA1/118 1237s ok 491 /checksum/SHA1/119 1237s ok 492 /checksum/SHA1/120 1237s ok 493 /checksum/SHA1/121 1237s ok 494 /checksum/SHA1/122 1237s ok 495 /checksum/SHA1/123 1237s ok 496 /checksum/SHA1/124 1237s ok 497 /checksum/SHA1/125 1237s ok 498 /checksum/SHA1/126 1237s ok 499 /checksum/SHA1/127 1237s ok 500 /checksum/SHA1/128 1237s ok 501 /checksum/SHA1/129 1237s ok 502 /checksum/SHA1/130 1237s ok 503 /checksum/SHA1/131 1237s ok 504 /checksum/SHA1/132 1237s ok 505 /checksum/SHA1/133 1237s ok 506 /checksum/SHA1/134 1237s ok 507 /checksum/SHA1/135 1237s ok 508 /checksum/SHA1/136 1237s ok 509 /checksum/SHA1/137 1237s ok 510 /checksum/SHA1/138 1237s ok 511 /checksum/SHA1/139 1237s ok 512 /checksum/SHA1/140 1237s ok 513 /checksum/SHA1/141 1237s ok 514 /checksum/SHA1/142 1237s ok 515 /checksum/SHA1/143 1237s ok 516 /checksum/SHA1/144 1237s ok 517 /checksum/SHA1/145 1237s ok 518 /checksum/SHA1/146 1237s ok 519 /checksum/SHA1/147 1237s ok 520 /checksum/SHA1/148 1237s ok 521 /checksum/SHA1/149 1237s ok 522 /checksum/SHA1/150 1237s ok 523 /checksum/SHA1/151 1237s ok 524 /checksum/SHA1/152 1237s ok 525 /checksum/SHA1/153 1237s ok 526 /checksum/SHA1/154 1237s ok 527 /checksum/SHA1/155 1237s ok 528 /checksum/SHA1/156 1237s ok 529 /checksum/SHA1/157 1237s ok 530 /checksum/SHA1/158 1237s ok 531 /checksum/SHA1/159 1237s ok 532 /checksum/SHA1/160 1237s ok 533 /checksum/SHA1/161 1237s ok 534 /checksum/SHA1/162 1237s ok 535 /checksum/SHA1/163 1237s ok 536 /checksum/SHA1/164 1237s ok 537 /checksum/SHA1/165 1237s ok 538 /checksum/SHA1/166 1237s ok 539 /checksum/SHA1/167 1237s ok 540 /checksum/SHA1/168 1237s ok 541 /checksum/SHA1/169 1237s ok 542 /checksum/SHA1/170 1237s ok 543 /checksum/SHA1/171 1237s ok 544 /checksum/SHA1/172 1237s ok 545 /checksum/SHA1/173 1237s ok 546 /checksum/SHA1/174 1237s ok 547 /checksum/SHA1/175 1237s ok 548 /checksum/SHA1/176 1237s ok 549 /checksum/SHA1/177 1239s ok 550 /checksum/SHA1/178 1239s ok 551 /checksum/SHA1/179 1239s ok 552 /checksum/SHA1/180 1239s ok 553 /checksum/SHA1/181 1239s ok 554 /checksum/SHA1/182 1239s ok 555 /checksum/SHA1/183 1239s ok 556 /checksum/SHA1/string 1239s ok 557 /checksum/SHA1/bytes 1239s # Start of reset tests 1239s ok 558 /checksum/SHA1/reset/0 1239s ok 559 /checksum/SHA1/reset/1 1239s ok 560 /checksum/SHA1/reset/2 1239s ok 561 /checksum/SHA1/reset/3 1239s ok 562 /checksum/SHA1/reset/4 1239s ok 563 /checksum/SHA1/reset/5 1239s ok 564 /checksum/SHA1/reset/6 1239s ok 565 /checksum/SHA1/reset/7 1239s ok 566 /checksum/SHA1/reset/8 1239s ok 567 /checksum/SHA1/reset/9 1239s ok 568 /checksum/SHA1/reset/10 1239s ok 569 /checksum/SHA1/reset/11 1239s ok 570 /checksum/SHA1/reset/12 1239s ok 571 /checksum/SHA1/reset/13 1239s ok 572 /checksum/SHA1/reset/14 1239s ok 573 /checksum/SHA1/reset/15 1239s ok 574 /checksum/SHA1/reset/16 1239s ok 575 /checksum/SHA1/reset/17 1239s ok 576 /checksum/SHA1/reset/18 1239s ok 577 /checksum/SHA1/reset/19 1239s ok 578 /checksum/SHA1/reset/20 1239s ok 579 /checksum/SHA1/reset/21 1239s ok 580 /checksum/SHA1/reset/22 1239s ok 581 /checksum/SHA1/reset/23 1239s ok 582 /checksum/SHA1/reset/24 1239s ok 583 /checksum/SHA1/reset/25 1239s ok 584 /checksum/SHA1/reset/26 1239s ok 585 /checksum/SHA1/reset/27 1239s ok 586 /checksum/SHA1/reset/28 1239s ok 587 /checksum/SHA1/reset/29 1239s ok 588 /checksum/SHA1/reset/30 1239s ok 589 /checksum/SHA1/reset/31 1239s ok 590 /checksum/SHA1/reset/32 1239s ok 591 /checksum/SHA1/reset/33 1239s ok 592 /checksum/SHA1/reset/34 1239s ok 593 /checksum/SHA1/reset/35 1239s ok 594 /checksum/SHA1/reset/36 1239s ok 595 /checksum/SHA1/reset/37 1239s ok 596 /checksum/SHA1/reset/38 1239s ok 597 /checksum/SHA1/reset/39 1239s ok 598 /checksum/SHA1/reset/40 1239s ok 599 /checksum/SHA1/reset/41 1239s ok 600 /checksum/SHA1/reset/42 1239s ok 601 /checksum/SHA1/reset/43 1239s ok 602 /checksum/SHA1/reset/44 1239s ok 603 /checksum/SHA1/reset/45 1239s ok 604 /checksum/SHA1/reset/46 1239s ok 605 /checksum/SHA1/reset/47 1239s ok 606 /checksum/SHA1/reset/48 1239s ok 607 /checksum/SHA1/reset/49 1239s ok 608 /checksum/SHA1/reset/50 1239s ok 609 /checksum/SHA1/reset/51 1239s ok 610 /checksum/SHA1/reset/52 1239s ok 611 /checksum/SHA1/reset/53 1239s ok 612 /checksum/SHA1/reset/54 1239s ok 613 /checksum/SHA1/reset/55 1239s ok 614 /checksum/SHA1/reset/56 1239s ok 615 /checksum/SHA1/reset/57 1239s ok 616 /checksum/SHA1/reset/58 1239s ok 617 /checksum/SHA1/reset/59 1239s ok 618 /checksum/SHA1/reset/60 1239s ok 619 /checksum/SHA1/reset/61 1239s ok 620 /checksum/SHA1/reset/62 1239s ok 621 /checksum/SHA1/reset/63 1239s ok 622 /checksum/SHA1/reset/64 1239s ok 623 /checksum/SHA1/reset/65 1239s ok 624 /checksum/SHA1/reset/66 1239s ok 625 /checksum/SHA1/reset/67 1239s ok 626 /checksum/SHA1/reset/68 1239s ok 627 /checksum/SHA1/reset/69 1239s ok 628 /checksum/SHA1/reset/70 1239s ok 629 /checksum/SHA1/reset/71 1239s ok 630 /checksum/SHA1/reset/72 1239s ok 631 /checksum/SHA1/reset/73 1239s ok 632 /checksum/SHA1/reset/74 1239s ok 633 /checksum/SHA1/reset/75 1239s ok 634 /checksum/SHA1/reset/76 1239s ok 635 /checksum/SHA1/reset/77 1239s ok 636 /checksum/SHA1/reset/78 1239s ok 637 /checksum/SHA1/reset/79 1239s ok 638 /checksum/SHA1/reset/80 1239s ok 639 /checksum/SHA1/reset/81 1239s ok 640 /checksum/SHA1/reset/82 1239s ok 641 /checksum/SHA1/reset/83 1239s ok 642 /checksum/SHA1/reset/84 1239s ok 643 /checksum/SHA1/reset/85 1239s ok 644 /checksum/SHA1/reset/86 1239s ok 645 /checksum/SHA1/reset/87 1239s ok 646 /checksum/SHA1/reset/88 1239s ok 647 /checksum/SHA1/reset/89 1239s ok 648 /checksum/SHA1/reset/90 1239s ok 649 /checksum/SHA1/reset/91 1239s ok 650 /checksum/SHA1/reset/92 1239s ok 651 /checksum/SHA1/reset/93 1239s ok 652 /checksum/SHA1/reset/94 1239s ok 653 /checksum/SHA1/reset/95 1239s ok 654 /checksum/SHA1/reset/96 1239s ok 655 /checksum/SHA1/reset/97 1239s ok 656 /checksum/SHA1/reset/98 1239s ok 657 /checksum/SHA1/reset/99 1239s ok 658 /checksum/SHA1/reset/100 1239s ok 659 /checksum/SHA1/reset/101 1239s ok 660 /checksum/SHA1/reset/102 1239s ok 661 /checksum/SHA1/reset/103 1239s ok 662 /checksum/SHA1/reset/104 1239s ok 663 /checksum/SHA1/reset/105 1239s ok 664 /checksum/SHA1/reset/106 1239s ok 665 /checksum/SHA1/reset/107 1239s ok 666 /checksum/SHA1/reset/108 1239s ok 667 /checksum/SHA1/reset/109 1239s ok 668 /checksum/SHA1/reset/110 1239s ok 669 /checksum/SHA1/reset/111 1239s ok 670 /checksum/SHA1/reset/112 1239s ok 671 /checksum/SHA1/reset/113 1239s ok 672 /checksum/SHA1/reset/114 1239s ok 673 /checksum/SHA1/reset/115 1239s ok 674 /checksum/SHA1/reset/116 1239s ok 675 /checksum/SHA1/reset/117 1239s ok 676 /checksum/SHA1/reset/118 1239s ok 677 /checksum/SHA1/reset/119 1239s ok 678 /checksum/SHA1/reset/120 1239s ok 679 /checksum/SHA1/reset/121 1239s ok 680 /checksum/SHA1/reset/122 1239s ok 681 /checksum/SHA1/reset/123 1239s ok 682 /checksum/SHA1/reset/124 1239s ok 683 /checksum/SHA1/reset/125 1239s ok 684 /checksum/SHA1/reset/126 1239s ok 685 /checksum/SHA1/reset/127 1239s ok 686 /checksum/SHA1/reset/128 1239s ok 687 /checksum/SHA1/reset/129 1239s ok 688 /checksum/SHA1/reset/130 1239s ok 689 /checksum/SHA1/reset/131 1239s ok 690 /checksum/SHA1/reset/132 1239s ok 691 /checksum/SHA1/reset/133 1239s ok 692 /checksum/SHA1/reset/134 1239s ok 693 /checksum/SHA1/reset/135 1239s ok 694 /checksum/SHA1/reset/136 1239s ok 695 /checksum/SHA1/reset/137 1239s ok 696 /checksum/SHA1/reset/138 1239s ok 697 /checksum/SHA1/reset/139 1239s ok 698 /checksum/SHA1/reset/140 1239s ok 699 /checksum/SHA1/reset/141 1239s ok 700 /checksum/SHA1/reset/142 1239s ok 701 /checksum/SHA1/reset/143 1239s ok 702 /checksum/SHA1/reset/144 1239s ok 703 /checksum/SHA1/reset/145 1239s ok 704 /checksum/SHA1/reset/146 1239s ok 705 /checksum/SHA1/reset/147 1239s ok 706 /checksum/SHA1/reset/148 1239s ok 707 /checksum/SHA1/reset/149 1239s ok 708 /checksum/SHA1/reset/150 1239s ok 709 /checksum/SHA1/reset/151 1239s ok 710 /checksum/SHA1/reset/152 1239s ok 711 /checksum/SHA1/reset/153 1239s ok 712 /checksum/SHA1/reset/154 1239s ok 713 /checksum/SHA1/reset/155 1239s ok 714 /checksum/SHA1/reset/156 1239s ok 715 /checksum/SHA1/reset/157 1239s ok 716 /checksum/SHA1/reset/158 1239s ok 717 /checksum/SHA1/reset/159 1239s ok 718 /checksum/SHA1/reset/160 1239s ok 719 /checksum/SHA1/reset/161 1239s ok 720 /checksum/SHA1/reset/162 1239s ok 721 /checksum/SHA1/reset/163 1239s ok 722 /checksum/SHA1/reset/164 1239s ok 723 /checksum/SHA1/reset/165 1239s ok 724 /checksum/SHA1/reset/166 1239s ok 725 /checksum/SHA1/reset/167 1239s ok 726 /checksum/SHA1/reset/168 1239s ok 727 /checksum/SHA1/reset/169 1239s ok 728 /checksum/SHA1/reset/170 1239s ok 729 /checksum/SHA1/reset/171 1239s ok 730 /checksum/SHA1/reset/172 1239s ok 731 /checksum/SHA1/reset/173 1239s ok 732 /checksum/SHA1/reset/174 1239s ok 733 /checksum/SHA1/reset/175 1239s ok 734 /checksum/SHA1/reset/176 1239s ok 735 /checksum/SHA1/reset/177 1239s ok 736 /checksum/SHA1/reset/178 1239s ok 737 /checksum/SHA1/reset/179 1239s ok 738 /checksum/SHA1/reset/180 1239s ok 739 /checksum/SHA1/reset/181 1239s ok 740 /checksum/SHA1/reset/182 1239s ok 741 /checksum/SHA1/reset/183 1239s # End of reset tests 1239s # End of SHA1 tests 1239s # Start of SHA256 tests 1239s ok 742 /checksum/SHA256/0 1239s ok 743 /checksum/SHA256/1 1239s ok 744 /checksum/SHA256/2 1239s ok 745 /checksum/SHA256/3 1239s ok 746 /checksum/SHA256/4 1239s ok 747 /checksum/SHA256/5 1239s ok 748 /checksum/SHA256/6 1239s ok 749 /checksum/SHA256/7 1239s ok 750 /checksum/SHA256/8 1239s ok 751 /checksum/SHA256/9 1239s ok 752 /checksum/SHA256/10 1239s ok 753 /checksum/SHA256/11 1239s ok 754 /checksum/SHA256/12 1239s ok 755 /checksum/SHA256/13 1239s ok 756 /checksum/SHA256/14 1239s ok 757 /checksum/SHA256/15 1239s ok 758 /checksum/SHA256/16 1239s ok 759 /checksum/SHA256/17 1239s ok 760 /checksum/SHA256/18 1239s ok 761 /checksum/SHA256/19 1239s ok 762 /checksum/SHA256/20 1239s ok 763 /checksum/SHA256/21 1239s ok 764 /checksum/SHA256/22 1239s ok 765 /checksum/SHA256/23 1239s ok 766 /checksum/SHA256/24 1239s ok 767 /checksum/SHA256/25 1239s ok 768 /checksum/SHA256/26 1239s ok 769 /checksum/SHA256/27 1239s ok 770 /checksum/SHA256/28 1239s ok 771 /checksum/SHA256/29 1239s ok 772 /checksum/SHA256/30 1239s ok 773 /checksum/SHA256/31 1239s ok 774 /checksum/SHA256/32 1239s ok 775 /checksum/SHA256/33 1239s ok 776 /checksum/SHA256/34 1239s ok 777 /checksum/SHA256/35 1239s ok 778 /checksum/SHA256/36 1239s ok 779 /checksum/SHA256/37 1239s ok 780 /checksum/SHA256/38 1239s ok 781 /checksum/SHA256/39 1239s ok 782 /checksum/SHA256/40 1239s ok 783 /checksum/SHA256/41 1239s ok 784 /checksum/SHA256/42 1239s ok 785 /checksum/SHA256/43 1239s ok 786 /checksum/SHA256/44 1239s ok 787 /checksum/SHA256/45 1239s ok 788 /checksum/SHA256/46 1239s ok 789 /checksum/SHA256/47 1239s ok 790 /checksum/SHA256/48 1239s ok 791 /checksum/SHA256/49 1239s ok 792 /checksum/SHA256/50 1239s ok 793 /checksum/SHA256/51 1239s ok 794 /checksum/SHA256/52 1239s ok 795 /checksum/SHA256/53 1239s ok 796 /checksum/SHA256/54 1239s ok 797 /checksum/SHA256/55 1239s ok 798 /checksum/SHA256/56 1239s ok 799 /checksum/SHA256/57 1239s ok 800 /checksum/SHA256/58 1239s ok 801 /checksum/SHA256/59 1239s ok 802 /checksum/SHA256/60 1239s ok 803 /checksum/SHA256/61 1239s ok 804 /checksum/SHA256/62 1239s ok 805 /checksum/SHA256/63 1239s ok 806 /checksum/SHA256/64 1239s ok 807 /checksum/SHA256/65 1239s ok 808 /checksum/SHA256/66 1239s ok 809 /checksum/SHA256/67 1239s ok 810 /checksum/SHA256/68 1239s ok 811 /checksum/SHA256/69 1239s ok 812 /checksum/SHA256/70 1239s ok 813 /checksum/SHA256/71 1239s ok 814 /checksum/SHA256/72 1239s ok 815 /checksum/SHA256/73 1239s ok 816 /checksum/SHA256/74 1239s ok 817 /checksum/SHA256/75 1239s ok 818 /checksum/SHA256/76 1239s ok 819 /checksum/SHA256/77 1239s ok 820 /checksum/SHA256/78 1239s ok 821 /checksum/SHA256/79 1239s ok 822 /checksum/SHA256/80 1239s ok 823 /checksum/SHA256/81 1239s ok 824 /checksum/SHA256/82 1239s ok 825 /checksum/SHA256/83 1239s ok 826 /checksum/SHA256/84 1239s ok 827 /checksum/SHA256/85 1239s ok 828 /checksum/SHA256/86 1239s ok 829 /checksum/SHA256/87 1239s ok 830 /checksum/SHA256/88 1239s ok 831 /checksum/SHA256/89 1239s ok 832 /checksum/SHA256/90 1239s ok 833 /checksum/SHA256/91 1239s ok 834 /checksum/SHA256/92 1239s ok 835 /checksum/SHA256/93 1239s ok 836 /checksum/SHA256/94 1239s ok 837 /checksum/SHA256/95 1239s ok 838 /checksum/SHA256/96 1239s ok 839 /checksum/SHA256/97 1239s ok 840 /checksum/SHA256/98 1239s ok 841 /checksum/SHA256/99 1239s ok 842 /checksum/SHA256/100 1239s ok 843 /checksum/SHA256/101 1239s ok 844 /checksum/SHA256/102 1239s ok 845 /checksum/SHA256/103 1239s ok 846 /checksum/SHA256/104 1239s ok 847 /checksum/SHA256/105 1239s ok 848 /checksum/SHA256/106 1239s ok 849 /checksum/SHA256/107 1239s ok 850 /checksum/SHA256/108 1239s ok 851 /checksum/SHA256/109 1239s ok 852 /checksum/SHA256/110 1239s ok 853 /checksum/SHA256/111 1239s ok 854 /checksum/SHA256/112 1239s ok 855 /checksum/SHA256/113 1239s ok 856 /checksum/SHA256/114 1239s ok 857 /checksum/SHA256/115 1239s ok 858 /checksum/SHA256/116 1239s ok 859 /checksum/SHA256/117 1239s ok 860 /checksum/SHA256/118 1239s ok 861 /checksum/SHA256/119 1239s ok 862 /checksum/SHA256/120 1239s ok 863 /checksum/SHA256/121 1239s ok 864 /checksum/SHA256/122 1239s ok 865 /checksum/SHA256/123 1239s ok 866 /checksum/SHA256/124 1239s ok 867 /checksum/SHA256/125 1239s ok 868 /checksum/SHA256/126 1239s ok 869 /checksum/SHA256/127 1239s ok 870 /checksum/SHA256/128 1239s ok 871 /checksum/SHA256/129 1239s ok 872 /checksum/SHA256/130 1239s ok 873 /checksum/SHA256/131 1239s ok 874 /checksum/SHA256/132 1239s ok 875 /checksum/SHA256/133 1239s ok 876 /checksum/SHA256/134 1239s ok 877 /checksum/SHA256/135 1239s ok 878 /checksum/SHA256/136 1239s ok 879 /checksum/SHA256/137 1239s ok 880 /checksum/SHA256/138 1239s ok 881 /checksum/SHA256/139 1239s ok 882 /checksum/SHA256/140 1239s ok 883 /checksum/SHA256/141 1239s ok 884 /checksum/SHA256/142 1239s ok 885 /checksum/SHA256/143 1239s ok 886 /checksum/SHA256/144 1239s ok 887 /checksum/SHA256/145 1239s ok 888 /checksum/SHA256/146 1239s ok 889 /checksum/SHA256/147 1239s ok 890 /checksum/SHA256/148 1239s ok 891 /checksum/SHA256/149 1239s ok 892 /checksum/SHA256/150 1239s ok 893 /checksum/SHA256/151 1239s ok 894 /checksum/SHA256/152 1239s ok 895 /checksum/SHA256/153 1239s ok 896 /checksum/SHA256/154 1239s ok 897 /checksum/SHA256/155 1239s ok 898 /checksum/SHA256/156 1239s ok 899 /checksum/SHA256/157 1239s ok 900 /checksum/SHA256/158 1239s ok 901 /checksum/SHA256/159 1239s ok 902 /checksum/SHA256/160 1239s ok 903 /checksum/SHA256/161 1239s ok 904 /checksum/SHA256/162 1239s ok 905 /checksum/SHA256/163 1239s ok 906 /checksum/SHA256/164 1239s ok 907 /checksum/SHA256/165 1239s ok 908 /checksum/SHA256/166 1239s ok 909 /checksum/SHA256/167 1239s ok 910 /checksum/SHA256/168 1239s ok 911 /checksum/SHA256/169 1239s ok 912 /checksum/SHA256/170 1239s ok 913 /checksum/SHA256/171 1239s ok 914 /checksum/SHA256/172 1239s ok 915 /checksum/SHA256/173 1239s ok 916 /checksum/SHA256/174 1239s ok 917 /checksum/SHA256/175 1239s ok 918 /checksum/SHA256/176 1239s ok 919 /checksum/SHA256/177 1239s ok 920 /checksum/SHA256/178 1239s ok 921 /checksum/SHA256/179 1239s ok 922 /checksum/SHA256/180 1239s ok 923 /checksum/SHA256/181 1239s ok 924 /checksum/SHA256/182 1239s ok 925 /checksum/SHA256/183 1239s ok 926 /checksum/SHA256/string 1239s ok 927 /checksum/SHA256/bytes 1239s # Start of reset tests 1239s ok 928 /checksum/SHA256/reset/0 1239s ok 929 /checksum/SHA256/reset/1 1239s ok 930 /checksum/SHA256/reset/2 1239s ok 931 /checksum/SHA256/reset/3 1239s ok 932 /checksum/SHA256/reset/4 1239s ok 933 /checksum/SHA256/reset/5 1239s ok 934 /checksum/SHA256/reset/6 1239s ok 935 /checksum/SHA256/reset/7 1239s ok 936 /checksum/SHA256/reset/8 1239s ok 937 /checksum/SHA256/reset/9 1239s ok 938 /checksum/SHA256/reset/10 1239s ok 939 /checksum/SHA256/reset/11 1239s ok 940 /checksum/SHA256/reset/12 1239s ok 941 /checksum/SHA256/reset/13 1239s ok 942 /checksum/SHA256/reset/14 1239s ok 943 /checksum/SHA256/reset/15 1239s ok 944 /checksum/SHA256/reset/16 1239s ok 945 /checksum/SHA256/reset/17 1239s ok 946 /checksum/SHA256/reset/18 1239s ok 947 /checksum/SHA256/reset/19 1239s ok 948 /checksum/SHA256/reset/20 1239s ok 949 /checksum/SHA256/reset/21 1239s ok 950 /checksum/SHA256/reset/22 1239s ok 951 /checksum/SHA256/reset/23 1239s ok 952 /checksum/SHA256/reset/24 1239s ok 953 /checksum/SHA256/reset/25 1239s ok 954 /checksum/SHA256/reset/26 1239s ok 955 /checksum/SHA256/reset/27 1239s ok 956 /checksum/SHA256/reset/28 1239s ok 957 /checksum/SHA256/reset/29 1239s ok 958 /checksum/SHA256/reset/30 1239s ok 959 /checksum/SHA256/reset/31 1239s ok 960 /checksum/SHA256/reset/32 1239s ok 961 /checksum/SHA256/reset/33 1239s ok 962 /checksum/SHA256/reset/34 1239s ok 963 /checksum/SHA256/reset/35 1239s ok 964 /checksum/SHA256/reset/36 1239s ok 965 /checksum/SHA256/reset/37 1239s ok 966 /checksum/SHA256/reset/38 1239s ok 967 /checksum/SHA256/reset/39 1239s ok 968 /checksum/SHA256/reset/40 1239s ok 969 /checksum/SHA256/reset/41 1239s ok 970 /checksum/SHA256/reset/42 1239s ok 971 /checksum/SHA256/reset/43 1239s ok 972 /checksum/SHA256/reset/44 1239s ok 973 /checksum/SHA256/reset/45 1239s ok 974 /checksum/SHA256/reset/46 1239s ok 975 /checksum/SHA256/reset/47 1239s ok 976 /checksum/SHA256/reset/48 1239s ok 977 /checksum/SHA256/reset/49 1239s ok 978 /checksum/SHA256/reset/50 1239s ok 979 /checksum/SHA256/reset/51 1239s ok 980 /checksum/SHA256/reset/52 1239s ok 981 /checksum/SHA256/reset/53 1239s ok 982 /checksum/SHA256/reset/54 1239s ok 983 /checksum/SHA256/reset/55 1239s ok 984 /checksum/SHA256/reset/56 1239s ok 985 /checksum/SHA256/reset/57 1239s ok 986 /checksum/SHA256/reset/58 1239s ok 987 /checksum/SHA256/reset/59 1239s ok 988 /checksum/SHA256/reset/60 1239s ok 989 /checksum/SHA256/reset/61 1239s ok 990 /checksum/SHA256/reset/62 1239s ok 991 /checksum/SHA256/reset/63 1239s ok 992 /checksum/SHA256/reset/64 1239s ok 993 /checksum/SHA256/reset/65 1239s ok 994 /checksum/SHA256/reset/66 1239s ok 995 /checksum/SHA256/reset/67 1239s ok 996 /checksum/SHA256/reset/68 1239s ok 997 /checksum/SHA256/reset/69 1239s ok 998 /checksum/SHA256/reset/70 1239s ok 999 /checksum/SHA256/reset/71 1239s ok 1000 /checksum/SHA256/reset/72 1239s ok 1001 /checksum/SHA256/reset/73 1239s ok 1002 /checksum/SHA256/reset/74 1239s ok 1003 /checksum/SHA256/reset/75 1239s ok 1004 /checksum/SHA256/reset/76 1239s ok 1005 /checksum/SHA256/reset/77 1239s ok 1006 /checksum/SHA256/reset/78 1239s ok 1007 /checksum/SHA256/reset/79 1239s ok 1008 /checksum/SHA256/reset/80 1239s ok 1009 /checksum/SHA256/reset/81 1239s ok 1010 /checksum/SHA256/reset/82 1239s ok 1011 /checksum/SHA256/reset/83 1239s ok 1012 /checksum/SHA256/reset/84 1239s ok 1013 /checksum/SHA256/reset/85 1239s ok 1014 /checksum/SHA256/reset/86 1239s ok 1015 /checksum/SHA256/reset/87 1239s ok 1016 /checksum/SHA256/reset/88 1239s ok 1017 /checksum/SHA256/reset/89 1239s ok 1018 /checksum/SHA256/reset/90 1239s ok 1019 /checksum/SHA256/reset/91 1239s ok 1020 /checksum/SHA256/reset/92 1239s ok 1021 /checksum/SHA256/reset/93 1239s ok 1022 /checksum/SHA256/reset/94 1239s ok 1023 /checksum/SHA256/reset/95 1239s ok 1024 /checksum/SHA256/reset/96 1239s ok 1025 /checksum/SHA256/reset/97 1239s ok 1026 /checksum/SHA256/reset/98 1239s ok 1027 /checksum/SHA256/reset/99 1239s ok 1028 /checksum/SHA256/reset/100 1239s ok 1029 /checksum/SHA256/reset/101 1239s ok 1030 /checksum/SHA256/reset/102 1239s ok 1031 /checksum/SHA256/reset/103 1239s ok 1032 /checksum/SHA256/reset/104 1239s ok 1033 /checksum/SHA256/reset/105 1239s ok 1034 /checksum/SHA256/reset/106 1239s ok 1035 /checksum/SHA256/reset/107 1239s ok 1036 /checksum/SHA256/reset/108 1239s ok 1037 /checksum/SHA256/reset/109 1239s ok 1038 /checksum/SHA256/reset/110 1239s ok 1039 /checksum/SHA256/reset/111 1239s ok 1040 /checksum/SHA256/reset/112 1239s ok 1041 /checksum/SHA256/reset/113 1239s ok 1042 /checksum/SHA256/reset/114 1239s ok 1043 /checksum/SHA256/reset/115 1239s ok 1044 /checksum/SHA256/reset/116 1239s ok 1045 /checksum/SHA256/reset/117 1239s ok 1046 /checksum/SHA256/reset/118 1239s ok 1047 /checksum/SHA256/reset/119 1239s ok 1048 /checksum/SHA256/reset/120 1239s ok 1049 /checksum/SHA256/reset/121 1239s ok 1050 /checksum/SHA256/reset/122 1239s ok 1051 /checksum/SHA256/reset/123 1239s ok 1052 /checksum/SHA256/reset/124 1239s ok 1053 /checksum/SHA256/reset/125 1239s ok 1054 /checksum/SHA256/reset/126 1239s ok 1055 /checksum/SHA256/reset/127 1239s ok 1056 /checksum/SHA256/reset/128 1239s ok 1057 /checksum/SHA256/reset/129 1239s ok 1058 /checksum/SHA256/reset/130 1239s ok 1059 /checksum/SHA256/reset/131 1239s ok 1060 /checksum/SHA256/reset/132 1239s ok 1061 /checksum/SHA256/reset/133 1239s ok 1062 /checksum/SHA256/reset/134 1239s ok 1063 /checksum/SHA256/reset/135 1239s ok 1064 /checksum/SHA256/reset/136 1239s ok 1065 /checksum/SHA256/reset/137 1239s ok 1066 /checksum/SHA256/reset/138 1239s ok 1067 /checksum/SHA256/reset/139 1239s ok 1068 /checksum/SHA256/reset/140 1239s ok 1069 /checksum/SHA256/reset/141 1239s ok 1070 /checksum/SHA256/reset/142 1239s ok 1071 /checksum/SHA256/reset/143 1239s ok 1072 /checksum/SHA256/reset/144 1239s ok 1073 /checksum/SHA256/reset/145 1239s ok 1074 /checksum/SHA256/reset/146 1239s ok 1075 /checksum/SHA256/reset/147 1239s ok 1076 /checksum/SHA256/reset/148 1239s ok 1077 /checksum/SHA256/reset/149 1239s ok 1078 /checksum/SHA256/reset/150 1239s ok 1079 /checksum/SHA256/reset/151 1239s ok 1080 /checksum/SHA256/reset/152 1239s ok 1081 /checksum/SHA256/reset/153 1239s ok 1082 /checksum/SHA256/reset/154 1239s ok 1083 /checksum/SHA256/reset/155 1239s ok 1084 /checksum/SHA256/reset/156 1239s ok 1085 /checksum/SHA256/reset/157 1239s ok 1086 /checksum/SHA256/reset/158 1239s ok 1087 /checksum/SHA256/reset/159 1239s ok 1088 /checksum/SHA256/reset/160 1239s ok 1089 /checksum/SHA256/reset/161 1239s ok 1090 /checksum/SHA256/reset/162 1239s ok 1091 /checksum/SHA256/reset/163 1239s ok 1092 /checksum/SHA256/reset/164 1239s ok 1093 /checksum/SHA256/reset/165 1239s ok 1094 /checksum/SHA256/reset/166 1239s ok 1095 /checksum/SHA256/reset/167 1239s ok 1096 /checksum/SHA256/reset/168 1239s ok 1097 /checksum/SHA256/reset/169 1239s ok 1098 /checksum/SHA256/reset/170 1239s ok 1099 /checksum/SHA256/reset/171 1239s ok 1100 /checksum/SHA256/reset/172 1239s ok 1101 /checksum/SHA256/reset/173 1239s ok 1102 /checksum/SHA256/reset/174 1239s ok 1103 /checksum/SHA256/reset/175 1239s ok 1104 /checksum/SHA256/reset/176 1239s ok 1105 /checksum/SHA256/reset/177 1239s ok 1106 /checksum/SHA256/reset/178 1239s ok 1107 /checksum/SHA256/reset/179 1239s ok 1108 /checksum/SHA256/reset/180 1239s ok 1109 /checksum/SHA256/reset/181 1239s ok 1110 /checksum/SHA256/reset/182 1239s ok 1111 /checksum/SHA256/reset/183 1239s # End of reset tests 1239s # End of SHA256 tests 1239s # Start of SHA384 tests 1239s ok 1112 /checksum/SHA384/0 1239s ok 1113 /checksum/SHA384/1 1239s ok 1114 /checksum/SHA384/2 1239s ok 1115 /checksum/SHA384/3 1239s ok 1116 /checksum/SHA384/4 1239s ok 1117 /checksum/SHA384/5 1239s ok 1118 /checksum/SHA384/6 1239s ok 1119 /checksum/SHA384/7 1239s ok 1120 /checksum/SHA384/8 1239s ok 1121 /checksum/SHA384/9 1239s ok 1122 /checksum/SHA384/10 1239s ok 1123 /checksum/SHA384/11 1239s ok 1124 /checksum/SHA384/12 1239s ok 1125 /checksum/SHA384/13 1239s ok 1126 /checksum/SHA384/14 1239s ok 1127 /checksum/SHA384/15 1239s ok 1128 /checksum/SHA384/16 1239s ok 1129 /checksum/SHA384/17 1239s ok 1130 /checksum/SHA384/18 1239s ok 1131 /checksum/SHA384/19 1239s ok 1132 /checksum/SHA384/20 1239s ok 1133 /checksum/SHA384/21 1239s ok 1134 /checksum/SHA384/22 1239s ok 1135 /checksum/SHA384/23 1239s ok 1136 /checksum/SHA384/24 1239s ok 1137 /checksum/SHA384/25 1239s ok 1138 /checksum/SHA384/26 1239s ok 1139 /checksum/SHA384/27 1239s ok 1140 /checksum/SHA384/28 1239s ok 1141 /checksum/SHA384/29 1239s ok 1142 /checksum/SHA384/30 1239s ok 1143 /checksum/SHA384/31 1239s ok 1144 /checksum/SHA384/32 1239s ok 1145 /checksum/SHA384/33 1239s ok 1146 /checksum/SHA384/34 1239s ok 1147 /checksum/SHA384/35 1239s ok 1148 /checksum/SHA384/36 1239s ok 1149 /checksum/SHA384/37 1239s ok 1150 /checksum/SHA384/38 1239s ok 1151 /checksum/SHA384/39 1239s ok 1152 /checksum/SHA384/40 1239s ok 1153 /checksum/SHA384/41 1239s ok 1154 /checksum/SHA384/42 1239s ok 1155 /checksum/SHA384/43 1239s ok 1156 /checksum/SHA384/44 1239s ok 1157 /checksum/SHA384/45 1239s ok 1158 /checksum/SHA384/46 1239s ok 1159 /checksum/SHA384/47 1239s ok 1160 /checksum/SHA384/48 1239s ok 1161 /checksum/SHA384/49 1239s ok 1162 /checksum/SHA384/50 1239s ok 1163 /checksum/SHA384/51 1239s ok 1164 /checksum/SHA384/52 1239s ok 1165 /checksum/SHA384/53 1239s ok 1166 /checksum/SHA384/54 1239s ok 1167 /checksum/SHA384/55 1239s ok 1168 /checksum/SHA384/56 1239s ok 1169 /checksum/SHA384/57 1239s ok 1170 /checksum/SHA384/58 1239s ok 1171 /checksum/SHA384/59 1239s ok 1172 /checksum/SHA384/60 1239s ok 1173 /checksum/SHA384/61 1239s ok 1174 /checksum/SHA384/62 1239s ok 1175 /checksum/SHA384/63 1239s ok 1176 /checksum/SHA384/64 1239s ok 1177 /checksum/SHA384/65 1239s ok 1178 /checksum/SHA384/66 1239s ok 1179 /checksum/SHA384/67 1239s ok 1180 /checksum/SHA384/68 1239s ok 1181 /checksum/SHA384/69 1239s ok 1182 /checksum/SHA384/70 1239s ok 1183 /checksum/SHA384/71 1239s ok 1184 /checksum/SHA384/72 1239s ok 1185 /checksum/SHA384/73 1239s ok 1186 /checksum/SHA384/74 1239s ok 1187 /checksum/SHA384/75 1239s ok 1188 /checksum/SHA384/76 1239s ok 1189 /checksum/SHA384/77 1239s ok 1190 /checksum/SHA384/78 1239s ok 1191 /checksum/SHA384/79 1239s ok 1192 /checksum/SHA384/80 1239s ok 1193 /checksum/SHA384/81 1239s ok 1194 /checksum/SHA384/82 1239s ok 1195 /checksum/SHA384/83 1239s ok 1196 /checksum/SHA384/84 1239s ok 1197 /checksum/SHA384/85 1239s ok 1198 /checksum/SHA384/86 1239s ok 1199 /checksum/SHA384/87 1239s ok 1200 /checksum/SHA384/88 1239s ok 1201 /checksum/SHA384/89 1239s ok 1202 /checksum/SHA384/90 1239s ok 1203 /checksum/SHA384/91 1239s ok 1204 /checksum/SHA384/92 1239s ok 1205 /checksum/SHA384/93 1239s ok 1206 /checksum/SHA384/94 1239s ok 1207 /checksum/SHA384/95 1239s ok 1208 /checksum/SHA384/96 1239s ok 1209 /checksum/SHA384/97 1239s ok 1210 /checksum/SHA384/98 1239s ok 1211 /checksum/SHA384/99 1239s ok 1212 /checksum/SHA384/100 1239s ok 1213 /checksum/SHA384/101 1239s ok 1214 /checksum/SHA384/102 1239s ok 1215 /checksum/SHA384/103 1239s ok 1216 /checksum/SHA384/104 1239s ok 1217 /checksum/SHA384/105 1239s ok 1218 /checksum/SHA384/106 1239s ok 1219 /checksum/SHA384/107 1239s ok 1220 /checksum/SHA384/108 1239s ok 1221 /checksum/SHA384/109 1239s ok 1222 /checksum/SHA384/110 1239s ok 1223 /checksum/SHA384/111 1239s ok 1224 /checksum/SHA384/112 1239s ok 1225 /checksum/SHA384/113 1239s ok 1226 /checksum/SHA384/114 1239s ok 1227 /checksum/SHA384/115 1239s ok 1228 /checksum/SHA384/116 1239s ok 1229 /checksum/SHA384/117 1239s ok 1230 /checksum/SHA384/118 1239s ok 1231 /checksum/SHA384/119 1239s ok 1232 /checksum/SHA384/120 1239s ok 1233 /checksum/SHA384/121 1239s ok 1234 /checksum/SHA384/122 1239s ok 1235 /checksum/SHA384/123 1239s ok 1236 /checksum/SHA384/124 1239s ok 1237 /checksum/SHA384/125 1239s ok 1238 /checksum/SHA384/126 1239s ok 1239 /checksum/SHA384/127 1239s ok 1240 /checksum/SHA384/128 1239s ok 1241 /checksum/SHA384/129 1239s ok 1242 /checksum/SHA384/130 1239s ok 1243 /checksum/SHA384/131 1239s ok 1244 /checksum/SHA384/132 1239s ok 1245 /checksum/SHA384/133 1239s ok 1246 /checksum/SHA384/134 1239s ok 1247 /checksum/SHA384/135 1239s ok 1248 /checksum/SHA384/136 1239s ok 1249 /checksum/SHA384/137 1239s ok 1250 /checksum/SHA384/138 1239s ok 1251 /checksum/SHA384/139 1239s ok 1252 /checksum/SHA384/140 1239s ok 1253 /checksum/SHA384/141 1239s ok 1254 /checksum/SHA384/142 1239s ok 1255 /checksum/SHA384/143 1239s ok 1256 /checksum/SHA384/144 1239s ok 1257 /checksum/SHA384/145 1239s ok 1258 /checksum/SHA384/146 1239s ok 1259 /checksum/SHA384/147 1239s ok 1260 /checksum/SHA384/148 1239s ok 1261 /checksum/SHA384/149 1239s ok 1262 /checksum/SHA384/150 1239s ok 1263 /checksum/SHA384/151 1239s ok 1264 /checksum/SHA384/152 1239s ok 1265 /checksum/SHA384/153 1239s ok 1266 /checksum/SHA384/154 1239s ok 1267 /checksum/SHA384/155 1239s ok 1268 /checksum/SHA384/156 1239s ok 1269 /checksum/SHA384/157 1239s ok 1270 /checksum/SHA384/158 1239s ok 1271 /checksum/SHA384/159 1239s ok 1272 /checksum/SHA384/160 1239s ok 1273 /checksum/SHA384/161 1239s ok 1274 /checksum/SHA384/162 1239s ok 1275 /checksum/SHA384/163 1239s ok 1276 /checksum/SHA384/164 1239s ok 1277 /checksum/SHA384/165 1239s ok 1278 /checksum/SHA384/166 1239s ok 1279 /checksum/SHA384/167 1239s ok 1280 /checksum/SHA384/168 1239s ok 1281 /checksum/SHA384/169 1239s ok 1282 /checksum/SHA384/170 1239s ok 1283 /checksum/SHA384/171 1239s ok 1284 /checksum/SHA384/172 1239s ok 1285 /checksum/SHA384/173 1239s ok 1286 /checksum/SHA384/174 1239s ok 1287 /checksum/SHA384/175 1239s ok 1288 /checksum/SHA384/176 1239s ok 1289 /checksum/SHA384/177 1239s ok 1290 /checksum/SHA384/178 1239s ok 1291 /checksum/SHA384/179 1239s ok 1292 /checksum/SHA384/180 1239s ok 1293 /checksum/SHA384/181 1239s ok 1294 /checksum/SHA384/182 1239s ok 1295 /checksum/SHA384/183 1239s ok 1296 /checksum/SHA384/string 1239s ok 1297 /checksum/SHA384/bytes 1239s # Start of reset tests 1239s ok 1298 /checksum/SHA384/reset/0 1239s ok 1299 /checksum/SHA384/reset/1 1239s ok 1300 /checksum/SHA384/reset/2 1239s ok 1301 /checksum/SHA384/reset/3 1239s ok 1302 /checksum/SHA384/reset/4 1239s ok 1303 /checksum/SHA384/reset/5 1239s ok 1304 /checksum/SHA384/reset/6 1239s ok 1305 /checksum/SHA384/reset/7 1239s ok 1306 /checksum/SHA384/reset/8 1239s ok 1307 /checksum/SHA384/reset/9 1239s ok 1308 /checksum/SHA384/reset/10 1239s ok 1309 /checksum/SHA384/reset/11 1239s ok 1310 /checksum/SHA384/reset/12 1239s ok 1311 /checksum/SHA384/reset/13 1239s ok 1312 /checksum/SHA384/reset/14 1239s ok 1313 /checksum/SHA384/reset/15 1239s ok 1314 /checksum/SHA384/reset/16 1239s ok 1315 /checksum/SHA384/reset/17 1239s ok 1316 /checksum/SHA384/reset/18 1239s ok 1317 /checksum/SHA384/reset/19 1239s ok 1318 /checksum/SHA384/reset/20 1239s ok 1319 /checksum/SHA384/reset/21 1239s ok 1320 /checksum/SHA384/reset/22 1239s ok 1321 /checksum/SHA384/reset/23 1239s ok 1322 /checksum/SHA384/reset/24 1239s ok 1323 /checksum/SHA384/reset/25 1239s ok 1324 /checksum/SHA384/reset/26 1239s ok 1325 /checksum/SHA384/reset/27 1239s ok 1326 /checksum/SHA384/reset/28 1239s ok 1327 /checksum/SHA384/reset/29 1239s ok 1328 /checksum/SHA384/reset/30 1239s ok 1329 /checksum/SHA384/reset/31 1239s ok 1330 /checksum/SHA384/reset/32 1239s ok 1331 /checksum/SHA384/reset/33 1239s ok 1332 /checksum/SHA384/reset/34 1239s ok 1333 /checksum/SHA384/reset/35 1239s ok 1334 /checksum/SHA384/reset/36 1239s ok 1335 /checksum/SHA384/reset/37 1239s ok 1336 /checksum/SHA384/reset/38 1239s ok 1337 /checksum/SHA384/reset/39 1239s ok 1338 /checksum/SHA384/reset/40 1239s ok 1339 /checksum/SHA384/reset/41 1239s ok 1340 /checksum/SHA384/reset/42 1239s ok 1341 /checksum/SHA384/reset/43 1239s ok 1342 /checksum/SHA384/reset/44 1239s ok 1343 /checksum/SHA384/reset/45 1239s ok 1344 /checksum/SHA384/reset/46 1239s ok 1345 /checksum/SHA384/reset/47 1239s ok 1346 /checksum/SHA384/reset/48 1239s ok 1347 /checksum/SHA384/reset/49 1239s ok 1348 /checksum/SHA384/reset/50 1239s ok 1349 /checksum/SHA384/reset/51 1239s ok 1350 /checksum/SHA384/reset/52 1239s ok 1351 /checksum/SHA384/reset/53 1239s ok 1352 /checksum/SHA384/reset/54 1239s ok 1353 /checksum/SHA384/reset/55 1239s ok 1354 /checksum/SHA384/reset/56 1239s ok 1355 /checksum/SHA384/reset/57 1239s ok 1356 /checksum/SHA384/reset/58 1239s ok 1357 /checksum/SHA384/reset/59 1239s ok 1358 /checksum/SHA384/reset/60 1239s ok 1359 /checksum/SHA384/reset/61 1239s ok 1360 /checksum/SHA384/reset/62 1239s ok 1361 /checksum/SHA384/reset/63 1239s ok 1362 /checksum/SHA384/reset/64 1239s ok 1363 /checksum/SHA384/reset/65 1239s ok 1364 /checksum/SHA384/reset/66 1239s ok 1365 /checksum/SHA384/reset/67 1239s ok 1366 /checksum/SHA384/reset/68 1239s ok 1367 /checksum/SHA384/reset/69 1239s ok 1368 /checksum/SHA384/reset/70 1239s ok 1369 /checksum/SHA384/reset/71 1239s ok 1370 /checksum/SHA384/reset/72 1239s ok 1371 /checksum/SHA384/reset/73 1239s ok 1372 /checksum/SHA384/reset/74 1239s ok 1373 /checksum/SHA384/reset/75 1239s ok 1374 /checksum/SHA384/reset/76 1239s ok 1375 /checksum/SHA384/reset/77 1239s ok 1376 /checksum/SHA384/reset/78 1239s ok 1377 /checksum/SHA384/reset/79 1239s ok 1378 /checksum/SHA384/reset/80 1239s ok 1379 /checksum/SHA384/reset/81 1239s ok 1380 /checksum/SHA384/reset/82 1239s ok 1381 /checksum/SHA384/reset/83 1239s ok 1382 /checksum/SHA384/reset/84 1239s ok 1383 /checksum/SHA384/reset/85 1239s ok 1384 /checksum/SHA384/reset/86 1239s ok 1385 /checksum/SHA384/reset/87 1239s ok 1386 /checksum/SHA384/reset/88 1239s ok 1387 /checksum/SHA384/reset/89 1239s ok 1388 /checksum/SHA384/reset/90 1239s ok 1389 /checksum/SHA384/reset/91 1239s ok 1390 /checksum/SHA384/reset/92 1239s ok 1391 /checksum/SHA384/reset/93 1239s ok 1392 /checksum/SHA384/reset/94 1239s ok 1393 /checksum/SHA384/reset/95 1239s ok 1394 /checksum/SHA384/reset/96 1239s ok 1395 /checksum/SHA384/reset/97 1239s ok 1396 /checksum/SHA384/reset/98 1239s ok 1397 /checksum/SHA384/reset/99 1239s ok 1398 /checksum/SHA384/reset/100 1239s ok 1399 /checksum/SHA384/reset/101 1239s ok 1400 /checksum/SHA384/reset/102 1239s ok 1401 /checksum/SHA384/reset/103 1239s ok 1402 /checksum/SHA384/reset/104 1239s ok 1403 /checksum/SHA384/reset/105 1239s ok 1404 /checksum/SHA384/reset/106 1239s ok 1405 /checksum/SHA384/reset/107 1239s ok 1406 /checksum/SHA384/reset/108 1239s ok 1407 /checksum/SHA384/reset/109 1239s ok 1408 /checksum/SHA384/reset/110 1239s ok 1409 /checksum/SHA384/reset/111 1239s ok 1410 /checksum/SHA384/reset/112 1239s ok 1411 /checksum/SHA384/reset/113 1239s ok 1412 /checksum/SHA384/reset/114 1239s ok 1413 /checksum/SHA384/reset/115 1239s ok 1414 /checksum/SHA384/reset/116 1239s ok 1415 /checksum/SHA384/reset/117 1239s ok 1416 /checksum/SHA384/reset/118 1239s ok 1417 /checksum/SHA384/reset/119 1239s ok 1418 /checksum/SHA384/reset/120 1239s ok 1419 /checksum/SHA384/reset/121 1239s ok 1420 /checksum/SHA384/reset/122 1239s ok 1421 /checksum/SHA384/reset/123 1239s ok 1422 /checksum/SHA384/reset/124 1239s ok 1423 /checksum/SHA384/reset/125 1239s ok 1424 /checksum/SHA384/reset/126 1239s ok 1425 /checksum/SHA384/reset/127 1239s ok 1426 /checksum/SHA384/reset/128 1239s ok 1427 /checksum/SHA384/reset/129 1239s ok 1428 /checksum/SHA384/reset/130 1239s ok 1429 /checksum/SHA384/reset/131 1239s ok 1430 /checksum/SHA384/reset/132 1239s ok 1431 /checksum/SHA384/reset/133 1239s ok 1432 /checksum/SHA384/reset/134 1239s ok 1433 /checksum/SHA384/reset/135 1239s ok 1434 /checksum/SHA384/reset/136 1239s ok 1435 /checksum/SHA384/reset/137 1239s ok 1436 /checksum/SHA384/reset/138 1239s ok 1437 /checksum/SHA384/reset/139 1239s ok 1438 /checksum/SHA384/reset/140 1239s ok 1439 /checksum/SHA384/reset/141 1239s ok 1440 /checksum/SHA384/reset/142 1239s ok 1441 /checksum/SHA384/reset/143 1239s ok 1442 /checksum/SHA384/reset/144 1239s ok 1443 /checksum/SHA384/reset/145 1239s ok 1444 /checksum/SHA384/reset/146 1239s ok 1445 /checksum/SHA384/reset/147 1239s ok 1446 /checksum/SHA384/reset/148 1239s ok 1447 /checksum/SHA384/reset/149 1239s ok 1448 /checksum/SHA384/reset/150 1239s ok 1449 /checksum/SHA384/reset/151 1239s ok 1450 /checksum/SHA384/reset/152 1239s ok 1451 /checksum/SHA384/reset/153 1239s ok 1452 /checksum/SHA384/reset/154 1239s ok 1453 /checksum/SHA384/reset/155 1239s ok 1454 /checksum/SHA384/reset/156 1239s ok 1455 /checksum/SHA384/reset/157 1239s ok 1456 /checksum/SHA384/reset/158 1239s ok 1457 /checksum/SHA384/reset/159 1239s ok 1458 /checksum/SHA384/reset/160 1239s ok 1459 /checksum/SHA384/reset/161 1239s ok 1460 /checksum/SHA384/reset/162 1239s ok 1461 /checksum/SHA384/reset/163 1239s ok 1462 /checksum/SHA384/reset/164 1239s ok 1463 /checksum/SHA384/reset/165 1239s ok 1464 /checksum/SHA384/reset/166 1239s ok 1465 /checksum/SHA384/reset/167 1239s ok 1466 /checksum/SHA384/reset/168 1239s ok 1467 /checksum/SHA384/reset/169 1239s ok 1468 /checksum/SHA384/reset/170 1239s ok 1469 /checksum/SHA384/reset/171 1239s ok 1470 /checksum/SHA384/reset/172 1239s ok 1471 /checksum/SHA384/reset/173 1239s ok 1472 /checksum/SHA384/reset/174 1239s ok 1473 /checksum/SHA384/reset/175 1239s ok 1474 /checksum/SHA384/reset/176 1239s ok 1475 /checksum/SHA384/reset/177 1239s ok 1476 /checksum/SHA384/reset/178 1239s ok 1477 /checksum/SHA384/reset/179 1239s ok 1478 /checksum/SHA384/reset/180 1239s ok 1479 /checksum/SHA384/reset/181 1239s ok 1480 /checksum/SHA384/reset/182 1239s ok 1481 /checksum/SHA384/reset/183 1239s # End of reset tests 1239s # End of SHA384 tests 1239s # Start of SHA512 tests 1239s ok 1482 /checksum/SHA512/0 1239s ok 1483 /checksum/SHA512/1 1239s ok 1484 /checksum/SHA512/2 1239s ok 1485 /checksum/SHA512/3 1239s ok 1486 /checksum/SHA512/4 1239s ok 1487 /checksum/SHA512/5 1239s ok 1488 /checksum/SHA512/6 1239s ok 1489 /checksum/SHA512/7 1239s ok 1490 /checksum/SHA512/8 1239s ok 1491 /checksum/SHA512/9 1239s ok 1492 /checksum/SHA512/10 1239s ok 1493 /checksum/SHA512/11 1239s ok 1494 /checksum/SHA512/12 1239s ok 1495 /checksum/SHA512/13 1239s ok 1496 /checksum/SHA512/14 1239s ok 1497 /checksum/SHA512/15 1239s ok 1498 /checksum/SHA512/16 1239s ok 1499 /checksum/SHA512/17 1239s ok 1500 /checksum/SHA512/18 1239s ok 1501 /checksum/SHA512/19 1239s ok 1502 /checksum/SHA512/20 1239s ok 1503 /checksum/SHA512/21 1239s ok 1504 /checksum/SHA512/22 1239s ok 1505 /checksum/SHA512/23 1239s ok 1506 /checksum/SHA512/24 1239s ok 1507 /checksum/SHA512/25 1239s ok 1508 /checksum/SHA512/26 1239s ok 1509 /checksum/SHA512/27 1239s ok 1510 /checksum/SHA512/28 1239s ok 1511 /checksum/SHA512/29 1239s ok 1512 /checksum/SHA512/30 1239s ok 1513 /checksum/SHA512/31 1239s ok 1514 /checksum/SHA512/32 1239s ok 1515 /checksum/SHA512/33 1239s ok 1516 /checksum/SHA512/34 1239s ok 1517 /checksum/SHA512/35 1239s ok 1518 /checksum/SHA512/36 1239s ok 1519 /checksum/SHA512/37 1239s ok 1520 /checksum/SHA512/38 1239s ok 1521 /checksum/SHA512/39 1239s ok 1522 /checksum/SHA512/40 1239s ok 1523 /checksum/SHA512/41 1239s ok 1524 /checksum/SHA512/42 1239s ok 1525 /checksum/SHA512/43 1239s ok 1526 /checksum/SHA512/44 1239s ok 1527 /checksum/SHA512/45 1239s ok 1528 /checksum/SHA512/46 1239s ok 1529 /checksum/SHA512/47 1239s ok 1530 /checksum/SHA512/48 1239s ok 1531 /checksum/SHA512/49 1239s ok 1532 /checksum/SHA512/50 1239s ok 1533 /checksum/SHA512/51 1239s ok 1534 /checksum/SHA512/52 1239s ok 1535 /checksum/SHA512/53 1239s ok 1536 /checksum/SHA512/54 1239s ok 1537 /checksum/SHA512/55 1239s ok 1538 /checksum/SHA512/56 1239s ok 1539 /checksum/SHA512/57 1239s ok 1540 /checksum/SHA512/58 1239s ok 1541 /checksum/SHA512/59 1239s ok 1542 /checksum/SHA512/60 1239s ok 1543 /checksum/SHA512/61 1239s ok 1544 /checksum/SHA512/62 1239s ok 1545 /checksum/SHA512/63 1239s ok 1546 /checksum/SHA512/64 1239s ok 1547 /checksum/SHA512/65 1239s ok 1548 /checksum/SHA512/66 1239s ok 1549 /checksum/SHA512/67 1239s ok 1550 /checksum/SHA512/68 1239s ok 1551 /checksum/SHA512/69 1239s ok 1552 /checksum/SHA512/70 1239s ok 1553 /checksum/SHA512/71 1239s ok 1554 /checksum/SHA512/72 1239s ok 1555 /checksum/SHA512/73 1239s ok 1556 /checksum/SHA512/74 1239s ok 1557 /checksum/SHA512/75 1239s ok 1558 /checksum/SHA512/76 1239s ok 1559 /checksum/SHA512/77 1239s ok 1560 /checksum/SHA512/78 1239s ok 1561 /checksum/SHA512/79 1239s ok 1562 /checksum/SHA512/80 1239s ok 1563 /checksum/SHA512/81 1239s ok 1564 /checksum/SHA512/82 1239s ok 1565 /checksum/SHA512/83 1239s ok 1566 /checksum/SHA512/84 1239s ok 1567 /checksum/SHA512/85 1239s ok 1568 /checksum/SHA512/86 1239s ok 1569 /checksum/SHA512/87 1239s ok 1570 /checksum/SHA512/88 1239s ok 1571 /checksum/SHA512/89 1239s ok 1572 /checksum/SHA512/90 1239s ok 1573 /checksum/SHA512/91 1239s ok 1574 /checksum/SHA512/92 1239s ok 1575 /checksum/SHA512/93 1239s ok 1576 /checksum/SHA512/94 1239s ok 1577 /checksum/SHA512/95 1239s ok 1578 /checksum/SHA512/96 1239s ok 1579 /checksum/SHA512/97 1239s ok 1580 /checksum/SHA512/98 1239s ok 1581 /checksum/SHA512/99 1239s ok 1582 /checksum/SHA512/100 1239s ok 1583 /checksum/SHA512/101 1239s ok 1584 /checksum/SHA512/102 1239s ok 1585 /checksum/SHA512/103 1239s ok 1586 /checksum/SHA512/104 1239s ok 1587 /checksum/SHA512/105 1239s ok 1588 /checksum/SHA512/106 1239s ok 1589 /checksum/SHA512/107 1239s ok 1590 /checksum/SHA512/108 1239s ok 1591 /checksum/SHA512/109 1239s ok 1592 /checksum/SHA512/110 1239s ok 1593 /checksum/SHA512/111 1239s ok 1594 /checksum/SHA512/112 1239s ok 1595 /checksum/SHA512/113 1239s ok 1596 /checksum/SHA512/114 1239s ok 1597 /checksum/SHA512/115 1239s ok 1598 /checksum/SHA512/116 1239s ok 1599 /checksum/SHA512/117 1239s ok 1600 /checksum/SHA512/118 1239s ok 1601 /checksum/SHA512/119 1239s ok 1602 /checksum/SHA512/120 1239s ok 1603 /checksum/SHA512/121 1239s ok 1604 /checksum/SHA512/122 1239s ok 1605 /checksum/SHA512/123 1239s ok 1606 /checksum/SHA512/124 1239s ok 1607 /checksum/SHA512/125 1239s ok 1608 /checksum/SHA512/126 1239s ok 1609 /checksum/SHA512/127 1239s ok 1610 /checksum/SHA512/128 1239s ok 1611 /checksum/SHA512/129 1239s ok 1612 /checksum/SHA512/130 1239s ok 1613 /checksum/SHA512/131 1239s ok 1614 /checksum/SHA512/132 1239s ok 1615 /checksum/SHA512/133 1239s ok 1616 /checksum/SHA512/134 1239s ok 1617 /checksum/SHA512/135 1239s ok 1618 /checksum/SHA512/136 1239s ok 1619 /checksum/SHA512/137 1239s ok 1620 /checksum/SHA512/138 1239s ok 1621 /checksum/SHA512/139 1239s ok 1622 /checksum/SHA512/140 1239s ok 1623 /checksum/SHA512/141 1239s ok 1624 /checksum/SHA512/142 1239s ok 1625 /checksum/SHA512/143 1239s ok 1626 /checksum/SHA512/144 1239s ok 1627 /checksum/SHA512/145 1239s ok 1628 /checksum/SHA512/146 1239s ok 1629 /checksum/SHA512/147 1239s ok 1630 /checksum/SHA512/148 1239s ok 1631 /checksum/SHA512/149 1239s ok 1632 /checksum/SHA512/150 1239s ok 1633 /checksum/SHA512/151 1239s ok 1634 /checksum/SHA512/152 1239s ok 1635 /checksum/SHA512/153 1239s ok 1636 /checksum/SHA512/154 1239s ok 1637 /checksum/SHA512/155 1239s ok 1638 /checksum/SHA512/156 1239s ok 1639 /checksum/SHA512/157 1239s ok 1640 /checksum/SHA512/158 1239s ok 1641 /checksum/SHA512/159 1239s ok 1642 /checksum/SHA512/160 1239s ok 1643 /checksum/SHA512/161 1239s ok 1644 /checksum/SHA512/162 1239s ok 1645 /checksum/SHA512/163 1239s ok 1646 /checksum/SHA512/164 1239s ok 1647 /checksum/SHA512/165 1239s ok 1648 /checksum/SHA512/166 1239s ok 1649 /checksum/SHA512/167 1239s ok 1650 /checksum/SHA512/168 1239s ok 1651 /checksum/SHA512/169 1239s ok 1652 /checksum/SHA512/170 1239s ok 1653 /checksum/SHA512/171 1239s ok 1654 /checksum/SHA512/172 1239s ok 1655 /checksum/SHA512/173 1239s ok 1656 /checksum/SHA512/174 1239s ok 1657 /checksum/SHA512/175 1239s ok 1658 /checksum/SHA512/176 1239s ok 1659 /checksum/SHA512/177 1239s ok 1660 /checksum/SHA512/178 1239s ok 1661 /checksum/SHA512/179 1239s ok 1662 /checksum/SHA512/180 1239s ok 1663 /checksum/SHA512/181 1239s ok 1664 /checksum/SHA512/182 1239s ok 1665 /checksum/SHA512/183 1239s ok 1666 /checksum/SHA512/string 1239s ok 1667 /checksum/SHA512/bytes 1239s # Start of reset tests 1239s ok 1668 /checksum/SHA512/reset/0 1239s ok 1669 /checksum/SHA512/reset/1 1239s ok 1670 /checksum/SHA512/reset/2 1239s ok 1671 /checksum/SHA512/reset/3 1239s ok 1672 /checksum/SHA512/reset/4 1239s ok 1673 /checksum/SHA512/reset/5 1239s ok 1674 /checksum/SHA512/reset/6 1239s ok 1675 /checksum/SHA512/reset/7 1239s ok 1676 /checksum/SHA512/reset/8 1239s ok 1677 /checksum/SHA512/reset/9 1239s ok 1678 /checksum/SHA512/reset/10 1239s ok 1679 /checksum/SHA512/reset/11 1239s ok 1680 /checksum/SHA512/reset/12 1239s ok 1681 /checksum/SHA512/reset/13 1239s ok 1682 /checksum/SHA512/reset/14 1239s ok 1683 /checksum/SHA512/reset/15 1239s ok 1684 /checksum/SHA512/reset/16 1239s ok 1685 /checksum/SHA512/reset/17 1239s ok 1686 /checksum/SHA512/reset/18 1239s ok 1687 /checksum/SHA512/reset/19 1239s ok 1688 /checksum/SHA512/reset/20 1239s ok 1689 /checksum/SHA512/reset/21 1239s ok 1690 /checksum/SHA512/reset/22 1239s ok 1691 /checksum/SHA512/reset/23 1239s ok 1692 /checksum/SHA512/reset/24 1239s ok 1693 /checksum/SHA512/reset/25 1239s ok 1694 /checksum/SHA512/reset/26 1239s ok 1695 /checksum/SHA512/reset/27 1239s ok 1696 /checksum/SHA512/reset/28 1239s ok 1697 /checksum/SHA512/reset/29 1239s ok 1698 /checksum/SHA512/reset/30 1239s ok 1699 /checksum/SHA512/reset/31 1239s ok 1700 /checksum/SHA512/reset/32 1239s ok 1701 /checksum/SHA512/reset/33 1239s ok 1702 /checksum/SHA512/reset/34 1239s ok 1703 /checksum/SHA512/reset/35 1239s ok 1704 /checksum/SHA512/reset/36 1239s ok 1705 /checksum/SHA512/reset/37 1239s ok 1706 /checksum/SHA512/reset/38 1239s ok 1707 /checksum/SHA512/reset/39 1239s ok 1708 /checksum/SHA512/reset/40 1239s ok 1709 /checksum/SHA512/reset/41 1239s ok 1710 /checksum/SHA512/reset/42 1239s ok 1711 /checksum/SHA512/reset/43 1239s ok 1712 /checksum/SHA512/reset/44 1239s ok 1713 /checksum/SHA512/reset/45 1239s ok 1714 /checksum/SHA512/reset/46 1239s ok 1715 /checksum/SHA512/reset/47 1239s ok 1716 /checksum/SHA512/reset/48 1239s ok 1717 /checksum/SHA512/reset/49 1239s ok 1718 /checksum/SHA512/reset/50 1239s ok 1719 /checksum/SHA512/reset/51 1239s ok 1720 /checksum/SHA512/reset/52 1239s ok 1721 /checksum/SHA512/reset/53 1239s ok 1722 /checksum/SHA512/reset/54 1239s ok 1723 /checksum/SHA512/reset/55 1239s ok 1724 /checksum/SHA512/reset/56 1239s ok 1725 /checksum/SHA512/reset/57 1239s ok 1726 /checksum/SHA512/reset/58 1239s ok 1727 /checksum/SHA512/reset/59 1239s ok 1728 /checksum/SHA512/reset/60 1239s ok 1729 /checksum/SHA512/reset/61 1239s ok 1730 /checksum/SHA512/reset/62 1239s ok 1731 /checksum/SHA512/reset/63 1239s ok 1732 /checksum/SHA512/reset/64 1239s ok 1733 /checksum/SHA512/reset/65 1239s ok 1734 /checksum/SHA512/reset/66 1239s ok 1735 /checksum/SHA512/reset/67 1239s ok 1736 /checksum/SHA512/reset/68 1239s ok 1737 /checksum/SHA512/reset/69 1239s ok 1738 /checksum/SHA512/reset/70 1239s ok 1739 /checksum/SHA512/reset/71 1239s ok 1740 /checksum/SHA512/reset/72 1239s ok 1741 /checksum/SHA512/reset/73 1239s ok 1742 /checksum/SHA512/reset/74 1239s ok 1743 /checksum/SHA512/reset/75 1239s ok 1744 /checksum/SHA512/reset/76 1239s ok 1745 /checksum/SHA512/reset/77 1239s ok 1746 /checksum/SHA512/reset/78 1239s ok 1747 /checksum/SHA512/reset/79 1239s ok 1748 /checksum/SHA512/reset/80 1239s ok 1749 /checksum/SHA512/reset/81 1239s ok 1750 /checksum/SHA512/reset/82 1239s ok 1751 /checksum/SHA512/reset/83 1239s ok 1752 /checksum/SHA512/reset/84 1239s ok 1753 /checksum/SHA512/reset/85 1239s ok 1754 /checksum/SHA512/reset/86 1239s ok 1755 /checksum/SHA512/reset/87 1239s ok 1756 /checksum/SHA512/reset/88 1239s ok 1757 /checksum/SHA512/reset/89 1239s ok 1758 /checksum/SHA512/reset/90 1239s ok 1759 /checksum/SHA512/reset/91 1239s ok 1760 /checksum/SHA512/reset/92 1239s ok 1761 /checksum/SHA512/reset/93 1239s ok 1762 /checksum/SHA512/reset/94 1239s ok 1763 /checksum/SHA512/reset/95 1239s ok 1764 /checksum/SHA512/reset/96 1239s ok 1765 /checksum/SHA512/reset/97 1239s ok 1766 /checksum/SHA512/reset/98 1239s ok 1767 /checksum/SHA512/reset/99 1239s ok 1768 /checksum/SHA512/reset/100 1239s ok 1769 /checksum/SHA512/reset/101 1239s ok 1770 /checksum/SHA512/reset/102 1239s ok 1771 /checksum/SHA512/reset/103 1239s ok 1772 /checksum/SHA512/reset/104 1239s ok 1773 /checksum/SHA512/reset/105 1239s ok 1774 /checksum/SHA512/reset/106 1239s ok 1775 /checksum/SHA512/reset/107 1239s ok 1776 /checksum/SHA512/reset/108 1239s ok 1777 /checksum/SHA512/reset/109 1239s ok 1778 /checksum/SHA512/reset/110 1239s ok 1779 /checksum/SHA512/reset/111 1239s ok 1780 /checksum/SHA512/reset/112 1239s ok 1781 /checksum/SHA512/reset/113 1239s ok 1782 /checksum/SHA512/reset/114 1239s ok 1783 /checksum/SHA512/reset/115 1239s ok 1784 /checksum/SHA512/reset/116 1239s ok 1785 /checksum/SHA512/reset/117 1239s ok 1786 /checksum/SHA512/reset/118 1239s ok 1787 /checksum/SHA512/reset/119 1239s ok 1788 /checksum/SHA512/reset/120 1239s ok 1789 /checksum/SHA512/reset/121 1239s ok 1790 /checksum/SHA512/reset/122 1239s ok 1791 /checksum/SHA512/reset/123 1239s ok 1792 /checksum/SHA512/reset/124 1239s ok 1793 /checksum/SHA512/reset/125 1239s ok 1794 /checksum/SHA512/reset/126 1239s ok 1795 /checksum/SHA512/reset/127 1239s ok 1796 /checksum/SHA512/reset/128 1239s ok 1797 /checksum/SHA512/reset/129 1239s ok 1798 /checksum/SHA512/reset/130 1239s ok 1799 /checksum/SHA512/reset/131 1239s ok 1800 /checksum/SHA512/reset/132 1239s ok 1801 /checksum/SHA512/reset/133 1239s ok 1802 /checksum/SHA512/reset/134 1239s ok 1803 /checksum/SHA512/reset/135 1239s ok 1804 /checksum/SHA512/reset/136 1239s ok 1805 /checksum/SHA512/reset/137 1239s ok 1806 /checksum/SHA512/reset/138 1239s ok 1807 /checksum/SHA512/reset/139 1239s ok 1808 /checksum/SHA512/reset/140 1239s ok 1809 /checksum/SHA512/reset/141 1239s ok 1810 /checksum/SHA512/reset/142 1239s ok 1811 /checksum/SHA512/reset/143 1239s ok 1812 /checksum/SHA512/reset/144 1239s ok 1813 /checksum/SHA512/reset/145 1239s ok 1814 /checksum/SHA512/reset/146 1239s ok 1815 /checksum/SHA512/reset/147 1239s ok 1816 /checksum/SHA512/reset/148 1239s ok 1817 /checksum/SHA512/reset/149 1239s ok 1818 /checksum/SHA512/reset/150 1239s ok 1819 /checksum/SHA512/reset/151 1239s ok 1820 /checksum/SHA512/reset/152 1239s ok 1821 /checksum/SHA512/reset/153 1239s ok 1822 /checksum/SHA512/reset/154 1239s ok 1823 /checksum/SHA512/reset/155 1239s ok 1824 /checksum/SHA512/reset/156 1239s ok 1825 /checksum/SHA512/reset/157 1239s ok 1826 /checksum/SHA512/reset/158 1239s ok 1827 /checksum/SHA512/reset/159 1239s ok 1828 /checksum/SHA512/reset/160 1239s ok 1829 /checksum/SHA512/reset/161 1239s ok 1830 /checksum/SHA512/reset/162 1239s ok 1831 /checksum/SHA512/reset/163 1239s ok 1832 /checksum/SHA512/reset/164 1239s ok 1833 /checksum/SHA512/reset/165 1239s ok 1834 /checksum/SHA512/reset/166 1239s ok 1835 /checksum/SHA512/reset/167 1239s ok 1836 /checksum/SHA512/reset/168 1239s ok 1837 /checksum/SHA512/reset/169 1239s ok 1838 /checksum/SHA512/reset/170 1239s ok 1839 /checksum/SHA512/reset/171 1239s ok 1840 /checksum/SHA512/reset/172 1239s ok 1841 /checksum/SHA512/reset/173 1239s ok 1842 /checksum/SHA512/reset/174 1239s ok 1843 /checksum/SHA512/reset/175 1239s ok 1844 /checksum/SHA512/reset/176 1239s ok 1845 /checksum/SHA512/reset/177 1239s ok 1846 /checksum/SHA512/reset/178 1239s ok 1847 /checksum/SHA512/reset/179 1239s ok 1848 /checksum/SHA512/reset/180 1239s ok 1849 /checksum/SHA512/reset/181 1239s ok 1850 /checksum/SHA512/reset/182 1239s ok 1851 /checksum/SHA512/reset/183 1239s # End of reset tests 1239s # End of SHA512 tests 1239s # End of checksum tests 1239s ok - glib/checksum.test 1239s # Running test: glib/g-file-info-filesystem-readonly.test 1239s ok - glib/g-file-info-filesystem-readonly.test 1239s # Running test: glib/cxx-20.test 1239s TAP version 14 1239s # random seed: R02S019ba0d2c384d45d49a38e64a0ad2b81 1239s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=787731 1239s 1..2 1239s # Start of g-file-info-filesystem-readonly tests 1239s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/home 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/cache 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-config2 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/config 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/system-data2 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/data 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/state 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro/.dirs/runtime 1239s ok 1 /g-file-info-filesystem-readonly/test-fs-ro # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1239s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/home 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/cache 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config1:/tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-config2 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/config 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data1:/tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/system-data2 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/data 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/state 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_g-file-info-filesystem-readonly_0U9IK3/g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor/.dirs/runtime 1239s ok 2 /g-file-info-filesystem-readonly/test-fs-ro-with-mount-monitor # SKIP 'bindfs' and 'fusermount' commands are needed to run this test 1239s # End of g-file-info-filesystem-readonly tests 1239s TAP version 14 1239s # random seed: R02Sce80302f16a26636ddecea814aadb7c0 1239s 1..2 1239s # Start of gtask tests 1239s # 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. 1239s ok 1 /gtask/name 1239s # Start of name tests 1239s # 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. 1239s ok 2 /gtask/name/macro-wrapper 1239s # End of name tests 1239s # End of gtask tests 1239s ok - glib/cxx-20.test 1239s # Running test: glib/union-info.test 1239s TAP version 14 1239s # random seed: R02S0e1325e25d3be0600dc110dde4d63790 1239s 1..2 1239s # Start of union-info tests 1239s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_MAGJK3/union-info/basic/.dirs/home 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_MAGJK3/union-info/basic/.dirs/cache 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_MAGJK3/union-info/basic/.dirs/system-config1:/tmp/test_union-info_MAGJK3/union-info/basic/.dirs/system-config2 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_MAGJK3/union-info/basic/.dirs/config 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_MAGJK3/union-info/basic/.dirs/system-data1:/tmp/test_union-info_MAGJK3/union-info/basic/.dirs/system-data2 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_MAGJK3/union-info/basic/.dirs/data 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_MAGJK3/union-info/basic/.dirs/state 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_MAGJK3/union-info/basic/.dirs/runtime 1239s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1239s # /union-info/basic summary: Test basic properties of GIUnionInfo 1239s ok 1 /union-info/basic 1239s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_union-info_MAGJK3/union-info/methods/.dirs/home 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_union-info_MAGJK3/union-info/methods/.dirs/cache 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_union-info_MAGJK3/union-info/methods/.dirs/system-config1:/tmp/test_union-info_MAGJK3/union-info/methods/.dirs/system-config2 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_union-info_MAGJK3/union-info/methods/.dirs/config 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_union-info_MAGJK3/union-info/methods/.dirs/system-data1:/tmp/test_union-info_MAGJK3/union-info/methods/.dirs/system-data2 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_union-info_MAGJK3/union-info/methods/.dirs/data 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_union-info_MAGJK3/union-info/methods/.dirs/state 1239s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_union-info_MAGJK3/union-info/methods/.dirs/runtime 1239s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1239s # /union-info/methods summary: Test retrieving methods from GIUnionInfo 1239s ok 2 /union-info/methods 1239s # End of union-info tests 1239s ok - glib/union-info.test 1239s # Running test: glib/portal-support-env-var.test 1239s TAP version 14 1239s # random seed: R02Safdedf3d81192c36d0e9f613088363e4 1239s 1..1 1239s # Start of portal-support tests 1239s ok 1 /portal-support/env-var 1239s # End of portal-support tests 1239s ok - glib/portal-support-env-var.test 1239s # Running test: glib/qdata.test 1239s TAP version 14 1239s # random seed: R02S0bd93115fe68a766fa25bb05dddefc14 1239s 1..2 1239s # Start of qdata tests 1239s # Executing: glib/qdata.test 1239s ok - glib/qdata.test 1239s ok 1 /qdata/threaded 1239s ok 2 /qdata/dup 1239s # End of qdata tests 1239s # Running test: glib/memchunk.test 1239s TAP version 14 1239s # random seed: R02S8acdec81a835a28598104818653868af 1239s 1..1 1239s # Start of memchunk tests 1239s ok 1 /memchunk/basic 1239s # End of memchunk tests 1239s ok - glib/memchunk.test 1239s # Running test: glib/relation.test 1239s TAP version 14 1239s # random seed: R02S365cacd0758d6f00399441150d88e232 1239s 1..1 1239s # Start of glib tests 1239s ok 1 /glib/relation 1239s # End of glib tests 1239s ok - glib/relation.test 1239s # Running test: glib/gvariant.test 1239s TAP version 14 1239s # random seed: R02S6a44cfe9fdfde1831f20678e06ce60b0 1239s 1..69 1239s # Start of gvariant tests 1239s ok 1 /gvariant/type 1239s ok 2 /gvariant/typeinfo 1239s ok 3 /gvariant/string 1239s ok 4 /gvariant/utf8 1239s ok 5 /gvariant/utf8-new-strings 1239s ok 6 /gvariant/containers 1239s # slow test /gvariant/containers executed in 0.89 secs 1239s ok 7 /gvariant/format-strings 1239s ok 8 /gvariant/invalid-varargs 1239s ok 9 /gvariant/varargs 1239s ok 10 /gvariant/valist 1239s ok 11 /gvariant/builder-memory 1239s ok 12 /gvariant/hashing 1239s ok 13 /gvariant/byteswap 1240s ok 14 /gvariant/parser 1240s ok 15 /gvariant/parse-failures 1240s ok 16 /gvariant/parse-positional 1240s ok 17 /gvariant/floating 1240s ok 18 /gvariant/bytestring 1240s ok 19 /gvariant/lookup-value 1240s ok 20 /gvariant/lookup 1240s ok 21 /gvariant/compare 1240s ok 22 /gvariant/equal 1240s ok 23 /gvariant/fixed-array 1240s ok 24 /gvariant/check-format-string 1240s ok 25 /gvariant/checksum-basic 1240s ok 26 /gvariant/checksum-nested 1240s ok 27 /gvariant/gbytes 1240s ok 28 /gvariant/print-context 1240s ok 29 /gvariant/error-quark 1240s ok 30 /gvariant/stack-builder-init 1240s ok 31 /gvariant/stack-builder-init-static 1240s ok 32 /gvariant/stack-builder-init-unset 1240s ok 33 /gvariant/stack-dict-init 1240s ok 34 /gvariant/unaligned-construction 1240s # Start of type tests 1240s # Start of string-scan tests 1240s # Start of recursion tests 1240s ok 35 /gvariant/type/string-scan/recursion/tuple 1240s ok 36 /gvariant/type/string-scan/recursion/array 1240s # End of recursion tests 1240s # End of string-scan tests 1240s # End of type tests 1240s # Start of serialiser tests 1240s ok 37 /gvariant/serialiser/maybe 1240s ok 38 /gvariant/serialiser/array 1240s ok 39 /gvariant/serialiser/tuple 1240s ok 40 /gvariant/serialiser/variant 1240s ok 41 /gvariant/serialiser/strings 1243s # Executing: glib/gvariant.test 1248s # Executing: glib/gvariant.test 1250s ok 42 /gvariant/serialiser/byteswap 1250s # slow test /gvariant/serialiser/byteswap executed in 9.47 secs 1250s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1865 1250s # /gvariant/serialiser/children summary: Test that getting a child variant before and after serialisation of the parent works 1250s ok 43 /gvariant/serialiser/children 1250s # Start of byteswap tests 1250s ok 44 /gvariant/serialiser/byteswap/zero-sized 1250s # End of byteswap tests 1250s # Start of fuzz tests 1253s # Executing: glib/gvariant.test 1258s ok 45 /gvariant/serialiser/fuzz/1% 1258s # slow test /gvariant/serialiser/fuzz/1% executed in 8.05 secs 1258s # Executing: glib/gvariant.test 1258s ok 46 /gvariant/serialiser/fuzz/5% 1258s # slow test /gvariant/serialiser/fuzz/5% executed in 0.62 secs 1259s ok 47 /gvariant/serialiser/fuzz/9% 1259s ok 48 /gvariant/serialiser/fuzz/13% 1259s ok 49 /gvariant/serialiser/fuzz/17% 1259s # End of fuzz tests 1259s # End of serialiser tests 1259s # Start of utf8 tests 1259s # Start of subprocess tests 1259s # End of subprocess tests 1259s # End of utf8 tests 1259s # Start of varargs tests 1259s # Start of subprocess tests 1259s # End of subprocess tests 1259s # End of varargs tests 1259s # Start of byteswap tests 1259s # /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. 1259s ok 50 /gvariant/byteswap/non-normal-non-aligned 1259s # End of byteswap tests 1259s # Start of parser tests 1259s ok 51 /gvariant/parser/integer-bounds 1259s ok 52 /gvariant/parser/recursion 1259s # Start of recursion tests 1259s ok 53 /gvariant/parser/recursion/typedecls 1259s # /gvariant/parser/recursion/maybes summary: Test that nested maybes are handled correctly when parsing text-form variants 1259s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2782 1259s # Text form 0: @mmmu 5 1259s # Text form 1: @mmmas ['hello'] 1259s # Text form 2: @mmmu just just nothing 1259s # Text form 3: @mmmas just just nothing 1259s # Text form 4: @mmmu just nothing 1259s # Text form 5: @mmmas just nothing 1259s # Text form 6: @mmmu nothing 1259s # Text form 7: @mmmas nothing 1259s ok 54 /gvariant/parser/recursion/maybes 1259s # End of recursion tests 1259s # End of parser tests 1259s # Start of parse tests 1259s # Start of subprocess tests 1259s # End of subprocess tests 1259s # End of parse tests 1259s # Start of normal-checking tests 1259s ok 55 /gvariant/normal-checking/tuples 1259s ok 56 /gvariant/normal-checking/array-offsets 1259s ok 57 /gvariant/normal-checking/array-offsets2 1259s ok 58 /gvariant/normal-checking/tuple-offsets 1259s ok 59 /gvariant/normal-checking/tuple-offsets2 1259s ok 60 /gvariant/normal-checking/tuple-offsets3 1259s ok 61 /gvariant/normal-checking/tuple-offsets4 1259s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2840 1259s ok 62 /gvariant/normal-checking/tuple-offsets5 1259s ok 63 /gvariant/normal-checking/empty-object-path 1259s # Start of array-offsets tests 1259s ok 64 /gvariant/normal-checking/array-offsets/overlapped 1259s ok 65 /gvariant/normal-checking/array-offsets/minimal-sized 1259s # End of array-offsets tests 1259s # Start of tuple-offsets tests 1259s ok 66 /gvariant/normal-checking/tuple-offsets/minimal-sized 1259s # End of tuple-offsets tests 1259s # End of normal-checking tests 1259s # Start of recursion-limits tests 1259s ok 67 /gvariant/recursion-limits/variant-in-variant 1259s ok 68 /gvariant/recursion-limits/array-in-variant 1259s # End of recursion-limits tests 1259s # End of gvariant tests 1259s # Start of gvarianttype tests 1259s ok 69 /gvarianttype/hash 1259s # End of gvarianttype tests 1259s ok - glib/gvariant.test 1259s # Running test: glib/autoptr.test 1259s TAP version 14 1259s ok - glib/autoptr.test 1259s # random seed: R02S44fa2a4e5b48493dc503734453182ba4 1259s 1..6 1259s # Start of autoptr tests 1259s ok 1 /autoptr/autoptr 1259s ok 2 /autoptr/autoptr_steal 1259s ok 3 /autoptr/autolist 1259s ok 4 /autoptr/autoslist 1259s ok 5 /autoptr/autoqueue 1259s ok 6 /autoptr/autoclass 1259s # End of autoptr tests 1259s # Running test: glib/cmph-bdz.test 1259s TAP version 14 1259s ok - glib/cmph-bdz.test 1259s # Running test: glib/power-profile-monitor.test 1259s ok - glib/power-profile-monitor.test 1259s # Running test: glib/data-output-stream.test 1259s ok - glib/data-output-stream.test 1259s # Running test: glib/converter-stream.test 1259s # random seed: R02Se65b85d76eb0873748861a1090b23b97 1259s 1..2 1259s # Start of cmph-bdz tests 1259s ok 1 /cmph-bdz/search 1259s ok 2 /cmph-bdz/search-packed 1259s # End of cmph-bdz tests 1259s TAP version 14 1259s # random seed: R02S7bb9b2b35a91afa2ddf53f3bf9980fd8 1259s 1..1 1259s # Start of power-profile-monitor tests 1259s # GLib-GIO-DEBUG: Failed to initialize portal (GPowerProfileMonitorPortal) for gio-power-profile-monitor: Not using portals 1259s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dbus (GPowerProfileMonitorDBus) for ‘gio-power-profile-monitor’ 1259s ok 1 /power-profile-monitor/default 1259s # End of power-profile-monitor tests 1259s TAP version 14 1259s # random seed: R02Sc1940f03fa0cb42553dcae67a01bce07 1259s 1..7 1259s # Start of data-output-stream tests 1259s ok 1 /data-output-stream/basic 1259s ok 2 /data-output-stream/write-lines-LF 1259s ok 3 /data-output-stream/write-lines-CR 1259s ok 4 /data-output-stream/write-lines-CR-LF 1259s ok 5 /data-output-stream/write-int 1259s ok 6 /data-output-stream/seek 1259s ok 7 /data-output-stream/truncate 1259s # End of data-output-stream tests 1259s TAP version 14 1259s # random seed: R02S20a39192271aa8c3d7839cee96b3344e 1259s 1..17 1259s # Start of converter tests 1259s ok 1 /converter/basics 1259s # End of converter tests 1259s # Start of converter-input-stream tests 1259s ok 2 /converter-input-stream/expander 1259s ok 3 /converter-input-stream/compressor 1259s # Start of truncation tests 1260s ok 4 /converter-input-stream/truncation/zlib 1260s ok 5 /converter-input-stream/truncation/gzip 1260s ok 6 /converter-input-stream/truncation/raw 1260s # End of truncation tests 1260s # Start of charset tests 1260s ok 7 /converter-input-stream/charset/utf8->latin1 1260s ok 8 /converter-input-stream/charset/latin1->utf8 1260s ok 9 /converter-input-stream/charset/fallbacks 1260s # End of charset tests 1260s # End of converter-input-stream tests 1260s # Start of converter-output-stream tests 1260s # Start of roundtrip tests 1260s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1260s ok 10 /converter-output-stream/roundtrip/zlib-0 1260s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1260s ok 11 /converter-output-stream/roundtrip/zlib-9 1260s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1260s ok 12 /converter-output-stream/roundtrip/gzip-0 1260s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1261s ok 13 /converter-output-stream/roundtrip/gzip-9 1261s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1261s ok 14 /converter-output-stream/roundtrip/raw-0 1261s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=619945 1261s ok 15 /converter-output-stream/roundtrip/raw-9 1261s # End of roundtrip tests 1261s # End of converter-output-stream tests 1261s # Start of converter-stream tests 1261s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1261s # GLib-GIO-DEBUG: g_socket_client_connect_async: starting new g_socket_client_connect_async() with GTask 0xada50912ab0 and GSocketClientAsyncConnectData 0xada5090b210 1261s # GLib-GIO-DEBUG: GSocketClient: Starting new address enumeration 1261s # GLib-GIO-DEBUG: GSocketClient: Address enumeration succeeded 1261s # GLib-GIO-DEBUG: g_socket_client_enumerator_callback: starting connection attempt 0xada50551ba0 for GSocketClientAsyncConnectData 0xada5090b210 1261s # GLib-GIO-DEBUG: GSocketClient: Starting TCP connection attempt 1261s # GLib-GIO-DEBUG: GSocketClient: TCP connection successful 1261s # GLib-GIO-DEBUG: GSocketClient: Starting application layer connection 1261s # GLib-GIO-DEBUG: GSocketClient: Connection successful! 1261s ok - glib/converter-stream.test 1261s ok 16 /converter-stream/pollable 1261s ok 17 /converter-stream/leftover 1261s # End of converter-stream tests 1261s # Running test: glib/memory-settings-backend.test 1261s TAP version 14 1261s # random seed: R02Sededdfec30fd6b4b3e5720a4afe25ca0 1261s 1..1 1261s # Start of memory-settings-backend tests 1261s ok 1 /memory-settings-backend/extension-point-registered 1261s # End of memory-settings-backend tests 1261s ok - glib/memory-settings-backend.test 1261s # Running test: glib/dir.test 1261s TAP version 14 1261s # random seed: R02Sd036c065c9854d784964f2f2f5315d0e 1261s 1..3 1261s # Start of dir tests 1261s ok 1 /dir/read 1261s ok 2 /dir/nonexisting 1261s # /dir/refcounting summary: Test refcounting interactions with g_dir_close() 1261s ok 3 /dir/refcounting 1261s # End of dir tests 1261s ok - glib/dir.test 1261s # Running test: glib/signal-handler.test 1261s TAP version 14 1261s # random seed: R02S2a4a8b20f8b3f506200824323148fd84 1261s 1..7 1261s # Start of signal tests 1261s # Start of handler tests 1261s # min perf: connected 1 handlers in 0.000 seconds 1261s ok 1 /signal/handler/connect-many 1261s # min perf: disconnected 1 handlers in 0.000 seconds 1261s ok 2 /signal/handler/disconnect-many-ordered 1261s # min perf: disconnected 1 handlers in 0.000 seconds 1261s ok 3 /signal/handler/disconnect-many-inverse 1261s # min perf: disconnected 1 handlers in 0.000 seconds 1261s ok 4 /signal/handler/disconnect-many-random 1261s # min perf: disconnected 1 handlers in 0.000 seconds 1261s ok 5 /signal/handler/disconnect-2-signals 1261s # min perf: disconnected 1 handlers in 0.000 seconds 1261s ok 6 /signal/handler/disconnect-2-objects 1261s # min perf: blocked and unblocked 1 handlers in 0.000 seconds 1261s ok 7 /signal/handler/block-many 1261s # End of handler tests 1261s # End of signal tests 1261s ok - glib/signal-handler.test 1261s # Running test: glib/node.test 1261s TAP version 14 1261s # random seed: R02S44a0034233f4e98101545d04d585b97c 1261s ok - glib/node.test 1261s # Running test: glib/utf8-performance.test 1261s 1..6 1261s # Start of node tests 1261s ok 1 /node/allocation 1261s ok 2 /node/construction 1261s ok 3 /node/traversal 1261s ok 4 /node/misc 1261s ok 5 /node/unlink 1261s ok 6 /node/copy 1261s # End of node tests 1261s TAP version 14 1261s # random seed: R02S43bfc9f4ca27c91f34613a13317d4078 1261s 1..36 1261s # Start of utf8 tests 1261s # Start of perf tests 1261s # Start of get_char tests 1261s # max perf: 0.9 MB/s 1261s ok 1 /utf8/perf/get_char/ascii 1261s # max perf: inf MB/s 1261s ok 2 /utf8/perf/get_char/latin1 1261s # max perf: inf MB/s 1261s ok 3 /utf8/perf/get_char/cyrillic 1261s # max perf: inf MB/s 1261s ok 4 /utf8/perf/get_char/han 1261s # End of get_char tests 1261s # Start of get_char-backwards tests 1261s # max perf: inf MB/s 1261s ok 5 /utf8/perf/get_char-backwards/ascii 1261s # max perf: 67.0 MB/s 1261s ok 6 /utf8/perf/get_char-backwards/latin1 1261s # max perf: 160.0 MB/s 1261s ok 7 /utf8/perf/get_char-backwards/cyrillic 1261s # max perf: 156.0 MB/s 1261s ok 8 /utf8/perf/get_char-backwards/han 1261s # End of get_char-backwards tests 1261s # Start of get_char_validated tests 1261s # max perf: inf MB/s 1261s ok 9 /utf8/perf/get_char_validated/ascii 1261s # max perf: 67.0 MB/s 1261s ok 10 /utf8/perf/get_char_validated/latin1 1261s # max perf: 160.0 MB/s 1261s ok 11 /utf8/perf/get_char_validated/cyrillic 1261s # max perf: inf MB/s 1261s ok 12 /utf8/perf/get_char_validated/han 1261s # End of get_char_validated tests 1261s # Start of utf8_to_ucs4 tests 1261s # max perf: 43.0 MB/s 1261s ok 13 /utf8/perf/utf8_to_ucs4/ascii 1261s # max perf: inf MB/s 1261s ok 14 /utf8/perf/utf8_to_ucs4/latin1 1261s # max perf: 160.0 MB/s 1261s ok 15 /utf8/perf/utf8_to_ucs4/cyrillic 1261s # max perf: 156.0 MB/s 1261s ok 16 /utf8/perf/utf8_to_ucs4/han 1261s # End of utf8_to_ucs4 tests 1261s # Start of utf8_to_ucs4-sized tests 1261s # max perf: inf MB/s 1261s ok 17 /utf8/perf/utf8_to_ucs4-sized/ascii 1261s # max perf: 67.0 MB/s 1261s ok 18 /utf8/perf/utf8_to_ucs4-sized/latin1 1261s # max perf: 160.0 MB/s 1261s ok 19 /utf8/perf/utf8_to_ucs4-sized/cyrillic 1261s # max perf: 156.0 MB/s 1261s ok 20 /utf8/perf/utf8_to_ucs4-sized/han 1261s # End of utf8_to_ucs4-sized tests 1261s # Start of utf8_to_ucs4_fast tests 1261s # max perf: inf MB/s 1261s ok 21 /utf8/perf/utf8_to_ucs4_fast/ascii 1261s # max perf: inf MB/s 1261s ok 22 /utf8/perf/utf8_to_ucs4_fast/latin1 1261s # max perf: 160.0 MB/s 1261s ok 23 /utf8/perf/utf8_to_ucs4_fast/cyrillic 1261s # max perf: 156.0 MB/s 1261s ok 24 /utf8/perf/utf8_to_ucs4_fast/han 1261s # End of utf8_to_ucs4_fast tests 1261s # Start of utf8_to_ucs4_fast-sized tests 1261s # max perf: inf MB/s 1261s ok 25 /utf8/perf/utf8_to_ucs4_fast-sized/ascii 1261s # max perf: 67.0 MB/s 1261s ok 26 /utf8/perf/utf8_to_ucs4_fast-sized/latin1 1261s # max perf: 160.0 MB/s 1261s ok 27 /utf8/perf/utf8_to_ucs4_fast-sized/cyrillic 1261s # max perf: inf MB/s 1261s ok 28 /utf8/perf/utf8_to_ucs4_fast-sized/han 1261s # End of utf8_to_ucs4_fast-sized tests 1261s # Start of utf8_validate tests 1261s # max perf: 43.0 MB/s 1261s ok 29 /utf8/perf/utf8_validate/ascii 1261s # max perf: 67.0 MB/s 1261s ok 30 /utf8/perf/utf8_validate/latin1 1261s # max perf: 160.0 MB/s 1261s ok 31 /utf8/perf/utf8_validate/cyrillic 1261s # max perf: 156.0 MB/s 1261s ok 32 /utf8/perf/utf8_validate/han 1261s # End of utf8_validate tests 1261s # Start of utf8_validate-sized tests 1261s # max perf: inf MB/s 1261s ok 33 /utf8/perf/utf8_validate-sized/ascii 1261s # max perf: inf MB/s 1261s ok 34 /utf8/perf/utf8_validate-sized/latin1 1261s # max perf: 160.0 MB/s 1261s ok 35 /utf8/perf/utf8_validate-sized/cyrillic 1261s # max perf: 156.0 MB/s 1261s ok 36 /utf8/perf/utf8_validate-sized/han 1261s # End of utf8_validate-sized tests 1261s # End of perf tests 1261s # End of utf8 tests 1261s ok - glib/utf8-performance.test 1261s # Running test: glib/gio-tool.py.test 1261s TAP version 13 1261s ok 1 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_folder 1261s # gio: /usr/bin/gio 1261s # tmpdir: /tmp/tmp9tb52gay 1261s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmp9tb52gay/folder/desktop.entry'] 1261s # Working Directory: /tmp/tmp9tb52gay/folder 1261s # Return code: 0 1261s # Output: 1261s # /tmp/tmp9tb52gay/folder/desktop.entry 1261s # Error: 1261s ok 2 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_parent 1261s # gio: /usr/bin/gio 1261s # tmpdir: /tmp/tmpk8ljs67t 1261s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpk8ljs67t/folder/desktop.entry'] 1261s # Working Directory: /tmp/tmpk8ljs67t 1261s # Return code: 0 1261s # Output: 1261s # /tmp/tmpk8ljs67t/folder/desktop.entry 1261s # Error: 1261s ok 3 __main__.TestGioLaunchExpandsDesktopEntry.test_absolute_from_sibling 1261s # gio: /usr/bin/gio 1261s # tmpdir: /tmp/tmpr6p8xobe 1261s # Running: ['/usr/bin/gio', 'launch', '/tmp/tmpr6p8xobe/folder/desktop.entry'] 1261s # Working Directory: /tmp/tmpr6p8xobe/sibling 1261s # Return code: 0 1261s # Output: 1261s # /tmp/tmpr6p8xobe/folder/desktop.entry 1261s # Error: 1261s ok 4 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_folder 1261s # gio: /usr/bin/gio 1261s # tmpdir: /tmp/tmp4zk3voct 1261s # Running: ['/usr/bin/gio', 'launch', 'desktop.entry'] 1261s # Working Directory: /tmp/tmp4zk3voct/folder 1261s # Return code: 0 1261s # Output: 1261s # /tmp/tmp4zk3voct/folder/desktop.entry 1261s # Error: 1261s ok 5 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_parent 1261s # gio: /usr/bin/gio 1261s # tmpdir: /tmp/tmpdookd6sx 1261s # Running: ['/usr/bin/gio', 'launch', 'folder/desktop.entry'] 1261s # Working Directory: /tmp/tmpdookd6sx 1261s # Return code: 0 1261s # Output: 1261s # /tmp/tmpdookd6sx/folder/desktop.entry 1261s # Error: 1261s ok 6 __main__.TestGioLaunchExpandsDesktopEntry.test_relative_from_sibling 1261s # gio: /usr/bin/gio 1261s # tmpdir: /tmp/tmpqomg53b5 1261s # Running: ['/usr/bin/gio', 'launch', '../folder/desktop.entry'] 1261s # Working Directory: /tmp/tmpqomg53b5/sibling 1261s # Return code: 0 1261s # Output: 1261s # /tmp/tmpqomg53b5/folder/desktop.entry 1261s # Error: 1261s ok 7 __main__.TestGioTool.test_help 1261s # gio: /usr/bin/gio 1261s # tmpdir: /tmp/tmpa2nn489b 1261s # Running: ['/usr/bin/gio', '--help'] 1261s # Return code: 0 1261s # Output: 1261s # Usage: 1261s # gio COMMAND [ARGS…] 1261s # 1261s # Commands: 1261s # help Print help 1261s # version Print version 1261s # cat Concatenate files to standard output 1261s # copy Copy one or more files 1261s # info Show information about locations 1261s # launch Launch an application from a desktop file 1261s # list List the contents of locations 1261s # mime Get or set the handler for a mimetype 1261s # mkdir Create directories 1261s # monitor Monitor files and directories for changes 1261s # mount Mount or unmount the locations 1261s # move Move one or more files 1261s # open Open files with the default application 1261s # rename Rename a file 1261s # remove Delete one or more files 1261s # save Read from standard input and save 1261s # set Set a file attribute 1261s # trash Move files or directories to the trash 1261s # tree Lists the contents of locations in a tree 1261s # 1261s # Use “gio help COMMAND” to get detailed help. 1261s # Error: 1261s # 1261s # Running: ['/usr/bin/gio', 'help'] 1261s # Return code: 0 1261s # Output: 1261s # Usage: 1261s # gio COMMAND [ARGS…] 1261s # 1261s # Commands: 1261s # help Print help 1261s # version Print version 1261s # cat Concatenate files to standard output 1261s # copy Copy one or more files 1261s # info Show information about locations 1261s # launch Launch an application from a desktop file 1261s # list List the contents of locations 1261s # mime Get or set the handler for a mimetype 1261s # mkdir Create directories 1261s # monitor Monitor files and directories for changes 1261s # mount Mount or unmount the locations 1261s # move Move one or more files 1261s # open Open files with the default application 1261s # rename Rename a file 1261s # remove Delete one or more files 1261s # save Read from standard input and save 1261s # set Set a file attribute 1261s # trash Move files or directories to the trash 1261s # tree Lists the contents of locations in a tree 1261s # 1261s # Use “gio help COMMAND” to get detailed help. 1261s # Error: 1261s ok 8 __main__.TestGioTool.test_info_non_default_attributes 1261s # gio: /usr/bin/gio 1261s # tmpdir: /tmp/tmpfrzvlusj 1261s # Running: ['/usr/bin/gio', 'info', '--attributes=standard::content-type', '/tmp/tmpfrzvlusj/tmpj0bzquta'] 1261s # Return code: 0 1261s # Output: 1261s # uri: file:///tmp/tmpfrzvlusj/tmpj0bzquta 1261s # local path: /tmp/tmpfrzvlusj/tmpj0bzquta 1261s # unix mount: /dev/vda1 / ext4 rw,relatime,discard,errors=remount-ro,commit=30 1261s # attributes: 1261s # standard::content-type: application/x-zerosize 1261s # Error: 1261s ok 9 __main__.TestGioTool.test_no_args 1261s # gio: /usr/bin/gio 1261s # tmpdir: /tmp/tmpidzi8176 1261s # Running: ['/usr/bin/gio'] 1261s # Return code: 1 1261s # Output: 1261s # 1261s # Error: 1261s # Usage: 1261s # gio COMMAND [ARGS…] 1261s # 1261s # Commands: 1261s # help Print help 1261s # version Print version 1261s # cat Concatenate files to standard output 1261s # copy Copy one or more files 1261s # info Show information about locations 1261s # launch Launch an application from a desktop file 1261s # list List the contents of locations 1261s # mime Get or set the handler for a mimetype 1261s # mkdir Create directories 1261s # monitor Monitor files and directories for changes 1261s # mount Mount or unmount the locations 1261s # move Move one or more files 1261s # open Open files with the default application 1261s # rename Rename a file 1261s # remove Delete one or more files 1261s # save Read from standard input and save 1261s # set Set a file attribute 1261s # trash Move files or directories to the trash 1261s # tree Lists the contents of locations in a tree 1261s # 1261s # Use “gio help COMMAND” to get detailed help. 1261s 1..9 1261s ok - glib/gio-tool.py.test 1261s # Running test: glib/bitlock.test 1261s TAP version 14 1261s # random seed: R02S9c4f5b86c88c6d0723c57a2e7a40d35b 1261s 1..2 1261s # Start of bitlock tests 1261s # Start of performance tests 1261s # max perf: iterations per second 1261s ok 1 /bitlock/performance/uncontended 1261s ok - glib/bitlock.test 1261s # Running test: glib/ifaceproperties.test 1261s ok 2 /bitlock/performance/parallel 1261s # End of performance tests 1261s # End of bitlock tests 1261s TAP version 14 1261s # random seed: R02S682ba9028abed120c4051a00a06affa8 1261s 1..7 1261s # Start of interface tests 1261s # Start of properties tests 1261s ok 1 /interface/properties/set 1261s ok 2 /interface/properties/notify 1261s ok 3 /interface/properties/find-overridden 1261s ok 4 /interface/properties/list-overridden 1261s ok 5 /interface/properties/find-interface 1261s ok 6 /interface/properties/list-interface 1261s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=637738 1261s ok 7 /interface/properties/not-overridden 1261s # End of properties tests 1261s # End of interface tests 1261s ok - glib/ifaceproperties.test 1261s # Running test: glib/gdbus-proxy-threads.test 1261s TAP version 14 1261s # random seed: R02Scc628cf7541d38d8fca43c9a099bf20c 1261s 1..1 1261s # Start of gdbus tests 1261s # Start of proxy tests 1261s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-threads_LHRMK3/gdbus/proxy/vs-threads/.dirs/home 1261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-threads_LHRMK3/gdbus/proxy/vs-threads/.dirs/cache 1261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-threads_LHRMK3/gdbus/proxy/vs-threads/.dirs/system-config1:/tmp/test_gdbus-proxy-threads_LHRMK3/gdbus/proxy/vs-threads/.dirs/system-config2 1261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-threads_LHRMK3/gdbus/proxy/vs-threads/.dirs/config 1261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-threads_LHRMK3/gdbus/proxy/vs-threads/.dirs/system-data1:/tmp/test_gdbus-proxy-threads_LHRMK3/gdbus/proxy/vs-threads/.dirs/system-data2 1261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-threads_LHRMK3/gdbus/proxy/vs-threads/.dirs/data 1261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-threads_LHRMK3/gdbus/proxy/vs-threads/.dirs/state 1261s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-threads_LHRMK3/gdbus/proxy/vs-threads/.dirs/runtime 1262s ok 1 /gdbus/proxy/vs-threads 1262s # slow test /gdbus/proxy/vs-threads executed in 0.89 secs 1262s # End of proxy tests 1262s # End of gdbus tests 1262s cleaning up pid 37324 1262s ok - glib/gdbus-proxy-threads.test 1262s # Running test: glib/portal-support-snap-classic.test 1262s ok - glib/portal-support-snap-classic.test 1262s TAP version 14 1262s # random seed: R02Sca8ec502e74eb390f6b511972ff7d064 1262s 1..3 1262s # Start of portal-support tests 1262s # Start of snap-classic tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/no-snapctl/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/no-snapctl/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/no-snapctl/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/no-snapctl/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/no-snapctl/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/no-snapctl/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/no-snapctl/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/no-snapctl/.dirs/runtime 1262s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/no-snapctl: No such file or directory 1262s ok 1 /portal-support/snap-classic/no-snapctl 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/none/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/none/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/none/.dirs/system-config1:/tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/none/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/none/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/none/.dirs/system-data1:/tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/none/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/none/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/none/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/none/.dirs/runtime 1262s # Created snap.yaml in /tmp/test_portal-support-snap-classic_FTM8J3/meta/snap.yaml 1262s # Created snapctl in /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/none/.dirs/runtime/snapctl 1262s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/none: No such file or directory 1262s ok 2 /portal-support/snap-classic/none 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/all/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/all/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/all/.dirs/system-config1:/tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/all/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/all/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/all/.dirs/system-data1:/tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/all/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/all/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/all/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/all/.dirs/runtime 1262s # Created snap.yaml in /tmp/test_portal-support-snap-classic_FTM8J3/meta/snap.yaml 1262s # Created snapctl in /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/all/.dirs/runtime/snapctl 1262s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_FTM8J3/portal-support/snap-classic/all: No such file or directory 1262s ok 3 /portal-support/snap-classic/all 1262s # End of snap-classic tests 1262s # End of portal-support tests 1262s Unable to clean up temporary directory /tmp/test_portal-support-snap-classic_FTM8J3: No such file or directory 1262s # Running test: glib/trash.test 1262s ok - glib/trash.test 1262s # Running test: glib/gdbus-proxy-well-known-name.test 1262s TAP version 14 1262s # random seed: R02S88ccde9abac5ac0fdfd589a228903529 1262s 1..3 1262s # Start of trash tests 1262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/251 1262s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1262s # File: /tmp/test-trashSYM6J3 (parent st_dev: 64769) 1262s # Home: /home/ubuntu (st_dev: 64769) 1262s ok 1 /trash/not-supported # SKIP The file has to be on another filesystem than the home trash to run this test 1262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1522 1262s ok 2 /trash/symlinks # SKIP Directory '/home/ubuntu/.local' does not exist 1262s ok 3 /trash/long-filename 1262s # End of trash tests 1262s TAP version 14 1262s # random seed: R02S78eeffbab79c25170e503cd9af1ce194 1262s 1..1 1262s # Start of gdbus tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-proxy-well-known-name_JDQ6J3/gdbus/proxy-well-known-name/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-proxy-well-known-name_JDQ6J3/gdbus/proxy-well-known-name/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-proxy-well-known-name_JDQ6J3/gdbus/proxy-well-known-name/.dirs/system-config1:/tmp/test_gdbus-proxy-well-known-name_JDQ6J3/gdbus/proxy-well-known-name/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-proxy-well-known-name_JDQ6J3/gdbus/proxy-well-known-name/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-proxy-well-known-name_JDQ6J3/gdbus/proxy-well-known-name/.dirs/system-data1:/tmp/test_gdbus-proxy-well-known-name_JDQ6J3/gdbus/proxy-well-known-name/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-proxy-well-known-name_JDQ6J3/gdbus/proxy-well-known-name/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-proxy-well-known-name_JDQ6J3/gdbus/proxy-well-known-name/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-proxy-well-known-name_JDQ6J3/gdbus/proxy-well-known-name/.dirs/runtime 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1262s ok 1 /gdbus/proxy-well-known-name 1262s # End of gdbus tests 1262s ok - glib/gdbus-proxy-well-known-name.test 1262s # Running test: glib/gobject-private.test 1262s ok - glib/gobject-private.test 1262s # Running test: glib/testing.test 1262s TAP version 14 1262s # random seed: R02S004d6581027b20d6d5295d6f28d18ce7 1262s 1..3 1262s # Start of private tests 1262s ok 1 /private/instance 1262s ok 2 /private/derived-instance 1262s ok 3 /private/mixed-derived-instance 1262s # End of private tests 1262s TAP version 14 1262s # random seed: R02S59eb04b698b053d9d4a970650161fbda 1262s 1..1 1262s # Start of assert tests 1262s ok 1 /assert/finalize_object 1262s # Start of finalize_object tests 1262s # Start of subprocess tests 1262s # End of subprocess tests 1262s # End of finalize_object tests 1262s # End of assert tests 1262s ok - glib/testing.test 1262s # Running test: glib/testfilemonitor.test 1262s TAP version 14 1262s # random seed: R02S033495d57dc39213c03a7dbc4508d860 1262s 1..8 1262s # Start of monitor tests 1262s ok 1 /monitor/atomic-replace # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1262s ok 2 /monitor/file-changes # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1262s ok 3 /monitor/dir-monitor # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1262s ok 4 /monitor/dir-not-existent # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1262s ok 5 /monitor/cross-dir-moves # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1262s ok 6 /monitor/finalize-in-callback # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1262s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1262s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1262s ok - glib/testfilemonitor.test 1262s # Running test: glib/utils-c-99.test 1262s ok 7 /monitor/root # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1262s # Start of file tests 1262s ok 8 /monitor/file/hard-links # SKIP https://gitlab.gnome.org/GNOME/glib/issues/1634 1262s # End of file tests 1262s # End of monitor tests 1262s TAP version 14 1262s # random seed: R02Sc28c1cd7c1ce9a7d0643395c0525a1a0 1262s 1..41 1262s # Start of utils tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/language-names/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/language-names/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/language-names/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/language-names/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/language-names/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/language-names/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/language-names/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/language-names/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/language-names/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/language-names/.dirs/runtime 1262s ok 1 /utils/language-names 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/locale-variants/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/locale-variants/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/locale-variants/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/locale-variants/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/locale-variants/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/locale-variants/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/locale-variants/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/locale-variants/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/locale-variants/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/locale-variants/.dirs/runtime 1262s # Testing locale ‘en’ 1262s # Testing locale ‘sr@latin’ 1262s # Testing locale ‘fr_BE’ 1262s # Testing locale ‘sr_SR@latin’ 1262s # Testing locale ‘sr_SR@latin.UTF-8’ 1262s # Testing locale ‘sr@latin_invalid’ 1262s # Testing locale ‘sr.UTF-8@latin’ 1262s # Testing locale ‘sr.UTF-8_latin’ 1262s # Testing locale ‘sr.UTF-8@latin_invalid’ 1262s ok 2 /utils/locale-variants 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/version/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/version/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/version/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/version/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/version/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/version/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/version/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/version/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/version/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/version/.dirs/runtime 1262s ok 3 /utils/version 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/appname/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/appname/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/appname/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/appname/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/appname/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/appname/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/appname/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/appname/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/appname/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/appname/.dirs/runtime 1262s ok 4 /utils/appname 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/prgname-thread-safety/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/prgname-thread-safety/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/prgname-thread-safety/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/prgname-thread-safety/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/prgname-thread-safety/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/prgname-thread-safety/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/prgname-thread-safety/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/prgname-thread-safety/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/prgname-thread-safety/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/prgname-thread-safety/.dirs/runtime 1262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/847 1262s # /utils/prgname-thread-safety summary: Test that threads racing to get and set the program name always receive a valid program name. 1262s ok 5 /utils/prgname-thread-safety 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/tmpdir/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/tmpdir/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/tmpdir/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/tmpdir/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/tmpdir/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/tmpdir/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/tmpdir/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/tmpdir/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/tmpdir/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/tmpdir/.dirs/runtime 1262s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=627969 1262s # /utils/tmpdir summary: Test that g_get_tmp_dir() returns a correct default if TMPDIR is set to the empty string 1262s Unable to clean up temporary directory /tmp/test_utils-c-99_O8Y6J3/utils/tmpdir: No such file or directory 1262s ok 6 /utils/tmpdir 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/basic_bits/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/basic_bits/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/basic_bits/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/basic_bits/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/basic_bits/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/basic_bits/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/basic_bits/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/basic_bits/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/basic_bits/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/basic_bits/.dirs/runtime 1262s ok 7 /utils/basic_bits 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/bits/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/bits/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/bits/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/bits/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/bits/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/bits/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/bits/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/bits/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/bits/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/bits/.dirs/runtime 1262s ok 8 /utils/bits 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/swap/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/swap/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/swap/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/swap/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/swap/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/swap/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/swap/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/swap/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/swap/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/swap/.dirs/runtime 1262s ok 9 /utils/swap 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/find-program/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/find-program/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/find-program/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/find-program/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/find-program/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/find-program/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/find-program/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/find-program/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/find-program/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/find-program/.dirs/runtime 1262s ok 10 /utils/find-program 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/find-program-for-path/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/find-program-for-path/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/find-program-for-path/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/find-program-for-path/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/find-program-for-path/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/find-program-for-path/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/find-program-for-path/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/find-program-for-path/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/find-program-for-path/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/find-program-for-path/.dirs/runtime 1262s ok 11 /utils/find-program-for-path 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/debug/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/debug/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/debug/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/debug/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/debug/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/debug/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/debug/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/debug/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/debug/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/debug/.dirs/runtime 1262s Unable to clean up temporary directory /tmp/test_utils-c-99_O8Y6J3/utils/debug: No such file or directory 1262s ok 12 /utils/debug 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/codeset/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/codeset/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/codeset/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/codeset/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/codeset/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/codeset/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/codeset/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/codeset/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/codeset/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/codeset/.dirs/runtime 1262s ok 13 /utils/codeset 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/codeset2/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/codeset2/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/codeset2/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/codeset2/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/codeset2/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/codeset2/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/codeset2/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/codeset2/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/codeset2/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/codeset2/.dirs/runtime 1262s Unable to clean up temporary directory /tmp/test_utils-c-99_O8Y6J3/utils/codeset2: No such file or directory 1262s ok 14 /utils/codeset2 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/console-charset/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/console-charset/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/console-charset/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/console-charset/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/console-charset/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/console-charset/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/console-charset/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/console-charset/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/console-charset/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/console-charset/.dirs/runtime 1262s ok 15 /utils/console-charset 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/gettext/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/gettext/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/gettext/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/gettext/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/gettext/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/gettext/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/gettext/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/gettext/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/gettext/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/gettext/.dirs/runtime 1262s ok 16 /utils/gettext 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/username/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/username/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/username/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/username/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/username/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/username/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/username/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/username/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/username/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/username/.dirs/runtime 1262s ok 17 /utils/username 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/realname/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/realname/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/realname/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/realname/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/realname/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/realname/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/realname/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/realname/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/realname/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/realname/.dirs/runtime 1262s ok 18 /utils/realname 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/hostname/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/hostname/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/hostname/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/hostname/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/hostname/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/hostname/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/hostname/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/hostname/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/hostname/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/hostname/.dirs/runtime 1262s ok 19 /utils/hostname 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/os-info/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/os-info/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/os-info/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/os-info/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/os-info/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/os-info/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/os-info/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/os-info/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/os-info/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/os-info/.dirs/runtime 1262s # NAME: Ubuntu 1262s ok 20 /utils/os-info 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/.dirs/runtime 1262s ok 21 /utils/clear-pointer 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer-cast/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer-cast/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer-cast/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer-cast/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer-cast/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer-cast/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer-cast/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer-cast/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer-cast/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer-cast/.dirs/runtime 1262s ok 22 /utils/clear-pointer-cast 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/take-pointer/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/take-pointer/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/take-pointer/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/take-pointer/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/take-pointer/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/take-pointer/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/take-pointer/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/take-pointer/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/take-pointer/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/take-pointer/.dirs/runtime 1262s ok 23 /utils/take-pointer 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-source/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-source/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/clear-source/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/clear-source/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-source/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/clear-source/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/clear-source/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-source/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-source/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/clear-source/.dirs/runtime 1262s ok 24 /utils/clear-source 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/misc-mem/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/misc-mem/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/misc-mem/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/misc-mem/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/misc-mem/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/misc-mem/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/misc-mem/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/misc-mem/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/misc-mem/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/misc-mem/.dirs/runtime 1262s ok 25 /utils/misc-mem 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/.dirs/runtime 1262s # /utils/aligned-mem summary: Aligned memory allocator 1262s # Alignment must not be zero 1262s # Alignment must be a power of two 1262s # Alignment must be a multiple of sizeof(void*) 1262s ok 26 /utils/aligned-mem 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/free-sized/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/free-sized/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/free-sized/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/free-sized/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/free-sized/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/free-sized/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/free-sized/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/free-sized/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/free-sized/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/free-sized/.dirs/runtime 1262s # /utils/free-sized summary: Check that g_free_sized() works 1262s ok 27 /utils/free-sized 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/nullify/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/nullify/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/nullify/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/nullify/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/nullify/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/nullify/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/nullify/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/nullify/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/nullify/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/nullify/.dirs/runtime 1262s ok 28 /utils/nullify 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/atexit/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/atexit/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/atexit/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/atexit/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/atexit/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/atexit/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/atexit/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/atexit/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/atexit/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/atexit/.dirs/runtime 1262s Unable to clean up temporary directory /tmp/test_utils-c-99_O8Y6J3/utils/atexit: No such file or directory 1262s ok 29 /utils/atexit 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/check-setuid/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/check-setuid/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/check-setuid/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/check-setuid/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/check-setuid/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/check-setuid/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/check-setuid/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/check-setuid/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/check-setuid/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/check-setuid/.dirs/runtime 1262s ok 30 /utils/check-setuid 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/int-limits/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/int-limits/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/int-limits/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/int-limits/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/int-limits/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/int-limits/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/int-limits/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/int-limits/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/int-limits/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/int-limits/.dirs/runtime 1262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1663 1262s ok 31 /utils/int-limits 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-list/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-list/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/clear-list/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/clear-list/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-list/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/clear-list/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/clear-list/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-list/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-list/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/clear-list/.dirs/runtime 1262s ok 32 /utils/clear-list 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-slist/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-slist/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/clear-slist/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/clear-slist/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-slist/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/clear-slist/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/clear-slist/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-slist/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-slist/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/clear-slist/.dirs/runtime 1262s ok 33 /utils/clear-slist 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/steal-handle-id/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/steal-handle-id/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/steal-handle-id/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/steal-handle-id/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/steal-handle-id/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/steal-handle-id/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/steal-handle-id/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/steal-handle-id/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/steal-handle-id/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/steal-handle-id/.dirs/runtime 1262s ok 34 /utils/steal-handle-id 1262s # Start of user-special-dirs tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/desktop/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/desktop/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/desktop/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/desktop/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/desktop/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/desktop/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/desktop/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/desktop/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/desktop/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/desktop/.dirs/runtime 1262s ok 35 /utils/user-special-dirs/desktop 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/load-unlocked/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/load-unlocked/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/load-unlocked/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/load-unlocked/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/load-unlocked/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/load-unlocked/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/load-unlocked/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/load-unlocked/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/load-unlocked/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/load-unlocked/.dirs/runtime 1262s # /utils/user-special-dirs/load-unlocked summary: Tests error and corner cases of user-dirs.dirs content. 1262s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/4800 1262s Unable to clean up temporary directory /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/load-unlocked: No such file or directory 1262s ok 36 /utils/user-special-dirs/load-unlocked 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/reload-leaks/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/reload-leaks/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/reload-leaks/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/reload-leaks/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/reload-leaks/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/reload-leaks/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/reload-leaks/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/reload-leaks/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/reload-leaks/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/reload-leaks/.dirs/runtime 1262s # /utils/user-special-dirs/reload-leaks summary: Tests that old user special dirs values are deliberately leaked on reload. 1262s Unable to clean up temporary directory /tmp/test_utils-c-99_O8Y6J3/utils/user-special-dirs/reload-leaks: No such file or directory 1262s ok 37 /utils/user-special-dirs/reload-leaks 1262s # End of user-special-dirs tests 1262s # Start of clear-pointer tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/side-effects/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/side-effects/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/side-effects/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/side-effects/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/side-effects/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/side-effects/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/side-effects/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/side-effects/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/side-effects/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/clear-pointer/side-effects/.dirs/runtime 1262s ok 38 /utils/clear-pointer/side-effects 1262s # End of clear-pointer tests 1262s # Start of aligned-mem tests 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/alignment/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/alignment/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/alignment/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/alignment/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/alignment/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/alignment/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/alignment/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/alignment/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/alignment/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/alignment/.dirs/runtime 1262s # /utils/aligned-mem/alignment summary: Check that g_aligned_alloc() returns a correctly aligned pointer 1262s ok 39 /utils/aligned-mem/alignment 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/zeroed/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/zeroed/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/zeroed/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/zeroed/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/zeroed/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/zeroed/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/zeroed/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/zeroed/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/zeroed/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/zeroed/.dirs/runtime 1262s # /utils/aligned-mem/zeroed summary: Check that g_aligned_alloc0() zeroes out its allocation 1262s ok 40 /utils/aligned-mem/zeroed 1262s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/free-sized/.dirs/home 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/free-sized/.dirs/cache 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/free-sized/.dirs/system-config1:/tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/free-sized/.dirs/system-config2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/free-sized/.dirs/config 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/free-sized/.dirs/system-data1:/tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/free-sized/.dirs/system-data2 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/free-sized/.dirs/data 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/free-sized/.dirs/state 1262s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_utils-c-99_O8Y6J3/utils/aligned-mem/free-sized/.dirs/runtime 1262s # /utils/aligned-mem/free-sized summary: Check that g_aligned_free_sized() works 1262s ok 41 /utils/aligned-mem/free-sized 1262s # Start of subprocess tests 1262s # End of subprocess tests 1262s # End of aligned-mem tests 1262s # End of utils tests 1262s ok - glib/utils-c-99.test 1262s # Running test: glib/power-profile-monitor-dbus.test 1262s TAP version 13 1262s ok 1 __main__.TestPowerProfileMonitor.test_power_profile_power_saver_enabled 1262s 1..1 1262s ok - glib/power-profile-monitor-dbus.test 1262s # Running test: glib/atomic-c-11.test 1262s TAP version 14 1262s # random seed: R02S47a7395ba4a91fc094f5a0ac44a0c984 1262s 1..2 1262s # Start of atomic tests 1262s ok 1 /atomic/types 1263s ok 2 /atomic/threaded 1263s # End of atomic tests 1263s TAP version 14 1263s # random seed: R02S2d44f39144bce42371e823dcc33b42c5 1263s 1..11 1263s # Start of GObject tests 1263s # Start of BindingGroup tests 1263s ok 1 /GObject/BindingGroup/invalid 1263s ok 2 /GObject/BindingGroup/default 1263s ok 3 /GObject/BindingGroup/bidirectional 1263s ok 4 /GObject/BindingGroup/transform 1263s ok 5 /GObject/BindingGroup/transform-closures 1263s ok 6 /GObject/BindingGroup/same-object 1263s ok 7 /GObject/BindingGroup/weak-ref-source 1263s ok 8 /GObject/BindingGroup/weak-ref-target 1263s ok 9 /GObject/BindingGroup/properties 1263s ok 10 /GObject/BindingGroup/weak-notify-no-bindings 1263s ok 11 /GObject/BindingGroup/empty-closures 1263s # End of BindingGroup tests 1263s # End of GObject tests 1263s ok - glib/atomic-c-11.test 1263s # Running test: glib/bindinggroup.test 1263s ok - glib/bindinggroup.test 1263s # Running test: glib/memory-monitor-psi.test 1263s ok - glib/memory-monitor-psi.test 1263s # Running test: glib/accumulator.test 1263s ok - glib/accumulator.test 1263s # Running test: glib/hook.test 1263s ok - glib/hook.test 1263s # Running test: glib/signals-refcount2.test 1263s TAP version 14 1263s # random seed: R02S430dfbc9d882c9293c48c6c2571b3416 1263s 1..1 1263s # Start of memory-monitor-psi tests 1263s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_memory-monitor-psi_ONZIK3/memory-monitor-psi/receive-signal/.dirs/home 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_memory-monitor-psi_ONZIK3/memory-monitor-psi/receive-signal/.dirs/cache 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_memory-monitor-psi_ONZIK3/memory-monitor-psi/receive-signal/.dirs/system-config1:/tmp/test_memory-monitor-psi_ONZIK3/memory-monitor-psi/receive-signal/.dirs/system-config2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_memory-monitor-psi_ONZIK3/memory-monitor-psi/receive-signal/.dirs/config 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_memory-monitor-psi_ONZIK3/memory-monitor-psi/receive-signal/.dirs/system-data1:/tmp/test_memory-monitor-psi_ONZIK3/memory-monitor-psi/receive-signal/.dirs/system-data2 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_memory-monitor-psi_ONZIK3/memory-monitor-psi/receive-signal/.dirs/data 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_memory-monitor-psi_ONZIK3/memory-monitor-psi/receive-signal/.dirs/state 1263s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_memory-monitor-psi_ONZIK3/memory-monitor-psi/receive-signal/.dirs/runtime 1263s # GLib-GIO-DEBUG: Write trigger some 70000 2000000 1263s # GLib-GIO-DEBUG: Write trigger some 100000 2000000 1263s # GLib-GIO-DEBUG: Write trigger full 100000 2000000 1263s # GLib-GIO-DEBUG: Send low memory signal with warning level 0 1263s # GLib-GIO-DEBUG: Send low memory signal with warning level 1 1263s # GLib-GIO-DEBUG: Send low memory signal with warning level 2 1263s ok 1 /memory-monitor-psi/receive-signal 1263s # End of memory-monitor-psi tests 1263s TAP version 14 1263s # random seed: R02S1ebffd59b7406ec41e2297b7731e222e 1263s 1..1 1263s # Start of gobject tests 1263s ok 1 /gobject/accumulator 1263s # End of gobject tests 1263s TAP version 14 1263s # random seed: R02Sf37e4a556684eb8431699114c27c7efd 1263s 1..2 1263s # Start of hook tests 1263s ok 1 /hook/basics 1263s ok 2 /hook/corner-cases 1263s # End of hook tests 1263s TAP version 14 1263s # random seed: R02S362c7f26881ed01ff8a1f494f4e40390 1263s 1..1 1263s # Start of gobject tests 1263s # Start of refcount tests 1263s # init 0x81cd697d4a0 1263s # 1263s # init 0x81cd6975580 1263s # 1263s # Executing: glib/signals-refcount2.test 1268s ok - glib/signals-refcount2.test 1268s # dispose 0x81cd697d4a0! 1268s # 1268s # dispose 0x81cd6975580! 1268s # 1268s ok 1 /gobject/refcount/signals 1268s # slow test /gobject/refcount/signals executed in 5.00 secs 1268s # End of refcount tests 1268s # End of gobject tests 1268s # Running test: glib/bookmarkfile.test 1268s TAP version 14 1268s # random seed: R02S64edb4aa30ae8bfdc18f2c16d74f7391 1268s 1..96 1268s # Start of bookmarks tests 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/load-from-data-dirs/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/load-from-data-dirs/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/load-from-data-dirs/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/load-from-data-dirs/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/load-from-data-dirs/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/load-from-data-dirs/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/load-from-data-dirs/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/load-from-data-dirs/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/load-from-data-dirs/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/load-from-data-dirs/.dirs/runtime 1268s ok 1 /bookmarks/load-from-data-dirs 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/to-file/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/to-file/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/to-file/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/to-file/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/to-file/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/to-file/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/to-file/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/to-file/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/to-file/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/to-file/.dirs/runtime 1268s # Roundtrip from newly created bookmark file /tmp/test_bookmarkfile_7Y1JK3/bookmarkfile-test-GU2JK3.xbel 1268s # Roundtrip from a valid bookmark file 1268s ok 2 /bookmarks/to-file 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/move-item/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/move-item/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/move-item/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/move-item/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/move-item/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/move-item/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/move-item/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/move-item/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/move-item/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/move-item/.dirs/runtime 1268s ok 3 /bookmarks/move-item 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/corner-cases/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/corner-cases/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/corner-cases/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/corner-cases/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/corner-cases/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/corner-cases/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/corner-cases/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/corner-cases/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/corner-cases/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/corner-cases/.dirs/runtime 1268s ok 4 /bookmarks/corner-cases 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/misc/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/misc/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/misc/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/misc/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/misc/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/misc/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/misc/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/misc/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/misc/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/misc/.dirs/runtime 1268s ok 5 /bookmarks/misc 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/deprecated/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/deprecated/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/deprecated/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/deprecated/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/deprecated/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/deprecated/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/deprecated/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/deprecated/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/deprecated/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/deprecated/.dirs/runtime 1268s ok 6 /bookmarks/deprecated 1268s # Start of parse tests 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-23.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-23.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-23.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-23.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-23.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-23.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-23.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-23.xbel/.dirs/runtime 1268s ok 7 /bookmarks/parse/fail-23.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-25.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-25.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-25.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-25.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-25.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-25.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-25.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-25.xbel/.dirs/runtime 1268s ok 8 /bookmarks/parse/fail-25.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-03.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-03.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-03.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-03.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-03.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-03.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-03.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-03.xbel/.dirs/runtime 1268s ok 9 /bookmarks/parse/valid-03.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-28.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-28.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-28.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-28.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-28.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-28.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-28.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-28.xbel/.dirs/runtime 1268s ok 10 /bookmarks/parse/fail-28.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-19.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-19.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-19.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-19.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-19.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-19.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-19.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-19.xbel/.dirs/runtime 1268s ok 11 /bookmarks/parse/fail-19.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-29.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-29.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-29.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-29.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-29.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-29.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-29.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-29.xbel/.dirs/runtime 1268s ok 12 /bookmarks/parse/fail-29.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-18.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-18.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-18.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-18.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-18.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-18.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-18.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-18.xbel/.dirs/runtime 1268s ok 13 /bookmarks/parse/fail-18.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-39.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-39.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-39.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-39.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-39.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-39.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-39.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-39.xbel/.dirs/runtime 1268s ok 14 /bookmarks/parse/fail-39.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-30.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-30.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-30.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-30.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-30.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-30.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-30.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-30.xbel/.dirs/runtime 1268s ok 15 /bookmarks/parse/fail-30.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-06.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-06.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-06.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-06.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-06.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-06.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-06.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-06.xbel/.dirs/runtime 1268s ok 16 /bookmarks/parse/fail-06.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-08.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-08.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-08.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-08.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-08.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-08.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-08.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-08.xbel/.dirs/runtime 1268s ok 17 /bookmarks/parse/fail-08.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-22.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-22.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-22.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-22.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-22.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-22.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-22.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-22.xbel/.dirs/runtime 1268s ok 18 /bookmarks/parse/fail-22.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-40.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-40.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-40.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-40.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-40.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-40.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-40.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-40.xbel/.dirs/runtime 1268s ok 19 /bookmarks/parse/fail-40.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-36.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-36.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-36.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-36.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-36.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-36.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-36.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-36.xbel/.dirs/runtime 1268s ok 20 /bookmarks/parse/fail-36.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-05.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-05.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-05.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-05.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-05.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-05.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-05.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-05.xbel/.dirs/runtime 1268s ok 21 /bookmarks/parse/fail-05.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-26.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-26.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-26.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-26.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-26.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-26.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-26.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-26.xbel/.dirs/runtime 1268s ok 22 /bookmarks/parse/fail-26.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-02.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-02.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-02.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-02.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-02.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-02.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-02.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-02.xbel/.dirs/runtime 1268s ok 23 /bookmarks/parse/valid-02.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-24.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-24.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-24.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-24.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-24.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-24.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-24.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-24.xbel/.dirs/runtime 1268s ok 24 /bookmarks/parse/fail-24.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-31.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-31.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-31.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-31.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-31.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-31.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-31.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-31.xbel/.dirs/runtime 1268s ok 25 /bookmarks/parse/fail-31.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-27.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-27.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-27.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-27.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-27.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-27.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-27.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-27.xbel/.dirs/runtime 1268s ok 26 /bookmarks/parse/fail-27.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-17.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-17.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-17.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-17.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-17.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-17.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-17.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-17.xbel/.dirs/runtime 1268s ok 27 /bookmarks/parse/fail-17.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-21.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-21.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-21.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-21.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-21.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-21.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-21.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-21.xbel/.dirs/runtime 1268s ok 28 /bookmarks/parse/fail-21.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-32.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-32.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-32.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-32.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-32.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-32.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-32.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-32.xbel/.dirs/runtime 1268s ok 29 /bookmarks/parse/fail-32.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-20.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-20.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-20.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-20.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-20.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-20.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-20.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-20.xbel/.dirs/runtime 1268s ok 30 /bookmarks/parse/fail-20.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-03.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-03.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-03.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-03.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-03.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-03.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-03.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-03.xbel/.dirs/runtime 1268s ok 31 /bookmarks/parse/fail-03.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-37.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-37.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-37.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-37.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-37.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-37.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-37.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-37.xbel/.dirs/runtime 1268s ok 32 /bookmarks/parse/fail-37.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-07.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-07.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-07.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-07.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-07.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-07.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-07.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-07.xbel/.dirs/runtime 1268s ok 33 /bookmarks/parse/fail-07.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-16.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-16.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-16.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-16.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-16.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-16.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-16.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-16.xbel/.dirs/runtime 1268s ok 34 /bookmarks/parse/fail-16.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-34.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-34.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-34.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-34.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-34.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-34.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-34.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-34.xbel/.dirs/runtime 1268s ok 35 /bookmarks/parse/fail-34.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-10.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-10.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-10.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-10.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-10.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-10.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-10.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-10.xbel/.dirs/runtime 1268s ok 36 /bookmarks/parse/fail-10.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-38.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-38.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-38.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-38.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-38.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-38.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-38.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-38.xbel/.dirs/runtime 1268s ok 37 /bookmarks/parse/fail-38.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-13.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-13.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-13.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-13.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-13.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-13.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-13.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-13.xbel/.dirs/runtime 1268s ok 38 /bookmarks/parse/fail-13.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-04.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-04.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-04.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-04.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-04.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-04.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-04.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-04.xbel/.dirs/runtime 1268s ok 39 /bookmarks/parse/fail-04.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-01.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-01.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-01.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-01.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-01.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-01.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-01.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-01.xbel/.dirs/runtime 1268s ok 40 /bookmarks/parse/fail-01.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-09.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-09.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-09.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-09.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-09.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-09.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-09.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-09.xbel/.dirs/runtime 1268s ok 41 /bookmarks/parse/fail-09.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-35.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-35.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-35.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-35.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-35.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-35.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-35.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-35.xbel/.dirs/runtime 1268s ok 42 /bookmarks/parse/fail-35.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-11.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-11.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-11.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-11.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-11.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-11.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-11.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-11.xbel/.dirs/runtime 1268s ok 43 /bookmarks/parse/fail-11.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-12.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-12.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-12.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-12.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-12.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-12.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-12.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-12.xbel/.dirs/runtime 1268s ok 44 /bookmarks/parse/fail-12.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-02.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-02.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-02.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-02.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-02.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-02.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-02.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-02.xbel/.dirs/runtime 1268s ok 45 /bookmarks/parse/fail-02.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-14.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-14.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-14.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-14.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-14.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-14.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-14.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-14.xbel/.dirs/runtime 1268s ok 46 /bookmarks/parse/fail-14.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-42.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-42.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-42.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-42.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-42.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-42.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-42.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-42.xbel/.dirs/runtime 1268s ok 47 /bookmarks/parse/fail-42.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-33.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-33.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-33.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-33.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-33.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-33.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-33.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-33.xbel/.dirs/runtime 1268s ok 48 /bookmarks/parse/fail-33.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-41.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-41.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-41.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-41.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-41.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-41.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-41.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-41.xbel/.dirs/runtime 1268s ok 49 /bookmarks/parse/fail-41.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-15.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-15.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-15.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-15.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-15.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-15.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-15.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/fail-15.xbel/.dirs/runtime 1268s ok 50 /bookmarks/parse/fail-15.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-01.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-01.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-01.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-01.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-01.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-01.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-01.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/parse/valid-01.xbel/.dirs/runtime 1268s ok 51 /bookmarks/parse/valid-01.xbel 1268s # End of parse tests 1268s # Start of copy tests 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-23.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-23.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-23.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-23.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-23.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-23.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-23.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-23.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-23.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-23.xbel/.dirs/runtime 1268s ok 52 /bookmarks/copy/fail-23.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-25.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-25.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-25.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-25.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-25.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-25.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-25.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-25.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-25.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-25.xbel/.dirs/runtime 1268s ok 53 /bookmarks/copy/fail-25.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-03.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-03.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-03.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-03.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-03.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-03.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-03.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-03.xbel/.dirs/runtime 1268s ok 54 /bookmarks/copy/valid-03.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-28.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-28.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-28.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-28.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-28.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-28.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-28.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-28.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-28.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-28.xbel/.dirs/runtime 1268s ok 55 /bookmarks/copy/fail-28.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-19.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-19.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-19.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-19.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-19.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-19.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-19.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-19.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-19.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-19.xbel/.dirs/runtime 1268s ok 56 /bookmarks/copy/fail-19.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-29.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-29.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-29.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-29.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-29.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-29.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-29.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-29.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-29.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-29.xbel/.dirs/runtime 1268s ok 57 /bookmarks/copy/fail-29.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-18.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-18.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-18.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-18.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-18.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-18.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-18.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-18.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-18.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-18.xbel/.dirs/runtime 1268s ok 58 /bookmarks/copy/fail-18.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-39.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-39.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-39.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-39.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-39.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-39.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-39.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-39.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-39.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-39.xbel/.dirs/runtime 1268s ok 59 /bookmarks/copy/fail-39.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-30.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-30.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-30.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-30.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-30.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-30.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-30.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-30.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-30.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-30.xbel/.dirs/runtime 1268s ok 60 /bookmarks/copy/fail-30.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-06.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-06.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-06.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-06.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-06.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-06.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-06.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-06.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-06.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-06.xbel/.dirs/runtime 1268s ok 61 /bookmarks/copy/fail-06.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-08.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-08.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-08.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-08.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-08.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-08.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-08.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-08.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-08.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-08.xbel/.dirs/runtime 1268s ok 62 /bookmarks/copy/fail-08.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-22.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-22.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-22.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-22.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-22.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-22.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-22.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-22.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-22.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-22.xbel/.dirs/runtime 1268s ok 63 /bookmarks/copy/fail-22.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-40.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-40.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-40.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-40.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-40.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-40.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-40.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-40.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-40.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-40.xbel/.dirs/runtime 1268s ok 64 /bookmarks/copy/fail-40.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-36.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-36.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-36.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-36.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-36.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-36.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-36.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-36.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-36.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-36.xbel/.dirs/runtime 1268s ok 65 /bookmarks/copy/fail-36.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-05.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-05.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-05.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-05.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-05.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-05.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-05.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-05.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-05.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-05.xbel/.dirs/runtime 1268s ok 66 /bookmarks/copy/fail-05.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-26.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-26.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-26.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-26.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-26.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-26.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-26.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-26.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-26.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-26.xbel/.dirs/runtime 1268s ok 67 /bookmarks/copy/fail-26.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-02.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-02.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-02.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-02.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-02.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-02.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-02.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-02.xbel/.dirs/runtime 1268s ok 68 /bookmarks/copy/valid-02.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-24.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-24.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-24.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-24.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-24.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-24.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-24.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-24.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-24.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-24.xbel/.dirs/runtime 1268s ok 69 /bookmarks/copy/fail-24.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-31.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-31.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-31.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-31.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-31.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-31.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-31.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-31.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-31.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-31.xbel/.dirs/runtime 1268s ok 70 /bookmarks/copy/fail-31.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-27.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-27.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-27.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-27.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-27.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-27.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-27.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-27.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-27.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-27.xbel/.dirs/runtime 1268s ok 71 /bookmarks/copy/fail-27.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-17.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-17.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-17.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-17.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-17.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-17.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-17.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-17.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-17.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-17.xbel/.dirs/runtime 1268s ok 72 /bookmarks/copy/fail-17.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-21.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-21.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-21.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-21.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-21.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-21.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-21.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-21.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-21.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-21.xbel/.dirs/runtime 1268s ok 73 /bookmarks/copy/fail-21.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-32.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-32.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-32.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-32.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-32.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-32.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-32.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-32.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-32.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-32.xbel/.dirs/runtime 1268s ok 74 /bookmarks/copy/fail-32.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-20.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-20.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-20.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-20.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-20.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-20.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-20.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-20.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-20.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-20.xbel/.dirs/runtime 1268s ok 75 /bookmarks/copy/fail-20.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-03.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-03.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-03.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-03.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-03.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-03.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-03.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-03.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-03.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-03.xbel/.dirs/runtime 1268s ok 76 /bookmarks/copy/fail-03.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-37.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-37.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-37.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-37.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-37.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-37.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-37.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-37.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-37.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-37.xbel/.dirs/runtime 1268s ok 77 /bookmarks/copy/fail-37.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-07.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-07.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-07.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-07.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-07.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-07.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-07.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-07.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-07.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-07.xbel/.dirs/runtime 1268s ok 78 /bookmarks/copy/fail-07.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-16.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-16.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-16.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-16.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-16.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-16.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-16.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-16.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-16.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-16.xbel/.dirs/runtime 1268s ok 79 /bookmarks/copy/fail-16.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-34.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-34.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-34.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-34.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-34.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-34.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-34.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-34.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-34.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-34.xbel/.dirs/runtime 1268s ok 80 /bookmarks/copy/fail-34.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-10.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-10.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-10.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-10.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-10.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-10.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-10.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-10.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-10.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-10.xbel/.dirs/runtime 1268s ok 81 /bookmarks/copy/fail-10.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-38.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-38.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-38.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-38.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-38.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-38.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-38.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-38.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-38.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-38.xbel/.dirs/runtime 1268s ok 82 /bookmarks/copy/fail-38.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-13.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-13.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-13.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-13.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-13.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-13.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-13.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-13.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-13.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-13.xbel/.dirs/runtime 1268s ok 83 /bookmarks/copy/fail-13.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-04.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-04.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-04.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-04.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-04.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-04.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-04.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-04.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-04.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-04.xbel/.dirs/runtime 1268s ok 84 /bookmarks/copy/fail-04.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-01.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-01.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-01.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-01.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-01.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-01.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-01.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-01.xbel/.dirs/runtime 1268s ok 85 /bookmarks/copy/fail-01.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-09.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-09.xbel/.dirs/cache 1268s ok - glib/bookmarkfile.test 1268s # Running test: glib/test-printf.test 1268s # Executing: glib/test-printf.test 1268s ok - glib/test-printf.test 1268s # Running test: glib/performance.test 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-09.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-09.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-09.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-09.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-09.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-09.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-09.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-09.xbel/.dirs/runtime 1268s ok 86 /bookmarks/copy/fail-09.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-35.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-35.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-35.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-35.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-35.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-35.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-35.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-35.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-35.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-35.xbel/.dirs/runtime 1268s ok 87 /bookmarks/copy/fail-35.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-11.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-11.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-11.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-11.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-11.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-11.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-11.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-11.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-11.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-11.xbel/.dirs/runtime 1268s ok 88 /bookmarks/copy/fail-11.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-12.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-12.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-12.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-12.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-12.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-12.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-12.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-12.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-12.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-12.xbel/.dirs/runtime 1268s ok 89 /bookmarks/copy/fail-12.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-02.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-02.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-02.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-02.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-02.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-02.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-02.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-02.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-02.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-02.xbel/.dirs/runtime 1268s ok 90 /bookmarks/copy/fail-02.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-14.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-14.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-14.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-14.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-14.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-14.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-14.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-14.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-14.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-14.xbel/.dirs/runtime 1268s ok 91 /bookmarks/copy/fail-14.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-42.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-42.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-42.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-42.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-42.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-42.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-42.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-42.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-42.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-42.xbel/.dirs/runtime 1268s ok 92 /bookmarks/copy/fail-42.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-33.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-33.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-33.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-33.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-33.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-33.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-33.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-33.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-33.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-33.xbel/.dirs/runtime 1268s ok 93 /bookmarks/copy/fail-33.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-41.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-41.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-41.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-41.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-41.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-41.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-41.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-41.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-41.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-41.xbel/.dirs/runtime 1268s ok 94 /bookmarks/copy/fail-41.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-15.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-15.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-15.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-15.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-15.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-15.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-15.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-15.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-15.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/fail-15.xbel/.dirs/runtime 1268s ok 95 /bookmarks/copy/fail-15.xbel 1268s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-01.xbel/.dirs/home 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-01.xbel/.dirs/cache 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-01.xbel/.dirs/system-config1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-01.xbel/.dirs/system-config2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-01.xbel/.dirs/config 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-01.xbel/.dirs/system-data1:/tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-01.xbel/.dirs/system-data2 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-01.xbel/.dirs/data 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-01.xbel/.dirs/state 1268s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_bookmarkfile_7Y1JK3/bookmarks/copy/valid-01.xbel/.dirs/runtime 1268s ok 96 /bookmarks/copy/valid-01.xbel 1268s # End of copy tests 1268s # End of bookmarks tests 1268s TAP version 14 1268s # random seed: R02S73475ed70ac32ae448c90fbe5c5bfa7e 1268s 1..24 1268s # Start of snprintf tests 1268s ok 1 /snprintf/retval-and-trunc 1268s ok 2 /snprintf/%d 1268s ok 3 /snprintf/%d-invalid 1268s ok 4 /snprintf/%o 1268s ok 5 /snprintf/%u 1268s ok 6 /snprintf/%x 1268s ok 7 /snprintf/%X 1268s ok 8 /snprintf/%f 1268s ok 9 /snprintf/%e 1268s ok 10 /snprintf/%c 1268s ok 11 /snprintf/%s 1268s ok 12 /snprintf/%n 1268s ok 13 /snprintf/test-percent 1268s ok 14 /snprintf/test-positional-params 1268s ok 15 /snprintf/test-64bit 1268s ok 16 /snprintf/produce-embedded-nulls 1268s # End of snprintf tests 1268s # Start of printf tests 1268s ok 17 /printf/test-percent 1268s ok 18 /printf/test-positional-params 1268s ok 19 /printf/test-64bit 1268s # Start of test-64bit tests 1268s # Start of subprocess tests 1268s # End of subprocess tests 1268s # End of test-64bit tests 1268s # End of printf tests 1268s # Start of fprintf tests 1268s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3761 1268s # /fprintf/produce-embedded-nulls summary: printf() functions can produce strings with embedded null characters. That happens when passing individual characters (%c) with value ' 1268s ok 20 /fprintf/produce-embedded-nulls 1268s # End of fprintf tests 1268s # Start of sprintf tests 1268s ok 21 /sprintf/test-positional-params 1268s ok 22 /sprintf/upper-bound 1268s # End of sprintf tests 1268s # Start of vasprintf tests 1268s # /vasprintf/invalid-format-placeholder summary: Test error handling for invalid format placeholder in g_vasprintf() 1268s ok 23 /vasprintf/invalid-format-placeholder 1268s # /vasprintf/invalid-wide-string summary: Test error handling for invalid wide strings in g_vasprintf() 1268s ok 24 /vasprintf/invalid-wide-string 1268s # End of vasprintf tests 1273s # Executing: glib/performance.test 1277s simple-construction: Millions of constructed objects per second: 7.013 1278s # Executing: glib/performance.test 1279s simple-construction1: Millions of constructed objects per second: 58.260 1283s # Executing: glib/performance.test 1285s complex-construction: Millions of constructed objects per second: 3.915 1288s # Executing: glib/performance.test 1291s complex-construction1: Millions of constructed objects per second: 4.893 1293s # Executing: glib/performance.test 1298s # Executing: glib/performance.test 1299s complex-construction2: Millions of constructed objects per second: 5.272 1300s finalization: Millions of finalized objects per second: 1.093 1302s type-check: Million type checks per second: 14.53 1303s # Executing: glib/performance.test 1303s emit-unhandled: Emissions per second: 1088705 1305s emit-unhandled-empty: Emissions per second: 8956347 1306s emit-unhandled-generic: Emissions per second: 1207018 1308s # Executing: glib/performance.test 1308s emit-unhandled-generic-empty: Emissions per second: 8957671 1309s emit-unhandled-args: Emissions per second: 1072253 1311s emit-handled: Emissions per second: 774437 1312s emit-handled-empty: Emissions per second: 775544 1313s # Executing: glib/performance.test 1313s emit-handled-generic: Emissions per second: 783191 1315s emit-handled-generic-empty: Emissions per second: 1191473 1316s emit-handled-args: Emissions per second: 770839 1320s notify-unhandled: Notify (unhandled) per second: 9210804 1320s # Executing: glib/performance.test 1320s notify-by-pspec-unhandled: Notify (unhandled) per second: 44768807 1320s notify-handled: Notify per second: 503627 1322s notify-by-pspec-handled: Notify per second: 528602 1323s # Executing: glib/performance.test 1323s property-set: Property set per second: 6300914 1324s property-set-signaled: Property set per second: 1559573 1326s property-get: Property get per second: 6802356 1327s refcount: Million refs+unref per second: 6.08 1328s # Executing: glib/performance.test 1329s refcount-1: Million refs+unref per second: 14.32 1330s refcount-toggle: Million refs+unref per second: 12.57 1330s ok - glib/performance.test 1330s # Running test: glib/file-enumerator.test 1330s TAP version 14 1330s # random seed: R02S1bf6de24fdb38d595511f5a57d79758f 1330s 1..1 1330s # Start of file-enumerator tests 1330s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1330s ok 1 /file-enumerator/close-on-dispose 1330s # End of file-enumerator tests 1330s ok - glib/file-enumerator.test 1330s TAP version 14 1330s # random seed: R02S4642da3e44aa4a5d4d542349c09db2b2 1330s 1..5 1330s # Start of timeout tests 1330s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1330s # Running test: glib/timeout.test 1332s ok 1 /timeout/seconds 1332s # slow test /timeout/seconds executed in 2.10 secs 1333s # Executing: glib/timeout.test 1334s ok 2 /timeout/seconds-once 1334s # slow test /timeout/seconds-once executed in 2.10 secs 1334s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1336s ok 3 /timeout/weeks-overflow 1336s # slow test /timeout/weeks-overflow executed in 2.10 secs 1336s ok 4 /timeout/far-future-ready-time 1338s # Executing: glib/timeout.test 1343s # Executing: glib/timeout.test 1347s ok 5 /timeout/rounding 1347s # slow test /timeout/rounding executed in 10.29 secs 1347s # End of timeout tests 1347s ok - glib/timeout.test 1347s # Running test: glib/macros-c-99.test 1347s ok - glib/macros-c-99.test 1347s # Running test: glib/file.test 1347s TAP version 14 1347s # random seed: R02Sa72fa4770d9638fe80888156173b36eb 1347s 1..4 1347s # Start of C tests 1347s ok 1 /C/standard-99 1347s # End of C tests 1347s # Start of alignof tests 1347s ok 2 /alignof/fallback 1347s # End of alignof tests 1347s # Start of assert tests 1347s ok 3 /assert/static 1347s # End of assert tests 1347s # Start of struct tests 1347s ok 4 /struct/sizeof_member 1347s # End of struct tests 1347s TAP version 14 1347s # random seed: R02S06ad4e51ff0338c6128673eee1a0dd44 1347s 1..55 1347s # Start of file tests 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/basic/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/basic/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/basic/.dirs/system-config1:/tmp/test_file_DQBAK3/file/basic/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/basic/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/basic/.dirs/system-data1:/tmp/test_file_DQBAK3/file/basic/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/basic/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/basic/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/basic/.dirs/runtime 1347s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1347s ok 1 /file/basic 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/build-filename/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/build-filename/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/build-filename/.dirs/system-config1:/tmp/test_file_DQBAK3/file/build-filename/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/build-filename/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/build-filename/.dirs/system-data1:/tmp/test_file_DQBAK3/file/build-filename/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/build-filename/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/build-filename/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/build-filename/.dirs/runtime 1347s ok 2 /file/build-filename 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/build-filenamev/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/build-filenamev/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/build-filenamev/.dirs/system-config1:/tmp/test_file_DQBAK3/file/build-filenamev/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/build-filenamev/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/build-filenamev/.dirs/system-data1:/tmp/test_file_DQBAK3/file/build-filenamev/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/build-filenamev/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/build-filenamev/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/build-filenamev/.dirs/runtime 1347s ok 3 /file/build-filenamev 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/parent/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/parent/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/parent/.dirs/system-config1:/tmp/test_file_DQBAK3/file/parent/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/parent/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/parent/.dirs/system-data1:/tmp/test_file_DQBAK3/file/parent/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/parent/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/parent/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/parent/.dirs/runtime 1347s ok 4 /file/parent 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/child/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/child/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/child/.dirs/system-config1:/tmp/test_file_DQBAK3/file/child/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/child/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/child/.dirs/system-data1:/tmp/test_file_DQBAK3/file/child/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/child/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/child/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/child/.dirs/runtime 1347s ok 5 /file/child 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/empty-path/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/empty-path/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/empty-path/.dirs/system-config1:/tmp/test_file_DQBAK3/file/empty-path/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/empty-path/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/empty-path/.dirs/system-data1:/tmp/test_file_DQBAK3/file/empty-path/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/empty-path/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/empty-path/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/empty-path/.dirs/runtime 1347s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2328 1347s # /file/empty-path summary: Check that creating a file with an empty path results in errors 1347s ok 6 /file/empty-path 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/type/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/type/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/type/.dirs/system-config1:/tmp/test_file_DQBAK3/file/type/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/type/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/type/.dirs/system-data1:/tmp/test_file_DQBAK3/file/type/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/type/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/type/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/type/.dirs/runtime 1347s ok 7 /file/type 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/parse-name/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/parse-name/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/parse-name/.dirs/system-config1:/tmp/test_file_DQBAK3/file/parse-name/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/parse-name/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/parse-name/.dirs/system-data1:/tmp/test_file_DQBAK3/file/parse-name/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/parse-name/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/parse-name/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/parse-name/.dirs/runtime 1347s ok 8 /file/parse-name 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/replace-load/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/replace-load/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/replace-load/.dirs/system-config1:/tmp/test_file_DQBAK3/file/replace-load/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/replace-load/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/replace-load/.dirs/system-data1:/tmp/test_file_DQBAK3/file/replace-load/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/replace-load/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/replace-load/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/replace-load/.dirs/runtime 1347s ok 9 /file/replace-load 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/replace-cancel/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/replace-cancel/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/replace-cancel/.dirs/system-config1:/tmp/test_file_DQBAK3/file/replace-cancel/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/replace-cancel/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/replace-cancel/.dirs/system-data1:/tmp/test_file_DQBAK3/file/replace-cancel/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/replace-cancel/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/replace-cancel/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/replace-cancel/.dirs/runtime 1347s # Bug Reference: https://bugzilla.gnome.org/629301 1347s ok 10 /file/replace-cancel 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/replace-symlink/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/replace-symlink/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/replace-symlink/.dirs/system-config1:/tmp/test_file_DQBAK3/file/replace-symlink/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/replace-symlink/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/replace-symlink/.dirs/system-data1:/tmp/test_file_DQBAK3/file/replace-symlink/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/replace-symlink/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/replace-symlink/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/replace-symlink/.dirs/runtime 1347s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2325 1347s # /file/replace-symlink summary: Test that G_FILE_CREATE_REPLACE_DESTINATION doesn’t follow symlinks 1347s # Using temporary directory /tmp/test_file_DQBAK3/g_file_replace_symlink_7CRDK3 1347s ok 11 /file/replace-symlink 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/async-new-tmp/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/async-new-tmp/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/async-new-tmp/.dirs/system-config1:/tmp/test_file_DQBAK3/file/async-new-tmp/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/async-new-tmp/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/async-new-tmp/.dirs/system-data1:/tmp/test_file_DQBAK3/file/async-new-tmp/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/async-new-tmp/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/async-new-tmp/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/async-new-tmp/.dirs/runtime 1347s ok 12 /file/async-new-tmp 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/async-new-tmp-dir/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/async-new-tmp-dir/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/async-new-tmp-dir/.dirs/system-config1:/tmp/test_file_DQBAK3/file/async-new-tmp-dir/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/async-new-tmp-dir/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/async-new-tmp-dir/.dirs/system-data1:/tmp/test_file_DQBAK3/file/async-new-tmp-dir/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/async-new-tmp-dir/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/async-new-tmp-dir/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/async-new-tmp-dir/.dirs/runtime 1347s ok 13 /file/async-new-tmp-dir 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/async-delete/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/async-delete/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/async-delete/.dirs/system-config1:/tmp/test_file_DQBAK3/file/async-delete/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/async-delete/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/async-delete/.dirs/system-data1:/tmp/test_file_DQBAK3/file/async-delete/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/async-delete/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/async-delete/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/async-delete/.dirs/runtime 1347s ok 14 /file/async-delete 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/async-make-symlink/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/async-make-symlink/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/async-make-symlink/.dirs/system-config1:/tmp/test_file_DQBAK3/file/async-make-symlink/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/async-make-symlink/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/async-make-symlink/.dirs/system-data1:/tmp/test_file_DQBAK3/file/async-make-symlink/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/async-make-symlink/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/async-make-symlink/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/async-make-symlink/.dirs/runtime 1347s ok 15 /file/async-make-symlink 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/copy-preserve-mode/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/copy-preserve-mode/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/copy-preserve-mode/.dirs/system-config1:/tmp/test_file_DQBAK3/file/copy-preserve-mode/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/copy-preserve-mode/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/copy-preserve-mode/.dirs/system-data1:/tmp/test_file_DQBAK3/file/copy-preserve-mode/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/copy-preserve-mode/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/copy-preserve-mode/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/copy-preserve-mode/.dirs/runtime 1347s # Current umask: 2 1347s # Vector 0 1347s # Vector 1 1347s # Vector 2 1347s # Vector 3 1347s # Vector 4 1347s # Vector 5 1347s # Vector 6 1347s # Vector 7 1347s # Vector 8 1347s # Vector 9 1347s # Vector 10 1347s ok 16 /file/copy-preserve-mode 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/copy-async-with-closures/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/copy-async-with-closures/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/copy-async-with-closures/.dirs/system-config1:/tmp/test_file_DQBAK3/file/copy-async-with-closures/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/copy-async-with-closures/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/copy-async-with-closures/.dirs/system-data1:/tmp/test_file_DQBAK3/file/copy-async-with-closures/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/copy-async-with-closures/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/copy-async-with-closures/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/copy-async-with-closures/.dirs/runtime 1347s ok 17 /file/copy-async-with-closures 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/measure/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/measure/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/measure/.dirs/system-config1:/tmp/test_file_DQBAK3/file/measure/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/measure/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/measure/.dirs/system-data1:/tmp/test_file_DQBAK3/file/measure/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/measure/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/measure/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/measure/.dirs/runtime 1347s ok 18 /file/measure 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/measure-async/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/measure-async/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/measure-async/.dirs/system-config1:/tmp/test_file_DQBAK3/file/measure-async/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/measure-async/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/measure-async/.dirs/system-data1:/tmp/test_file_DQBAK3/file/measure-async/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/measure-async/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/measure-async/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/measure-async/.dirs/runtime 1347s ok 19 /file/measure-async 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/load-bytes/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/load-bytes/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/load-bytes/.dirs/system-config1:/tmp/test_file_DQBAK3/file/load-bytes/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/load-bytes/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/load-bytes/.dirs/system-data1:/tmp/test_file_DQBAK3/file/load-bytes/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/load-bytes/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/load-bytes/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/load-bytes/.dirs/runtime 1347s ok 20 /file/load-bytes 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/load-bytes-async/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/load-bytes-async/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/load-bytes-async/.dirs/system-config1:/tmp/test_file_DQBAK3/file/load-bytes-async/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/load-bytes-async/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/load-bytes-async/.dirs/system-data1:/tmp/test_file_DQBAK3/file/load-bytes-async/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/load-bytes-async/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/load-bytes-async/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/load-bytes-async/.dirs/runtime 1347s ok 21 /file/load-bytes-async 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/load-bytes-4gb/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/load-bytes-4gb/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/load-bytes-4gb/.dirs/system-config1:/tmp/test_file_DQBAK3/file/load-bytes-4gb/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/load-bytes-4gb/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/load-bytes-4gb/.dirs/system-data1:/tmp/test_file_DQBAK3/file/load-bytes-4gb/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/load-bytes-4gb/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/load-bytes-4gb/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/load-bytes-4gb/.dirs/runtime 1347s ok 22 /file/load-bytes-4gb # SKIP Skipping slow >4GB file test 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/load-contents-4gb/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/load-contents-4gb/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/load-contents-4gb/.dirs/system-config1:/tmp/test_file_DQBAK3/file/load-contents-4gb/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/load-contents-4gb/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/load-contents-4gb/.dirs/system-data1:/tmp/test_file_DQBAK3/file/load-contents-4gb/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/load-contents-4gb/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/load-contents-4gb/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/load-contents-4gb/.dirs/runtime 1347s ok 23 /file/load-contents-4gb # SKIP Skipping slow >4GB file test 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/load-contents-4gb-async/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/load-contents-4gb-async/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/load-contents-4gb-async/.dirs/system-config1:/tmp/test_file_DQBAK3/file/load-contents-4gb-async/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/load-contents-4gb-async/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/load-contents-4gb-async/.dirs/system-data1:/tmp/test_file_DQBAK3/file/load-contents-4gb-async/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/load-contents-4gb-async/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/load-contents-4gb-async/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/load-contents-4gb-async/.dirs/runtime 1347s ok 24 /file/load-contents-4gb-async # SKIP Skipping slow >4GB file test 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/writev/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/writev/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/writev/.dirs/system-config1:/tmp/test_file_DQBAK3/file/writev/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/writev/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/writev/.dirs/system-data1:/tmp/test_file_DQBAK3/file/writev/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/writev/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/writev/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/writev/.dirs/runtime 1347s ok 25 /file/writev 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/build-attribute-list-for-copy/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/build-attribute-list-for-copy/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/build-attribute-list-for-copy/.dirs/system-config1:/tmp/test_file_DQBAK3/file/build-attribute-list-for-copy/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/build-attribute-list-for-copy/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/build-attribute-list-for-copy/.dirs/system-data1:/tmp/test_file_DQBAK3/file/build-attribute-list-for-copy/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/build-attribute-list-for-copy/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/build-attribute-list-for-copy/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/build-attribute-list-for-copy/.dirs/runtime 1347s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,unix::mode,xattr::* 1347s # Attributes for copy: standard::size,time::modified,time::modified-nsec,time::modified-usec,xattr::* 1347s # 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::* 1347s # 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::* 1347s # Attributes for copy: standard::size,time::access,time::access-nsec,time::access-usec,unix::gid,unix::mode,unix::uid,xattr::*,xattr-sys::* 1347s # Attributes for copy: standard::size,xattr::* 1347s # Attributes for copy: standard::size,unix::mode,xattr::* 1347s ok 26 /file/build-attribute-list-for-copy 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/move_async/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/move_async/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/move_async/.dirs/system-config1:/tmp/test_file_DQBAK3/file/move_async/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/move_async/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/move_async/.dirs/system-data1:/tmp/test_file_DQBAK3/file/move_async/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/move_async/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/move_async/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/move_async/.dirs/runtime 1347s ok 27 /file/move_async 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/move-async-with-closures/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/move-async-with-closures/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/move-async-with-closures/.dirs/system-config1:/tmp/test_file_DQBAK3/file/move-async-with-closures/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/move-async-with-closures/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/move-async-with-closures/.dirs/system-data1:/tmp/test_file_DQBAK3/file/move-async-with-closures/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/move-async-with-closures/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/move-async-with-closures/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/move-async-with-closures/.dirs/runtime 1347s ok 28 /file/move-async-with-closures 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/query-zero-length-content-type/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/query-zero-length-content-type/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/query-zero-length-content-type/.dirs/system-config1:/tmp/test_file_DQBAK3/file/query-zero-length-content-type/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/query-zero-length-content-type/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/query-zero-length-content-type/.dirs/system-data1:/tmp/test_file_DQBAK3/file/query-zero-length-content-type/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/query-zero-length-content-type/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/query-zero-length-content-type/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/query-zero-length-content-type/.dirs/runtime 1347s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755795 1347s # /file/query-zero-length-content-type summary: empty files should always be considered application/x-zerosize 1347s ok 29 /file/query-zero-length-content-type 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/query-default-handler-file/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-file/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/query-default-handler-file/.dirs/system-config1:/tmp/test_file_DQBAK3/file/query-default-handler-file/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-file/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/query-default-handler-file/.dirs/system-data1:/tmp/test_file_DQBAK3/file/query-default-handler-file/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-file/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-file/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/query-default-handler-file/.dirs/runtime 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-file/.dirs/data/applications 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-file/.dirs/config 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-file/.dirs/config 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-file/.dirs/config 1347s ok 30 /file/query-default-handler-file 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/system-config1:/tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/system-data1:/tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/runtime 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/data/applications 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/config 1347s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_DQBAK3/file/query-default-handler-file/.dirs/config to /tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/config 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/config 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/config 1347s ok 31 /file/query-default-handler-file-async 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/system-config1:/tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/system-data1:/tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/runtime 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/data/applications 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/config 1347s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_DQBAK3/file/query-default-handler-file-async/.dirs/config to /tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/config 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/config 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/config 1347s ok 32 /file/query-default-handler-uri 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/query-default-handler-uri-async/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-uri-async/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/query-default-handler-uri-async/.dirs/system-config1:/tmp/test_file_DQBAK3/file/query-default-handler-uri-async/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-uri-async/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/query-default-handler-uri-async/.dirs/system-data1:/tmp/test_file_DQBAK3/file/query-default-handler-uri-async/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-uri-async/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/query-default-handler-uri-async/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/query-default-handler-uri-async/.dirs/runtime 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-uri-async/.dirs/data/applications 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-uri-async/.dirs/config 1347s # GLib-GIO-DEBUG: desktop_file_dirs_lock: Resetting desktop app info dirs from /tmp/test_file_DQBAK3/file/query-default-handler-uri/.dirs/config to /tmp/test_file_DQBAK3/file/query-default-handler-uri-async/.dirs/config 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-uri-async/.dirs/config 1347s # GLib-GIO-DEBUG: ensure_dir: Ensuring /tmp/test_file_DQBAK3/file/query-default-handler-uri-async/.dirs/config 1347s ok 33 /file/query-default-handler-uri-async 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/enumerator-cancellation/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/enumerator-cancellation/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/enumerator-cancellation/.dirs/system-config1:/tmp/test_file_DQBAK3/file/enumerator-cancellation/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/enumerator-cancellation/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/enumerator-cancellation/.dirs/system-data1:/tmp/test_file_DQBAK3/file/enumerator-cancellation/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/enumerator-cancellation/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/enumerator-cancellation/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/enumerator-cancellation/.dirs/runtime 1347s ok 34 /file/enumerator-cancellation 1347s # Start of async-create-delete tests 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/async-create-delete/0/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/0/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/async-create-delete/0/.dirs/system-config1:/tmp/test_file_DQBAK3/file/async-create-delete/0/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/0/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/async-create-delete/0/.dirs/system-data1:/tmp/test_file_DQBAK3/file/async-create-delete/0/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/0/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/0/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/async-create-delete/0/.dirs/runtime 1347s ok 35 /file/async-create-delete/0 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/async-create-delete/1/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/1/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/async-create-delete/1/.dirs/system-config1:/tmp/test_file_DQBAK3/file/async-create-delete/1/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/1/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/async-create-delete/1/.dirs/system-data1:/tmp/test_file_DQBAK3/file/async-create-delete/1/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/1/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/1/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/async-create-delete/1/.dirs/runtime 1347s ok 36 /file/async-create-delete/1 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/async-create-delete/10/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/10/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/async-create-delete/10/.dirs/system-config1:/tmp/test_file_DQBAK3/file/async-create-delete/10/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/10/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/async-create-delete/10/.dirs/system-data1:/tmp/test_file_DQBAK3/file/async-create-delete/10/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/10/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/10/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/async-create-delete/10/.dirs/runtime 1347s ok 37 /file/async-create-delete/10 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/async-create-delete/25/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/25/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/async-create-delete/25/.dirs/system-config1:/tmp/test_file_DQBAK3/file/async-create-delete/25/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/25/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/async-create-delete/25/.dirs/system-data1:/tmp/test_file_DQBAK3/file/async-create-delete/25/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/25/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/25/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/async-create-delete/25/.dirs/runtime 1347s ok 38 /file/async-create-delete/25 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/async-create-delete/4096/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/4096/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/async-create-delete/4096/.dirs/system-config1:/tmp/test_file_DQBAK3/file/async-create-delete/4096/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/4096/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/async-create-delete/4096/.dirs/system-data1:/tmp/test_file_DQBAK3/file/async-create-delete/4096/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/4096/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/async-create-delete/4096/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/async-create-delete/4096/.dirs/runtime 1347s ok 39 /file/async-create-delete/4096 1347s # End of async-create-delete tests 1347s # Start of replace-symlink tests 1347s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/replace-symlink/using-etag/.dirs/home 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/replace-symlink/using-etag/.dirs/cache 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/replace-symlink/using-etag/.dirs/system-config1:/tmp/test_file_DQBAK3/file/replace-symlink/using-etag/.dirs/system-config2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/replace-symlink/using-etag/.dirs/config 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/replace-symlink/using-etag/.dirs/system-data1:/tmp/test_file_DQBAK3/file/replace-symlink/using-etag/.dirs/system-data2 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/replace-symlink/using-etag/.dirs/data 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/replace-symlink/using-etag/.dirs/state 1347s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/replace-symlink/using-etag/.dirs/runtime 1347s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2417 1347s # /file/replace-symlink/using-etag summary: Test that ETag checks work when replacing a file through a symlink 1347s # Using temporary directory /tmp/test_file_DQBAK3/g_file_replace_symlink_using_etag_SZTMK3 1348s # Executing: glib/file.test 1349s ok 40 /file/replace-symlink/using-etag 1349s # slow test /file/replace-symlink/using-etag executed in 2.02 secs 1349s # End of replace-symlink tests 1349s # Start of replace tests 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/replace/write-only/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/replace/write-only/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/replace/write-only/.dirs/system-config1:/tmp/test_file_DQBAK3/file/replace/write-only/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/replace/write-only/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/replace/write-only/.dirs/system-data1:/tmp/test_file_DQBAK3/file/replace/write-only/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/replace/write-only/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/replace/write-only/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/replace/write-only/.dirs/runtime 1349s # /file/replace/write-only summary: Test various situations for g_file_replace() 1349s # Current umask: 2 1349s # Test 0, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_DFJMK3 1349s # Test 1, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_0JJMK3 1349s # Test 2, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_OFNMK3 1349s # Test 3, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_JSQMK3 1349s # Test 4, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_L0QMK3 1349s # Test 5, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_L9QMK3 1349s # Test 6, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_YMPKK3 1349s # Test 7, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_VNUKK3 1349s # Test 8, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_FJWKK3 1349s # Test 9, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_JQWKK3 1349s # Test 10, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_CFZKK3 1349s # Test 11, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_NQFKK3 1349s # Test 12, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_4DEKK3 1349s # Test 13, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_RMEKK3 1349s # Test 14, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_UXFKK3 1349s # Test 15, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_PLKKK3 1349s # Test 16, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_02CLK3 1349s # Test 17, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_LCHLK3 1349s # Test 18, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_SDKLK3 1349s # Test 19, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_VNLLK3 1349s # Test 20, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_NXMLK3 1349s # Test 21, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_GM3KK3 1349s # Test 22, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_HD7KK3 1349s # Test 23, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_I58KK3 1349s # Test 24, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_K89KK3 1349s # Test 25, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_4NVOK3 1349s # Test 26, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_YVVOK3 1349s # Test 27, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_W7VOK3 1349s # Test 28, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_3WZOK3 1349s # Test 29, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_5N0OK3 1349s # Test 30, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_MW0OK3 1349s # Test 31, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_ZM2OK3 1349s # Test 32, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_JH3OK3 1349s # Test 33, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_9AJOK3 1349s # Test 34, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_Y6KOK3 1349s # Test 35, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_0ILOK3 1349s # Test 36, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_JQMOK3 1349s # Test 37, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_GRPOK3 1349s # Test 38, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_81QOK3 1349s # Test 39, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_D8MPK3 1349s # Test 40, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_L5PPK3 1349s # Test 41, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_7OUPK3 1349s # Test 42, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_BP8OK3 1349s # Test 43, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_4DBPK3 1349s # Test 44, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_6XFPK3 1349s # Test 45, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_MJEPK3 1349s # Test 46, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_Z2IPK3 1349s # Test 47, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_GOHPK3 1349s # Test 48, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_26HNK3 1349s # We do not have CAP_DAC_OVERRIDE or equivalent 1349s ok 41 /file/replace/write-only 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/replace/read-write/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/replace/read-write/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/replace/read-write/.dirs/system-config1:/tmp/test_file_DQBAK3/file/replace/read-write/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/replace/read-write/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/replace/read-write/.dirs/system-data1:/tmp/test_file_DQBAK3/file/replace/read-write/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/replace/read-write/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/replace/read-write/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/replace/read-write/.dirs/runtime 1349s # /file/replace/read-write summary: Test various situations for g_file_replace() 1349s # Current umask: 2 1349s # Test 0, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_0AHNK3 1349s # Test 1, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_PFHNK3 1349s # Test 2, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_UZMNK3 1349s # Test 3, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_NZNNK3 1349s # Test 4, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_LSPNK3 1349s # Test 5, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_70PNK3 1349s # Test 6, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_HXSNK3 1349s # Test 7, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_GMSNK3 1349s # Test 8, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_T54MK3 1349s # Test 9, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_AB5MK3 1349s # Test 10, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_Q25MK3 1349s # Test 11, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_QW9MK3 1349s # Test 12, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_R49MK3 1349s # Test 13, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_4GANK3 1349s # Test 14, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_YJFNK3 1349s # Test 15, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_2Z7NK3 1349s # Test 16, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_RFCOK3 1349s # Test 17, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_PPDOK3 1349s # Test 18, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_YLEOK3 1349s # Test 19, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_KVIOK3 1349s # Test 20, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_83VNK3 1349s # Test 21, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_D5YNK3 1349s # Test 22, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_TD1NK3 1349s # Test 23, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_IZZNK3 1349s # Test 24, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_BW3NK3 1349s # Test 25, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_IW4NK3 1349s # Test 26, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_J74NK3 1349s # Test 27, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_KG5NK3 1349s # Test 28, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_CSHGK3 1349s # Test 29, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_KZLGK3 1349s # Test 30, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_37LGK3 1349s # Test 31, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_SGMGK3 1349s # Test 32, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_W4NGK3 1349s # Test 33, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_5YQGK3 1349s # Test 34, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_PPPGK3 1349s # Test 35, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_IYPGK3 1349s # Test 36, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_SS4FK3 1349s # Test 37, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_HM7FK3 1349s # Test 38, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_RN8FK3 1349s # Test 39, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_WZCGK3 1349s # Test 40, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_IAEGK3 1349s # Test 41, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_51EGK3 1349s # Test 42, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_PD8GK3 1349s # Test 43, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_489GK3 1349s # Test 44, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_YDEHK3 1349s # Test 45, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_MIEHK3 1349s # Test 46, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_FFFHK3 1349s # Test 47, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_EMFHK3 1349s # Test 48, using temporary directory /tmp/test_file_DQBAK3/g_file_replace_OWSGK3 1349s # We do not have CAP_DAC_OVERRIDE or equivalent 1349s ok 42 /file/replace/read-write 1349s # End of replace tests 1349s # Start of copy tests 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/copy/progress/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/copy/progress/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/copy/progress/.dirs/system-config1:/tmp/test_file_DQBAK3/file/copy/progress/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/copy/progress/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/copy/progress/.dirs/system-data1:/tmp/test_file_DQBAK3/file/copy/progress/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/copy/progress/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/copy/progress/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/copy/progress/.dirs/runtime 1349s ok 43 /file/copy/progress 1349s # End of copy tests 1349s # Start of writev tests 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/writev/no-bytes-written/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/writev/no-bytes-written/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/writev/no-bytes-written/.dirs/system-config1:/tmp/test_file_DQBAK3/file/writev/no-bytes-written/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/writev/no-bytes-written/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/writev/no-bytes-written/.dirs/system-data1:/tmp/test_file_DQBAK3/file/writev/no-bytes-written/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/writev/no-bytes-written/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/writev/no-bytes-written/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/writev/no-bytes-written/.dirs/runtime 1349s ok 44 /file/writev/no-bytes-written 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/writev/no-vectors/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/writev/no-vectors/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/writev/no-vectors/.dirs/system-config1:/tmp/test_file_DQBAK3/file/writev/no-vectors/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/writev/no-vectors/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/writev/no-vectors/.dirs/system-data1:/tmp/test_file_DQBAK3/file/writev/no-vectors/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/writev/no-vectors/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/writev/no-vectors/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/writev/no-vectors/.dirs/runtime 1349s ok 45 /file/writev/no-vectors 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/writev/empty-vectors/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/writev/empty-vectors/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/writev/empty-vectors/.dirs/system-config1:/tmp/test_file_DQBAK3/file/writev/empty-vectors/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/writev/empty-vectors/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/writev/empty-vectors/.dirs/system-data1:/tmp/test_file_DQBAK3/file/writev/empty-vectors/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/writev/empty-vectors/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/writev/empty-vectors/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/writev/empty-vectors/.dirs/runtime 1349s ok 46 /file/writev/empty-vectors 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/writev/too-big-vectors/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/writev/too-big-vectors/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/writev/too-big-vectors/.dirs/system-config1:/tmp/test_file_DQBAK3/file/writev/too-big-vectors/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/writev/too-big-vectors/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/writev/too-big-vectors/.dirs/system-data1:/tmp/test_file_DQBAK3/file/writev/too-big-vectors/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/writev/too-big-vectors/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/writev/too-big-vectors/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/writev/too-big-vectors/.dirs/runtime 1349s ok 47 /file/writev/too-big-vectors 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/writev/async/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/writev/async/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/writev/async/.dirs/system-config1:/tmp/test_file_DQBAK3/file/writev/async/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/writev/async/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/writev/async/.dirs/system-data1:/tmp/test_file_DQBAK3/file/writev/async/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/writev/async/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/writev/async/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/writev/async/.dirs/runtime 1349s ok 48 /file/writev/async 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/writev/async_all/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/writev/async_all/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/writev/async_all/.dirs/system-config1:/tmp/test_file_DQBAK3/file/writev/async_all/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/writev/async_all/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/writev/async_all/.dirs/system-data1:/tmp/test_file_DQBAK3/file/writev/async_all/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/writev/async_all/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/writev/async_all/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/writev/async_all/.dirs/runtime 1349s ok 49 /file/writev/async_all 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/writev/async_all-empty-vectors/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-empty-vectors/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/writev/async_all-empty-vectors/.dirs/system-config1:/tmp/test_file_DQBAK3/file/writev/async_all-empty-vectors/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-empty-vectors/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/writev/async_all-empty-vectors/.dirs/system-data1:/tmp/test_file_DQBAK3/file/writev/async_all-empty-vectors/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-empty-vectors/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-empty-vectors/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/writev/async_all-empty-vectors/.dirs/runtime 1349s ok 50 /file/writev/async_all-empty-vectors 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/writev/async_all-no-vectors/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-no-vectors/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/writev/async_all-no-vectors/.dirs/system-config1:/tmp/test_file_DQBAK3/file/writev/async_all-no-vectors/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-no-vectors/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/writev/async_all-no-vectors/.dirs/system-data1:/tmp/test_file_DQBAK3/file/writev/async_all-no-vectors/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-no-vectors/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-no-vectors/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/writev/async_all-no-vectors/.dirs/runtime 1349s ok 51 /file/writev/async_all-no-vectors 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/writev/async_all-to-big-vectors/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-to-big-vectors/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/writev/async_all-to-big-vectors/.dirs/system-config1:/tmp/test_file_DQBAK3/file/writev/async_all-to-big-vectors/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-to-big-vectors/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/writev/async_all-to-big-vectors/.dirs/system-data1:/tmp/test_file_DQBAK3/file/writev/async_all-to-big-vectors/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-to-big-vectors/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-to-big-vectors/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/writev/async_all-to-big-vectors/.dirs/runtime 1349s ok 52 /file/writev/async_all-to-big-vectors 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/writev/async_all-cancellation/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-cancellation/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/writev/async_all-cancellation/.dirs/system-config1:/tmp/test_file_DQBAK3/file/writev/async_all-cancellation/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-cancellation/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/writev/async_all-cancellation/.dirs/system-data1:/tmp/test_file_DQBAK3/file/writev/async_all-cancellation/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-cancellation/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/writev/async_all-cancellation/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/writev/async_all-cancellation/.dirs/runtime 1349s ok 53 /file/writev/async_all-cancellation 1349s # End of writev tests 1349s # Start of from-uri tests 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/from-uri/ignores-query-string/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/from-uri/ignores-query-string/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/from-uri/ignores-query-string/.dirs/system-config1:/tmp/test_file_DQBAK3/file/from-uri/ignores-query-string/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/from-uri/ignores-query-string/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/from-uri/ignores-query-string/.dirs/system-data1:/tmp/test_file_DQBAK3/file/from-uri/ignores-query-string/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/from-uri/ignores-query-string/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/from-uri/ignores-query-string/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/from-uri/ignores-query-string/.dirs/runtime 1349s ok 54 /file/from-uri/ignores-query-string 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_file_DQBAK3/file/from-uri/ignores-fragment/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_file_DQBAK3/file/from-uri/ignores-fragment/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_file_DQBAK3/file/from-uri/ignores-fragment/.dirs/system-config1:/tmp/test_file_DQBAK3/file/from-uri/ignores-fragment/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_file_DQBAK3/file/from-uri/ignores-fragment/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_file_DQBAK3/file/from-uri/ignores-fragment/.dirs/system-data1:/tmp/test_file_DQBAK3/file/from-uri/ignores-fragment/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_file_DQBAK3/file/from-uri/ignores-fragment/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_file_DQBAK3/file/from-uri/ignores-fragment/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_file_DQBAK3/file/from-uri/ignores-fragment/.dirs/runtime 1349s ok - glib/file.test 1349s # Running test: glib/permission.test 1349s ok 55 /file/from-uri/ignores-fragment 1349s # End of from-uri tests 1349s # End of file tests 1349s ok - glib/permission.test 1349s # Running test: glib/glistmodel.test 1349s TAP version 14 1349s # random seed: R02S4ae25a3fdce930a219777785f5d82cd9 1349s 1..1 1349s # Start of permission tests 1349s ok 1 /permission/simple 1349s # End of permission tests 1349s TAP version 14 1349s # random seed: R02S20e4afe5d77ee2b5545b9f5084cf2b2d 1349s 1..18 1349s # Start of glistmodel tests 1349s # Start of store tests 1349s ok 1 /glistmodel/store/properties 1349s ok 2 /glistmodel/store/non-gobjects 1349s ok 3 /glistmodel/store/boundaries 1349s ok 4 /glistmodel/store/refcounts 1349s ok 5 /glistmodel/store/sorted 1349s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1349s ok 6 /glistmodel/store/splice-replace-middle 1349s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=795307 1349s ok 7 /glistmodel/store/splice-replace-all 1349s ok 8 /glistmodel/store/splice-noop 1349s ok 9 /glistmodel/store/splice-remove-multiple 1349s ok 10 /glistmodel/store/splice-add-multiple 1349s ok 11 /glistmodel/store/splice-wrong-type 1349s ok 12 /glistmodel/store/item-type 1349s ok 13 /glistmodel/store/remove-all 1349s ok 14 /glistmodel/store/sort 1349s ok 15 /glistmodel/store/get-item-cache 1349s ok 16 /glistmodel/store/items-changed 1349s ok 17 /glistmodel/store/past-end 1349s ok 18 /glistmodel/store/find 1349s # End of store tests 1349s # End of glistmodel tests 1349s ok - glib/glistmodel.test 1349s # Running test: glib/autoptr-girepository.test 1349s TAP version 14 1349s # random seed: R02Sab9dc94ffbacf4fe155251fcdcbd5938 1349s 1..24 1349s # Start of autoptr tests 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/repository/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/repository/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/repository/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/repository/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/repository/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/repository/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/repository/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/repository/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/repository/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/repository/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 1 /autoptr/repository 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/typelib/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/typelib/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/typelib/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/typelib/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/typelib/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/typelib/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/typelib/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/typelib/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/typelib/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/typelib/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 2 /autoptr/typelib 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/base-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/base-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/base-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/base-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/base-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/base-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/base-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/base-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/base-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/base-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 3 /autoptr/base-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/arg-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/arg-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/arg-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/arg-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/arg-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/arg-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/arg-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/arg-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 4 /autoptr/arg-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/callable-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/callable-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/callable-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/callable-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/callable-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/callable-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/callable-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/callable-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/callable-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/callable-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 5 /autoptr/callable-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/callback-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/callback-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/callback-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/callback-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/callback-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/callback-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/callback-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/callback-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/callback-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/callback-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 6 /autoptr/callback-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/constant-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/constant-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/constant-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/constant-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/constant-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/constant-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/constant-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/constant-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/constant-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/constant-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 7 /autoptr/constant-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/enum-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/enum-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/enum-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/enum-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/enum-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/enum-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/enum-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/enum-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/enum-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/enum-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 8 /autoptr/enum-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/field-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/field-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/field-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/field-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/field-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/field-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/field-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/field-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/field-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/field-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 9 /autoptr/field-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/flags-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/flags-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/flags-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/flags-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/flags-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/flags-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/flags-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/flags-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/flags-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/flags-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 10 /autoptr/flags-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/function-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/function-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/function-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/function-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/function-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/function-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/function-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/function-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/function-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/function-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 11 /autoptr/function-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/interface-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/interface-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/interface-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/interface-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/interface-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/interface-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/interface-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/interface-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/interface-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/interface-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 12 /autoptr/interface-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/object-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/object-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/object-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/object-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/object-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/object-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/object-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/object-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/object-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/object-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 13 /autoptr/object-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/property-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/property-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/property-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/property-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/property-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/property-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/property-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/property-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/property-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/property-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 14 /autoptr/property-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/registered-type-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/registered-type-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/registered-type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/registered-type-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/registered-type-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/registered-type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/registered-type-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/registered-type-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/registered-type-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/registered-type-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 15 /autoptr/registered-type-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/signal-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/signal-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/signal-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/signal-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/signal-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/signal-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/signal-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/signal-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/signal-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/signal-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 16 /autoptr/signal-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/struct-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/struct-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/struct-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/struct-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/struct-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/struct-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/struct-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/struct-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/struct-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/struct-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 17 /autoptr/struct-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/type-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/type-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/type-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/type-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/type-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/type-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/type-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/type-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 18 /autoptr/type-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/union-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/union-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/union-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/union-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/union-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/union-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/union-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/union-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/union-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/union-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 19 /autoptr/union-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/value-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/value-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/value-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/value-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/value-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/value-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/value-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/value-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/value-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/value-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 20 /autoptr/value-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/vfunc-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/vfunc-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/vfunc-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/autoptr/vfunc-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/vfunc-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/autoptr/vfunc-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/autoptr/vfunc-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/vfunc-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/autoptr/vfunc-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/autoptr/vfunc-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 21 /autoptr/vfunc-info 1349s # End of autoptr tests 1349s # Start of auto tests 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/auto/arg-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/auto/arg-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/auto/arg-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/auto/arg-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/auto/arg-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/auto/arg-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/auto/arg-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/auto/arg-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/auto/arg-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/auto/arg-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 22 /auto/arg-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/auto/type-info/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/auto/type-info/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/auto/type-info/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/auto/type-info/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/auto/type-info/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/auto/type-info/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/auto/type-info/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/auto/type-info/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/auto/type-info/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/auto/type-info/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 23 /auto/type-info 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_autoptr-girepository_32UEK3/auto/function-invoker/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_autoptr-girepository_32UEK3/auto/function-invoker/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_autoptr-girepository_32UEK3/auto/function-invoker/.dirs/system-config1:/tmp/test_autoptr-girepository_32UEK3/auto/function-invoker/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_autoptr-girepository_32UEK3/auto/function-invoker/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_autoptr-girepository_32UEK3/auto/function-invoker/.dirs/system-data1:/tmp/test_autoptr-girepository_32UEK3/auto/function-invoker/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_autoptr-girepository_32UEK3/auto/function-invoker/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_autoptr-girepository_32UEK3/auto/function-invoker/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_autoptr-girepository_32UEK3/auto/function-invoker/.dirs/runtime 1349s # Using GI_TYPELIB_DIR = /usr/libexec/installed-tests/glib/../introspection 1349s ok 24 /auto/function-invoker 1349s # End of auto tests 1349s ok - glib/autoptr-girepository.test 1349s # Running test: glib/autoptr-gio.test 1349s TAP version 14 1349s # random seed: R02Sc7ab14438620bc709544e57d5e21aca4 1349s 1..1 1349s # Start of autoptr tests 1349s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1349s ok - glib/autoptr-gio.test 1349s ok 1 /autoptr/autoptr 1349s # End of autoptr tests 1349s # Running test: glib/gdbus-non-socket.test 1349s TAP version 14 1349s # random seed: R02S7146d3e18c47c54c1fd6d1cda6f2049b 1349s 1..1 1349s # Start of gdbus tests 1349s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-non-socket_5CXFK3/gdbus/non-socket/.dirs/home 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-non-socket_5CXFK3/gdbus/non-socket/.dirs/cache 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-non-socket_5CXFK3/gdbus/non-socket/.dirs/system-config1:/tmp/test_gdbus-non-socket_5CXFK3/gdbus/non-socket/.dirs/system-config2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-non-socket_5CXFK3/gdbus/non-socket/.dirs/config 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-non-socket_5CXFK3/gdbus/non-socket/.dirs/system-data1:/tmp/test_gdbus-non-socket_5CXFK3/gdbus/non-socket/.dirs/system-data2 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-non-socket_5CXFK3/gdbus/non-socket/.dirs/data 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-non-socket_5CXFK3/gdbus/non-socket/.dirs/state 1349s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-non-socket_5CXFK3/gdbus/non-socket/.dirs/runtime 1350s ok - glib/gdbus-non-socket.test 1350s ok 1 /gdbus/non-socket 1350s # End of gdbus tests 1350s # Running test: glib/deftype.test 1350s ok - glib/deftype.test 1350s # Running test: glib/slice.test 1350s TAP version 14 1350s # random seed: R02S3b01e98001c370c62764872a0a74e282 1350s 1..3 1350s # Start of slice tests 1350s ok 1 /slice/copy 1350s ok 2 /slice/chain 1350s ok - glib/slice.test 1350s # Running test: glib/thread-pool-slow.test 1350s ok 3 /slice/allocate 1350s # End of slice tests 1350s TAP version 14 1350s # random seed: R02S397947ae54d2244e6f352039f27585ea 1350s 1..7 1350s # Start of threadpool tests 1350s ok 1 /threadpool/functions 1350s ok 2 /threadpool/stop-unused 1350s # slow test /threadpool/stop-unused executed in 0.51 secs 1350s ok 3 /threadpool/pools 1350s # [unsorted] ===> pushed new thread with id:41, number of threads:1, unprocessed:1 1350s # [unsorted] ===> pushed new thread with id:46, number of threads:2, unprocessed:2 1350s # [unsorted] ===> pushed new thread with id:46, number of threads:3, unprocessed:3 1350s # [unsorted] ===> pushed new thread with id:40, number of threads:4, unprocessed:4 1350s # [unsorted] ===> pushed new thread with id:60, number of threads:5, unprocessed:5 1350s # [unsorted] ===> pushed new thread with id:76, number of threads:6, unprocessed:6 1350s # [unsorted] ===> pushed new thread with id:65, number of threads:7, unprocessed:7 1350s # [unsorted] ===> pushed new thread with id:73, number of threads:8, unprocessed:8 1350s # [unsorted] ===> pushed new thread with id:73, number of threads:9, unprocessed:9 1350s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:4 1350s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:5 1350s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:6 1350s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:7 1350s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:8 1350s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:9 1350s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:10 1350s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:11 1350s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:12 1350s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:13 1350s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:14 1350s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:15 1350s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:16 1350s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:17 1350s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:18 1350s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:19 1350s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:20 1350s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:21 1350s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:22 1350s # [unsorted] ===> pushed new thread with id:20, number of threads:10, unprocessed:23 1350s # [unsorted] ===> pushed new thread with id:57, number of threads:10, unprocessed:24 1350s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:25 1350s # [unsorted] ===> pushed new thread with id:41, number of threads:10, unprocessed:26 1350s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:27 1350s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:28 1350s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:29 1350s # [unsorted] ===> pushed new thread with id:32, number of threads:10, unprocessed:30 1350s # [unsorted] ===> pushed new thread with id:83, number of threads:10, unprocessed:31 1350s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:32 1350s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:33 1350s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:34 1350s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:35 1350s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:36 1350s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:37 1350s # [unsorted] ===> pushed new thread with id:45, number of threads:10, unprocessed:38 1350s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:39 1350s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:40 1350s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:41 1350s # [unsorted] ===> pushed new thread with id:52, number of threads:10, unprocessed:42 1350s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:43 1350s # [unsorted] ===> pushed new thread with id:84, number of threads:10, unprocessed:44 1350s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:45 1350s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:46 1350s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:47 1350s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:48 1350s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:49 1350s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:50 1350s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:51 1350s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:52 1350s # [unsorted] ===> pushed new thread with id:49, number of threads:10, unprocessed:53 1350s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:54 1350s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:55 1350s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:56 1350s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:57 1350s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:58 1350s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:59 1350s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:60 1350s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:61 1350s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:62 1350s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:63 1350s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:64 1350s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:65 1350s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:66 1350s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:67 1350s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:68 1350s # [unsorted] ===> pushed new thread with id:33, number of threads:10, unprocessed:69 1350s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:70 1350s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:71 1350s # [unsorted] ===> pushed new thread with id:47, number of threads:10, unprocessed:72 1350s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:73 1350s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:74 1350s # [unsorted] ===> pushed new thread with id:90, number of threads:10, unprocessed:75 1350s # [unsorted] ===> pushed new thread with id:54, number of threads:10, unprocessed:76 1350s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:77 1350s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:78 1350s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:79 1350s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:80 1350s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:81 1350s # [unsorted] ===> pushed new thread with id:13, number of threads:10, unprocessed:82 1350s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:83 1350s # [unsorted] ===> pushed new thread with id:48, number of threads:10, unprocessed:84 1350s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:85 1350s # [unsorted] ===> pushed new thread with id:37, number of threads:10, unprocessed:86 1350s # [unsorted] ===> pushed new thread with id:95, number of threads:10, unprocessed:87 1350s # [unsorted] ===> pushed new thread with id:28, number of threads:10, unprocessed:88 1350s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:89 1350s # [unsorted] ===> pushed new thread with id:4, number of threads:10, unprocessed:90 1350s # [unsorted] ===> pushed new thread with id:76, number of threads:10, unprocessed:91 1350s # [unsorted] ===> pushed new thread with id:19, number of threads:10, unprocessed:92 1350s # [unsorted] ===> pushed new thread with id:7, number of threads:10, unprocessed:93 1350s # [unsorted] ===> pushed new thread with id:46, number of threads:10, unprocessed:94 1350s ok 4 /threadpool/no-sort 1350s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:1 1350s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:2 1350s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:3 1350s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:4 1350s # [ sorted] ===> pushed new thread with id:24, number of threads:0, unprocessed:5 1350s # [ sorted] ===> pushed new thread with id:65, number of threads:0, unprocessed:6 1350s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:7 1350s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:8 1350s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:9 1350s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:10 1350s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:11 1350s # [ sorted] ===> pushed new thread with id:83, number of threads:0, unprocessed:12 1350s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:13 1350s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:14 1350s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:15 1350s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:16 1350s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:17 1350s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:18 1350s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:19 1350s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:20 1350s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:21 1350s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:22 1350s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:23 1350s # [ sorted] ===> pushed new thread with id:49, number of threads:0, unprocessed:24 1350s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:25 1350s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:26 1350s # [ sorted] ===> pushed new thread with id:20, number of threads:0, unprocessed:27 1350s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:28 1350s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:29 1350s # [ sorted] ===> pushed new thread with id:91, number of threads:0, unprocessed:30 1350s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:31 1350s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:32 1350s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:33 1350s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:34 1350s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:35 1350s # [ sorted] ===> pushed new thread with id:43, number of threads:0, unprocessed:36 1350s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:37 1350s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:38 1350s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:39 1350s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:40 1350s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:41 1350s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:42 1350s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:43 1350s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:44 1350s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:45 1350s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:46 1350s # [ sorted] ===> pushed new thread with id:81, number of threads:0, unprocessed:47 1350s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:48 1350s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:49 1350s # [ sorted] ===> pushed new thread with id:94, number of threads:0, unprocessed:50 1350s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:51 1350s # [ sorted] ===> pushed new thread with id:8, number of threads:0, unprocessed:52 1350s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:53 1350s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:54 1350s # [ sorted] ===> pushed new thread with id:5, number of threads:0, unprocessed:55 1350s # [ sorted] ===> pushed new thread with id:37, number of threads:0, unprocessed:56 1350s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:57 1350s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:58 1350s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:59 1350s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:60 1350s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:61 1350s # [ sorted] ===> pushed new thread with id:52, number of threads:0, unprocessed:62 1350s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:63 1350s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:64 1350s # [ sorted] ===> pushed new thread with id:79, number of threads:0, unprocessed:65 1350s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:66 1350s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:67 1350s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:68 1350s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:69 1350s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:70 1350s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:71 1350s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:72 1350s # [ sorted] ===> pushed new thread with id:30, number of threads:0, unprocessed:73 1350s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:74 1350s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:75 1350s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:76 1350s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:77 1350s # [ sorted] ===> pushed new thread with id:72, number of threads:0, unprocessed:78 1350s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:79 1350s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:80 1350s # [ sorted] ===> pushed new thread with id:44, number of threads:0, unprocessed:81 1350s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:82 1350s # [ sorted] ===> pushed new thread with id:100, number of threads:0, unprocessed:83 1350s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:84 1350s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:85 1350s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:86 1350s # [ sorted] ===> pushed new thread with id:88, number of threads:0, unprocessed:87 1350s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:88 1350s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:89 1350s # [ sorted] ===> pushed new thread with id:80, number of threads:0, unprocessed:90 1350s # [ sorted] ===> pushed new thread with id:47, number of threads:0, unprocessed:91 1350s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:92 1350s # [ sorted] ===> pushed new thread with id:2, number of threads:0, unprocessed:93 1350s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:94 1350s # [ sorted] ===> pushed new thread with id:90, number of threads:0, unprocessed:95 1350s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:96 1350s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:97 1350s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:98 1350s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:99 1350s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:100 1350s # Starting thread pool processing 1350s ok 5 /threadpool/sort 1351s ok 6 /threadpool/stop-unused-multiple 1351s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1351s # Pool idle thread count: 0, unprocessed jobs: 50 1351s # Pool idle thread count: 0, unprocessed jobs: 0 1351s # Pool idle thread count: 0, unprocessed jobs: 0 1352s # Pool idle thread count: 10, unprocessed jobs: 0 1352s # Pool idle thread count: 10, unprocessed jobs: 0 1352s # Pool idle thread count: 10, unprocessed jobs: 0 1352s # Pool idle thread count: 10, unprocessed jobs: 0 1353s # Executing: glib/thread-pool-slow.test 1353s # Pool idle thread count: 10, unprocessed jobs: 0 1353s # Pool idle thread count: 10, unprocessed jobs: 0 1353s # Pool idle thread count: 10, unprocessed jobs: 0 1355s # Pool idle thread count: 10, unprocessed jobs: 0 1355s # Pool idle thread count: 10, unprocessed jobs: 0 1355s # Pool idle thread count: 10, unprocessed jobs: 0 1355s # Pool idle thread count: 10, unprocessed jobs: 0 1355s # Pool idle thread count: 10, unprocessed jobs: 0 1355s # Pool idle thread count: 10, unprocessed jobs: 0 1355s # Pool idle thread count: 10, unprocessed jobs: 0 1355s # Pool idle thread count: 10, unprocessed jobs: 0 1355s # Pool idle thread count: 10, unprocessed jobs: 0 1356s # Pool idle thread count: 10, unprocessed jobs: 0 1356s # Pool idle thread count: 10, unprocessed jobs: 0 1356s # Pool idle thread count: 10, unprocessed jobs: 0 1356s # Pool idle thread count: 10, unprocessed jobs: 0 1357s # Pool idle thread count: 10, unprocessed jobs: 0 1357s # Pool idle thread count: 10, unprocessed jobs: 0 1357s # Pool idle thread count: 10, unprocessed jobs: 0 1357s # Pool idle thread count: 10, unprocessed jobs: 0 1358s # Executing: glib/thread-pool-slow.test 1358s # Pool idle thread count: 10, unprocessed jobs: 0 1358s # Pool idle thread count: 10, unprocessed jobs: 0 1358s # Pool idle thread count: 10, unprocessed jobs: 0 1358s # Pool idle thread count: 10, unprocessed jobs: 0 1359s # Pool idle thread count: 10, unprocessed jobs: 0 1359s # Pool idle thread count: 10, unprocessed jobs: 0 1359s # Pool idle thread count: 10, unprocessed jobs: 0 1359s # Pool idle thread count: 10, unprocessed jobs: 0 1360s # Pool idle thread count: 10, unprocessed jobs: 2 1360s # Pool idle thread count: 8, unprocessed jobs: 0 1360s # Pool idle thread count: 8, unprocessed jobs: 0 1360s # Pool idle thread count: 8, unprocessed jobs: 0 1360s # Pool idle thread count: 10, unprocessed jobs: 0 1360s # Pool idle thread count: 10, unprocessed jobs: 0 1361s # Pool idle thread count: 10, unprocessed jobs: 0 1361s # Pool idle thread count: 10, unprocessed jobs: 0 1361s # Pool idle thread count: 10, unprocessed jobs: 0 1361s # Pool idle thread count: 10, unprocessed jobs: 0 1362s # Pool idle thread count: 2, unprocessed jobs: 0 1362s # Pool idle thread count: 2, unprocessed jobs: 0 1362s # Pool idle thread count: 2, unprocessed jobs: 0 1362s # Pool idle thread count: 2, unprocessed jobs: 0 1363s # Executing: glib/thread-pool-slow.test 1363s # Pool idle thread count: 2, unprocessed jobs: 0 1363s # Pool idle thread count: 2, unprocessed jobs: 0 1363s # Pool idle thread count: 2, unprocessed jobs: 0 1363s # Pool idle thread count: 2, unprocessed jobs: 0 1364s # Pool idle thread count: 2, unprocessed jobs: 0 1364s # Pool idle thread count: 2, unprocessed jobs: 0 1364s # Pool idle thread count: 2, unprocessed jobs: 0 1364s # Pool idle thread count: 2, unprocessed jobs: 0 1365s # Pool idle thread count: 2, unprocessed jobs: 0 1365s # Pool idle thread count: 2, unprocessed jobs: 0 1365s # Pool idle thread count: 2, unprocessed jobs: 0 1365s # Pool idle thread count: 2, unprocessed jobs: 0 1366s # Pool idle thread count: 2, unprocessed jobs: 0 1366s # Pool idle thread count: 2, unprocessed jobs: 0 1366s # Pool idle thread count: 2, unprocessed jobs: 0 1366s # Pool idle thread count: 2, unprocessed jobs: 0 1367s # Pool idle thread count: 2, unprocessed jobs: 0 1367s # Pool idle thread count: 2, unprocessed jobs: 0 1367s # Pool idle thread count: 2, unprocessed jobs: 0 1367s # Pool idle thread count: 2, unprocessed jobs: 0 1368s # Executing: glib/thread-pool-slow.test 1368s # Pool idle thread count: 2, unprocessed jobs: 0 1368s # Pool idle thread count: 2, unprocessed jobs: 0 1368s # Pool idle thread count: 2, unprocessed jobs: 0 1368s # Pool idle thread count: 2, unprocessed jobs: 0 1369s # Pool idle thread count: 2, unprocessed jobs: 0 1369s # Pool idle thread count: 2, unprocessed jobs: 0 1369s # Pool idle thread count: 2, unprocessed jobs: 0 1369s # Pool idle thread count: 2, unprocessed jobs: 0 1370s # Pool idle thread count: 2, unprocessed jobs: 0 1370s # Pool idle thread count: 2, unprocessed jobs: 0 1370s ok 7 /threadpool/idle-time 1370s # slow test /threadpool/idle-time executed in 19.53 secs 1370s # End of threadpool tests 1370s ok - glib/thread-pool-slow.test 1370s # Running test: glib/readwrite.test 1370s TAP version 14 1370s # random seed: R02Sa37f381584115e1c4e253c4850613d79 1370s 1..3 1370s # Start of readwrite tests 1370s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1370s ok 1 /readwrite/test_g_file_open_readwrite 1370s ok 2 /readwrite/test_g_file_create_readwrite 1370s ok 3 /readwrite/test_g_file_replace_readwrite 1370s # End of readwrite tests 1370s ok - glib/readwrite.test 1370s # Running test: glib/portal-support-flatpak-gsettings-only.test 1370s TAP version 14 1370s ok - glib/portal-support-flatpak-gsettings-only.test 1370s # Running test: glib/singleton.test 1370s # random seed: R02Sc5b74fca1a449e83e2acb244ca2124c7 1370s 1..1 1370s # Start of portal-support tests 1370s # Start of flatpak tests 1370s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-gsettings-only_F77FK3/portal-support/flatpak/gsettings/.dirs/home 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_F77FK3/portal-support/flatpak/gsettings/.dirs/cache 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_F77FK3/portal-support/flatpak/gsettings/.dirs/system-config1:/tmp/test_portal-support-flatpak-gsettings-only_F77FK3/portal-support/flatpak/gsettings/.dirs/system-config2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-gsettings-only_F77FK3/portal-support/flatpak/gsettings/.dirs/config 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-gsettings-only_F77FK3/portal-support/flatpak/gsettings/.dirs/system-data1:/tmp/test_portal-support-flatpak-gsettings-only_F77FK3/portal-support/flatpak/gsettings/.dirs/system-data2 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-gsettings-only_F77FK3/portal-support/flatpak/gsettings/.dirs/data 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-gsettings-only_F77FK3/portal-support/flatpak/gsettings/.dirs/state 1370s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-gsettings-only_F77FK3/portal-support/flatpak/gsettings/.dirs/runtime 1370s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-gsettings-only_F77FK3/portal-support/flatpak/gsettings/.dirs/runtime/.flatpak-info 1370s ok 1 /portal-support/flatpak/gsettings 1370s # End of flatpak tests 1370s # End of portal-support tests 1370s TAP version 14 1370s ok - glib/singleton.test 1370s # random seed: R02S82e03745d69e992f26d6ee1a645d6e4a 1370s 1..2 1370s # Start of gobject tests 1370s # Start of singleton tests 1370s ok 1 /gobject/singleton/construction 1370s # /gobject/singleton/construct-property summary: Test that creating a singleton with a construct-time property works 1370s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2666 1370s ok 2 /gobject/singleton/construct-property 1370s # End of singleton tests 1370s # End of gobject tests 1370s # Running test: glib/search-utils.test 1370s ok - glib/search-utils.test 1370s # Running test: glib/objects-refcount2.test 1370s TAP version 14 1370s # random seed: R02Saced47ff056f61f7425dad9ec849deeb 1370s # GLib-DEBUG: Current user locale: C.UTF-8 1370s 1..6 1370s # Start of search tests 1370s # GLib-DEBUG: Started 1370s # GLib-DEBUG: 'he' - 'Hello World' should match: OK 1370s # GLib-DEBUG: 'wo' - 'Hello World' should match: OK 1370s # GLib-DEBUG: 'lo' - 'Hello World' should NOT match: OK 1370s # GLib-DEBUG: 'ld' - 'Hello World' should NOT match: OK 1370s # GLib-DEBUG: 'wo' - 'Hello-World' should match: OK 1370s # GLib-DEBUG: 'wo' - 'HelloWorld' should NOT match: OK 1370s ok 1 /search/basic 1370s # GLib-DEBUG: Started 1370s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1370s # GLib-DEBUG: 'gaetan' - 'Gaëtan' should match: OK 1370s # GLib-DEBUG: 'ele' - 'élève' should match: OK 1370s # GLib-DEBUG: 'AzaÏs' - 'Azais' should NOT match: OK 1370s # GLib-DEBUG: 'Azais' - 'AzaÏs' should match: OK 1370s ok 2 /search/composed 1370s # GLib-DEBUG: Started 1370s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 1370s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1370s ok 3 /search/decomposed 1370s # GLib-DEBUG: Started 1370s # GLib-DEBUG: 'ist' - 'İstanbul' should match: OK 1370s # GLib-DEBUG: 'diyarbakir' - 'Diyarbakır' should match: OK 1370s ok 4 /search/turkish 1370s # GLib-DEBUG: Started 1370s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1370s # GLib-DEBUG: 'Jör' - 'Jorgen' should NOT match: OK 1370s # GLib-DEBUG: 'jor' - 'Jörgen' should match: OK 1370s ok 5 /search/c_locale_unicode 1370s # GLib-DEBUG: Started 1370s # GLib-DEBUG: 'Xav Cla' - 'Xavier Claessens' should match: OK 1370s # GLib-DEBUG: 'Cla Xav' - 'Xavier Claessens' should match: OK 1370s # GLib-DEBUG: ' b ' - 'Foo Bar Baz' should match: OK 1370s # GLib-DEBUG: 'bar bazz' - 'Foo Bar Baz' should NOT match: OK 1370s ok 6 /search/multi_words 1370s # End of search tests 1370s TAP version 14 1370s # random seed: R02S2b73039da44b1a3b6580a19c59cd1e99 1370s 1..1 1370s # Start of gobject tests 1370s # Start of refcount tests 1370s # init 0x19468133dd70 1370s # 1370s # . 1370s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1371s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1372s # . 1373s # . 1373s # . 1373s # . 1373s # Executing: glib/objects-refcount2.test 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1373s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1374s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1375s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1376s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1377s # . 1378s # . 1378s # . 1378s # . 1378s # Executing: glib/objects-refcount2.test 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1378s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1379s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1380s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1381s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1382s # . 1383s # . 1383s # . 1383s # . 1383s # Executing: glib/objects-refcount2.test 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1383s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1384s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1385s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1386s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1387s # . 1388s # . 1388s # . 1388s # . 1388s # Executing: glib/objects-refcount2.test 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1388s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1389s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1390s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1391s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1392s # . 1393s # . 1393s # . 1393s # . 1393s # Executing: glib/objects-refcount2.test 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1393s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1394s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1395s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1396s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1397s # . 1398s # . 1398s # . 1398s # . 1398s # Executing: glib/objects-refcount2.test 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1398s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1399s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1400s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1401s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1402s # . 1403s # . 1403s # . 1403s # . 1403s # Executing: glib/objects-refcount2.test 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1403s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1404s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1405s # . 1406s # . 1406s # . 1406s # . 1406s # . 1406s # . 1406s # . 1406s # . 1406s # . 1406s # . 1406s # . 1406s # . 1406s # dispose 0x19468133dd70! 1406s # 1406s ok 1 /gobject/refcount/object-advanced 1406s # slow test /gobject/refcount/object-advanced executed in 35.44 secs 1406s # End of refcount tests 1406s # End of gobject tests 1406s ok - glib/objects-refcount2.test 1406s TAP version 14 1406s # random seed: R02S551e9d2067047bd83fb4aa67cbeafe9a 1406s 1..4 1406s # Start of C tests 1406s ok 1 /C/standard-89 1406s # End of C tests 1406s # Start of alignof tests 1406s ok 2 /alignof/fallback 1406s # End of alignof tests 1406s # Start of assert tests 1406s ok 3 /assert/static 1406s # End of assert tests 1406s # Start of struct tests 1406s ok 4 /struct/sizeof_member 1406s # End of struct tests 1406s # Running test: glib/macros-c-89.test 1406s ok - glib/macros-c-89.test 1406s # Running test: glib/vfs.test 1406s ok - glib/vfs.test 1406s # Running test: glib/gdbus-error.test 1406s TAP version 14 1406s # random seed: R02S0712279fae13071b19f6051b7df2139c 1406s 1..3 1406s # Start of gvfs tests 1406s ok 1 /gvfs/local 1406s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1406s ok 2 /gvfs/register-scheme 1406s # Start of resource tests 1406s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3090 1406s # /gvfs/resource/malformed-escaping summary: Test that g_vfs_get_file_for_uri() returns an invalid file for an invalid URI 1406s ok 3 /gvfs/resource/malformed-escaping 1406s # End of resource tests 1406s # End of gvfs tests 1406s TAP version 14 1406s # random seed: R02Se0571560419f6e4429ea87beddeabe71 1406s 1..4 1406s # Start of gdbus tests 1406s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/registered-errors/.dirs/home 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/registered-errors/.dirs/cache 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_0XA5J3/gdbus/registered-errors/.dirs/system-config1:/tmp/test_gdbus-error_0XA5J3/gdbus/registered-errors/.dirs/system-config2 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/registered-errors/.dirs/config 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_0XA5J3/gdbus/registered-errors/.dirs/system-data1:/tmp/test_gdbus-error_0XA5J3/gdbus/registered-errors/.dirs/system-data2 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/registered-errors/.dirs/data 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/registered-errors/.dirs/state 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_0XA5J3/gdbus/registered-errors/.dirs/runtime 1406s ok 1 /gdbus/registered-errors 1406s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/unregistered-errors/.dirs/home 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/unregistered-errors/.dirs/cache 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_0XA5J3/gdbus/unregistered-errors/.dirs/system-config1:/tmp/test_gdbus-error_0XA5J3/gdbus/unregistered-errors/.dirs/system-config2 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/unregistered-errors/.dirs/config 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_0XA5J3/gdbus/unregistered-errors/.dirs/system-data1:/tmp/test_gdbus-error_0XA5J3/gdbus/unregistered-errors/.dirs/system-data2 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/unregistered-errors/.dirs/data 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/unregistered-errors/.dirs/state 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_0XA5J3/gdbus/unregistered-errors/.dirs/runtime 1406s ok - glib/gdbus-error.test 1406s # Running test: glib/memory-monitor-poll.test 1406s ok 2 /gdbus/unregistered-errors 1406s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/transparent-gerror/.dirs/home 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/transparent-gerror/.dirs/cache 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_0XA5J3/gdbus/transparent-gerror/.dirs/system-config1:/tmp/test_gdbus-error_0XA5J3/gdbus/transparent-gerror/.dirs/system-config2 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/transparent-gerror/.dirs/config 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_0XA5J3/gdbus/transparent-gerror/.dirs/system-data1:/tmp/test_gdbus-error_0XA5J3/gdbus/transparent-gerror/.dirs/system-data2 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/transparent-gerror/.dirs/data 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/transparent-gerror/.dirs/state 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_0XA5J3/gdbus/transparent-gerror/.dirs/runtime 1406s ok 3 /gdbus/transparent-gerror 1406s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/register-error/.dirs/home 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/register-error/.dirs/cache 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-error_0XA5J3/gdbus/register-error/.dirs/system-config1:/tmp/test_gdbus-error_0XA5J3/gdbus/register-error/.dirs/system-config2 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/register-error/.dirs/config 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-error_0XA5J3/gdbus/register-error/.dirs/system-data1:/tmp/test_gdbus-error_0XA5J3/gdbus/register-error/.dirs/system-data2 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/register-error/.dirs/data 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-error_0XA5J3/gdbus/register-error/.dirs/state 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-error_0XA5J3/gdbus/register-error/.dirs/runtime 1406s ok 4 /gdbus/register-error 1406s # End of gdbus tests 1406s TAP version 14 1406s # random seed: R02Sd46c78a6c50f381f078c7a2c054f7649 1406s 1..4 1406s # Start of memory-monitor-poll tests 1406s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation poll (GMemoryMonitorPoll) for ‘gio-memory-monitor’ 1406s ok 1 /memory-monitor-poll/dup-default 1406s # GLib-GIO-DEBUG: memory free ratio 0.190000 1406s # GLib-GIO-DEBUG: Send low memory signal with warning level 2 1406s ok 2 /memory-monitor-poll/critical-event 1406s # GLib-GIO-DEBUG: memory free ratio 0.290000 1406s # GLib-GIO-DEBUG: Send low memory signal with warning level 1 1406s ok 3 /memory-monitor-poll/medium-event 1406s ok - glib/memory-monitor-poll.test 1406s # Running test: glib/portal-support-flatpak-none.test 1406s # GLib-GIO-DEBUG: memory free ratio 0.390000 1406s # GLib-GIO-DEBUG: Send low memory signal with warning level 0 1406s ok 4 /memory-monitor-poll/low-event 1406s # End of memory-monitor-poll tests 1406s ok - glib/portal-support-flatpak-none.test 1406s # Running test: glib/shell.test 1406s TAP version 14 1406s # random seed: R02S8e6b20bb0bc607ec6dfc2ea539c13f1c 1406s 1..1 1406s # Start of portal-support tests 1406s # Start of flatpak tests 1406s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-flatpak-none_6ZS8J3/portal-support/flatpak/none/.dirs/home 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-flatpak-none_6ZS8J3/portal-support/flatpak/none/.dirs/cache 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-flatpak-none_6ZS8J3/portal-support/flatpak/none/.dirs/system-config1:/tmp/test_portal-support-flatpak-none_6ZS8J3/portal-support/flatpak/none/.dirs/system-config2 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-flatpak-none_6ZS8J3/portal-support/flatpak/none/.dirs/config 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-flatpak-none_6ZS8J3/portal-support/flatpak/none/.dirs/system-data1:/tmp/test_portal-support-flatpak-none_6ZS8J3/portal-support/flatpak/none/.dirs/system-data2 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-flatpak-none_6ZS8J3/portal-support/flatpak/none/.dirs/data 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-flatpak-none_6ZS8J3/portal-support/flatpak/none/.dirs/state 1406s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-flatpak-none_6ZS8J3/portal-support/flatpak/none/.dirs/runtime 1406s # Creating .flatpak-info in /tmp/test_portal-support-flatpak-none_6ZS8J3/portal-support/flatpak/none/.dirs/runtime/.flatpak-info 1406s ok 1 /portal-support/flatpak/none 1406s # End of flatpak tests 1406s # End of portal-support tests 1406s TAP version 14 1406s # random seed: R02Sef9c8fa3880dcc6e72f57936adf8f53e 1406s 1..52 1406s # Start of shell tests 1406s # Start of cmdline tests 1406s test cmdline: foo bar 1406s ok 1 /shell/cmdline/0 1406s test cmdline: foo 'bar' 1406s ok 2 /shell/cmdline/1 1406s test cmdline: foo "bar" 1406s ok 3 /shell/cmdline/2 1406s test cmdline: foo '' 'bar' 1406s ok 4 /shell/cmdline/3 1406s test cmdline: foo "bar"'baz'blah'foo'\''blah'"boo" 1406s ok 5 /shell/cmdline/4 1406s test cmdline: foo blah foo bar baz 1406s ok 6 /shell/cmdline/5 1406s test cmdline: foo ' spaces more spaces lots of spaces in this ' 1406s ok 7 /shell/cmdline/6 1406s test cmdline: foo \ 1406s bar 1406s ok 8 /shell/cmdline/7 1406s test cmdline: foo '' '' 1406s ok 9 /shell/cmdline/8 1406s ok - glib/shell.test 1406s # Running test: glib/mappedfile.test 1406s test cmdline: foo \" la la la 1406s ok 10 /shell/cmdline/9 1406s test cmdline: foo \ foo woo woo\ 1406s ok 11 /shell/cmdline/10 1406s test cmdline: foo "yada yada \$\"" 1406s ok 12 /shell/cmdline/11 1406s test cmdline: foo "c:\\" 1406s ok 13 /shell/cmdline/12 1406s test cmdline: foo # bla bla bla 1406s bar 1406s ok 14 /shell/cmdline/13 1406s test cmdline: foo a#b 1406s ok 15 /shell/cmdline/14 1406s test cmdline: #foo 1406s ok 16 /shell/cmdline/15 1406s test cmdline: foo bar \ 1406s ok 17 /shell/cmdline/16 1406s test cmdline: foo 'bar baz 1406s ok 18 /shell/cmdline/17 1406s test cmdline: foo '"bar" baz 1406s ok 19 /shell/cmdline/18 1406s test cmdline: 1406s ok 20 /shell/cmdline/19 1406s test cmdline: 1406s ok 21 /shell/cmdline/20 1406s test cmdline: # foo bar 1406s ok 22 /shell/cmdline/21 1406s test cmdline: # 1406s ok 23 /shell/cmdline/22 1406s test cmdline: foo '/bar/summer'\''09 tours.pdf' 1406s ok 24 /shell/cmdline/23 1406s # End of cmdline tests 1406s # Start of quote tests 1406s ok 25 /shell/quote/0 1406s ok 26 /shell/quote/1 1406s ok 27 /shell/quote/2 1406s ok 28 /shell/quote/3 1406s ok 29 /shell/quote/4 1406s ok 30 /shell/quote/5 1406s ok 31 /shell/quote/6 1406s # End of quote tests 1406s # Start of unquote tests 1406s ok 32 /shell/unquote/0 1406s ok 33 /shell/unquote/1 1406s ok 34 /shell/unquote/2 1406s ok 35 /shell/unquote/3 1406s ok 36 /shell/unquote/4 1406s ok 37 /shell/unquote/5 1406s ok 38 /shell/unquote/6 1406s ok 39 /shell/unquote/7 1406s ok 40 /shell/unquote/8 1406s ok 41 /shell/unquote/9 1406s ok 42 /shell/unquote/10 1406s ok 43 /shell/unquote/11 1406s ok 44 /shell/unquote/12 1406s ok 45 /shell/unquote/13 1406s ok 46 /shell/unquote/14 1406s ok 47 /shell/unquote/15 1406s ok 48 /shell/unquote/16 1406s ok 49 /shell/unquote/17 1406s ok 50 /shell/unquote/18 1406s ok 51 /shell/unquote/19 1406s ok 52 /shell/unquote/20 1406s # End of unquote tests 1406s # End of shell tests 1406s TAP version 14 1406s # random seed: R02S8e2b1ab9cf046e8451d4db3e31a475bf 1406s 1..7 1406s # Start of mappedfile tests 1406s ok 1 /mappedfile/basic 1406s ok 2 /mappedfile/empty 1406s ok 3 /mappedfile/device 1406s ok 4 /mappedfile/nonexisting 1406s ok 5 /mappedfile/writable 1406s ok 6 /mappedfile/writable_fd 1406s ok 7 /mappedfile/gbytes 1406s # End of mappedfile tests 1406s ok - glib/mappedfile.test 1406s # Running test: glib/ir-parser.test 1406s ok - glib/ir-parser.test 1406s # Running test: glib/unicode-normalize.test 1406s TAP version 14 1406s # random seed: R02Sf421dbf092822e9a18a73f0d1c1a2fd0 1406s 1..1 1406s # Start of ir-parser tests 1406s # /ir-parser/type-parsing summary: Test parsing different valid and invalid types 1406s # GLib-GIRepository-DEBUG: 1406s # GLib-GIRepository-DEBUG: pushing node 1 dummy 1406s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 1406s # GLib-GIRepository-DEBUG: 1406s # GLib-GIRepository-DEBUG: 1406s # GLib-GIRepository-DEBUG: 1406s # GLib-GIRepository-DEBUG: 1406s # GLib-GIRepository-DEBUG: popping node 1 dummy 1406s # GLib-GIRepository-DEBUG: 1406s # GLib-GIRepository-DEBUG: 1406s # GLib-GIRepository-DEBUG: 1406s # GLib-GIRepository-DEBUG: pushing node 1 dummy 1406s # GLib-GIRepository-DEBUG: Parsed type: GLib.Error => 20 1406s # GLib-GIRepository-DEBUG: 1406s # GLib-GIRepository-DEBUG: 1406s # GLib-GIRepository-DEBUG: 1406s # GLib-GIRepository-DEBUG: 1406s # GLib-GIRepository-DEBUG: popping node 1 dummy 1406s # GLib-GIRepository-DEBUG: 1406s # GLib-GIRepository-DEBUG: 1406s # GLib-GIRepository-DEBUG: 1406s # GLib-GIRepository-DEBUG: pushing node 1 dummy 1406s # GLib-GIRepository-DEBUG: Failed to parse type: 'GLib.Error [-r ] [-{i|b} ""] [-s #] [-{h|x|y}] 1421s # -r specify root type 1421s # -n don't descend type tree 1421s # -h show help 1421s # -b specify indent string 1421s # -i specify incremental indent string 1421s # -s specify line spacing 1421s # qualifiers: 1421s # froots iterate over fundamental roots 1421s # tree print type tree 1421s # Error: 1421s ok 3 __main__.TestGobjectQuery.test_tree 1421s # gobject-query: /usr/bin/gobject-query 1421s # tmpdir: /tmp/tmphkawzn9x 1421s # Running: ['/usr/bin/gobject-query', 'tree'] 1421s # Return code: 0 1421s # Output: 1421s # GObject 1421s # Error: 1421s ok 4 __main__.TestGobjectQuery.test_version 1421s # gobject-query: /usr/bin/gobject-query 1421s # tmpdir: /tmp/tmp4gac2yhe 1421s # Running: ['/usr/bin/gobject-query', '--version'] 1421s # Return code: 0 1421s # Output: 1421s # 2.86.3 1421s # Error: 1421s 1..4 1421s ok - glib/gobject-query.py.test 1421s # Running test: glib/portal-support-snap.test 1421s TAP version 14 1421s # random seed: R02Sd4fd3fe9a27b8caca4d2cee6a50a3e5d 1421s 1..7 1421s # Start of portal-support tests 1421s # Start of snap tests 1421s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/no-snapctl/.dirs/home 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/no-snapctl/.dirs/cache 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/no-snapctl/.dirs/system-config1:/tmp/test_portal-support-snap_54JDK3/portal-support/snap/no-snapctl/.dirs/system-config2 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/no-snapctl/.dirs/config 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/no-snapctl/.dirs/system-data1:/tmp/test_portal-support-snap_54JDK3/portal-support/snap/no-snapctl/.dirs/system-data2 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/no-snapctl/.dirs/data 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/no-snapctl/.dirs/state 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/no-snapctl/.dirs/runtime 1421s # Created snap.yaml in /tmp/test_portal-support-snap_54JDK3/meta/snap.yaml 1421s Unable to clean up temporary directory /tmp/test_portal-support-snap_54JDK3/portal-support/snap/no-snapctl: No such file or directory 1421s ok 1 /portal-support/snap/no-snapctl 1421s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/none/.dirs/home 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/none/.dirs/cache 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/none/.dirs/system-config1:/tmp/test_portal-support-snap_54JDK3/portal-support/snap/none/.dirs/system-config2 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/none/.dirs/config 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/none/.dirs/system-data1:/tmp/test_portal-support-snap_54JDK3/portal-support/snap/none/.dirs/system-data2 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/none/.dirs/data 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/none/.dirs/state 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/none/.dirs/runtime 1421s # Created snap.yaml in /tmp/test_portal-support-snap_54JDK3/meta/snap.yaml 1421s # Created snapctl in /tmp/test_portal-support-snap_54JDK3/portal-support/snap/none/.dirs/runtime/snapctl 1421s Unable to clean up temporary directory /tmp/test_portal-support-snap_54JDK3/portal-support/snap/none: No such file or directory 1421s ok 2 /portal-support/snap/none 1421s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/all/.dirs/home 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/all/.dirs/cache 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/all/.dirs/system-config1:/tmp/test_portal-support-snap_54JDK3/portal-support/snap/all/.dirs/system-config2 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/all/.dirs/config 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/all/.dirs/system-data1:/tmp/test_portal-support-snap_54JDK3/portal-support/snap/all/.dirs/system-data2 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/all/.dirs/data 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/all/.dirs/state 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/all/.dirs/runtime 1421s # Created snap.yaml in /tmp/test_portal-support-snap_54JDK3/meta/snap.yaml 1421s # Created snapctl in /tmp/test_portal-support-snap_54JDK3/portal-support/snap/all/.dirs/runtime/snapctl 1421s Unable to clean up temporary directory /tmp/test_portal-support-snap_54JDK3/portal-support/snap/all: No such file or directory 1421s ok 3 /portal-support/snap/all 1421s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/desktop-only/.dirs/home 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/desktop-only/.dirs/cache 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/desktop-only/.dirs/system-config1:/tmp/test_portal-support-snap_54JDK3/portal-support/snap/desktop-only/.dirs/system-config2 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/desktop-only/.dirs/config 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/desktop-only/.dirs/system-data1:/tmp/test_portal-support-snap_54JDK3/portal-support/snap/desktop-only/.dirs/system-data2 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/desktop-only/.dirs/data 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/desktop-only/.dirs/state 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/desktop-only/.dirs/runtime 1421s # Created snap.yaml in /tmp/test_portal-support-snap_54JDK3/meta/snap.yaml 1421s # Created snapctl in /tmp/test_portal-support-snap_54JDK3/portal-support/snap/desktop-only/.dirs/runtime/snapctl 1421s Unable to clean up temporary directory /tmp/test_portal-support-snap_54JDK3/portal-support/snap/desktop-only: No such file or directory 1421s ok 4 /portal-support/snap/desktop-only 1421s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/network-only/.dirs/home 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/network-only/.dirs/cache 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/network-only/.dirs/system-config1:/tmp/test_portal-support-snap_54JDK3/portal-support/snap/network-only/.dirs/system-config2 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/network-only/.dirs/config 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/network-only/.dirs/system-data1:/tmp/test_portal-support-snap_54JDK3/portal-support/snap/network-only/.dirs/system-data2 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/network-only/.dirs/data 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/network-only/.dirs/state 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/network-only/.dirs/runtime 1421s # Created snap.yaml in /tmp/test_portal-support-snap_54JDK3/meta/snap.yaml 1421s # Created snapctl in /tmp/test_portal-support-snap_54JDK3/portal-support/snap/network-only/.dirs/runtime/snapctl 1421s Unable to clean up temporary directory /tmp/test_portal-support-snap_54JDK3/portal-support/snap/network-only: No such file or directory 1421s ok 5 /portal-support/snap/network-only 1421s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/gsettings-only/.dirs/home 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/gsettings-only/.dirs/cache 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/gsettings-only/.dirs/system-config1:/tmp/test_portal-support-snap_54JDK3/portal-support/snap/gsettings-only/.dirs/system-config2 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/gsettings-only/.dirs/config 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/gsettings-only/.dirs/system-data1:/tmp/test_portal-support-snap_54JDK3/portal-support/snap/gsettings-only/.dirs/system-data2 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/gsettings-only/.dirs/data 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/gsettings-only/.dirs/state 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/gsettings-only/.dirs/runtime 1421s # Created snap.yaml in /tmp/test_portal-support-snap_54JDK3/meta/snap.yaml 1421s # Created snapctl in /tmp/test_portal-support-snap_54JDK3/portal-support/snap/gsettings-only/.dirs/runtime/snapctl 1421s Unable to clean up temporary directory /tmp/test_portal-support-snap_54JDK3/portal-support/snap/gsettings-only: No such file or directory 1421s ok 6 /portal-support/snap/gsettings-only 1421s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/home 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/cache 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/system-config1:/tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/system-config2 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/config 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/system-data1:/tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/system-data2 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/data 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/state 1421s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/runtime 1421s # Created snap.yaml in /tmp/test_portal-support-snap_54JDK3/meta/snap.yaml 1421s # Created snapctl in /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1421s # Created snapctl in /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1421s # Created snapctl in /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1421s # Created snapctl in /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1421s # Created snapctl in /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1421s # Created snapctl in /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1421s # Created snapctl in /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically/.dirs/runtime/snapctl 1421s Unable to clean up temporary directory /tmp/test_portal-support-snap_54JDK3/portal-support/snap/updates-dynamically: No such file or directory 1421s ok 7 /portal-support/snap/updates-dynamically 1421s # End of snap tests 1421s # End of portal-support tests 1421s Unable to clean up temporary directory /tmp/test_portal-support-snap_54JDK3: No such file or directory 1421s ok - glib/portal-support-snap.test 1421s # Running test: glib/thread-pool.test 1421s TAP version 14 1421s # random seed: R02Sacf56997e6061e1262e695ee6f200bd7 1421s 1..6 1421s # Start of thread_pool tests 1421s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3712 1421s ok 1 /thread_pool/pool_fail 1421s # /thread_pool/shared summary: Tests that a shared, non-exclusive thread pool generally works. 1421s ok 2 /thread_pool/shared 1421s # /thread_pool/exclusive summary: Tests that an exclusive thread pool generally works. 1421s ok 3 /thread_pool/exclusive 1421s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1421s # /thread_pool/create_shared_after_exclusive summary: Tests that creating a shared pool after an exclusive one works. 1421s ok 4 /thread_pool/create_shared_after_exclusive 1421s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/121 1421s ok - glib/thread-pool.test 1421s # Running test: glib/objects-refcount1.test 1421s ok 5 /thread_pool/create_full 1421s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2012 1421s # /thread_pool/create_exclusive_after_shared summary: Tests that creating an exclusive pool after a shared one works. 1421s ok 6 /thread_pool/create_exclusive_after_shared 1421s # End of thread_pool tests 1421s TAP version 14 1421s # random seed: R02Saec795e8fb3eecd840808af249a1185b 1421s 1..1 1421s # Start of gobject tests 1421s # Start of refcount tests 1421s # init 0x1112e190dd90 1421s # 1421s # init 0x1112e190dea0 1421s # 1423s # Executing: glib/objects-refcount1.test 1426s # dispose 0x1112e190dd90! 1426s # 1426s # dispose 0x1112e190dea0! 1426s # 1426s ok 1 /gobject/refcount/object-basics 1426s # slow test /gobject/refcount/object-basics executed in 5.01 secs 1426s # End of refcount tests 1426s # End of gobject tests 1426s ok - glib/objects-refcount1.test 1426s # Running test: glib/defaultvalue.test 1426s TAP version 14 1426s # random seed: R02S479967de9222669538921056f1b9ab1d 1426s 1..84 1426s # Start of Default Values tests 1426s ok 1 /Default Values/GAppInfoMonitor # SKIP singleton 1426s ok 2 /Default Values/GAppLaunchContext 1426s ok 3 /Default Values/GApplicationCommandLine 1426s # skipping GApplication:is-remote 1426s ok 4 /Default Values/GApplication 1426s ok 5 /Default Values/GBinding # SKIP mandatory construct params 1426s ok 6 /Default Values/GBindingGroup 1426s ok 7 /Default Values/GBufferedInputStream # SKIP mandatory construct params 1426s ok 8 /Default Values/GBufferedOutputStream # SKIP mandatory construct params 1426s ok 9 /Default Values/GBytesIcon 1426s ok 10 /Default Values/GCancellable 1426s ok 11 /Default Values/GCharsetConverter # SKIP mandatory construct params 1426s ok 12 /Default Values/GConverterInputStream # SKIP mandatory construct params 1426s ok 13 /Default Values/GConverterOutputStream # SKIP mandatory construct params 1426s ok 14 /Default Values/GCredentials 1426s ok 15 /Default Values/GDataInputStream # SKIP mandatory construct params 1426s ok 16 /Default Values/GDataOutputStream # SKIP mandatory construct params 1426s ok 17 /Default Values/GDBusActionGroup # SKIP mandatory construct params 1426s ok 18 /Default Values/GDBusAuthObserver 1426s ok 19 /Default Values/GDBusConnection # SKIP mandatory construct params 1426s ok 20 /Default Values/GDBusMenuModel # SKIP crash in finalize 1426s ok 21 /Default Values/GDBusMessage 1426s ok 22 /Default Values/GDBusMethodInvocation # SKIP crash in finalize 1426s ok 23 /Default Values/GDBusObjectManagerClient # SKIP mandatory construct params 1426s ok 24 /Default Values/GDBusObjectManagerServer # SKIP mandatory construct params 1426s ok 25 /Default Values/GDBusObjectProxy 1426s ok 26 /Default Values/GDBusObjectSkeleton 1426s ok 27 /Default Values/GDBusProxy # SKIP mandatory construct params 1426s ok 28 /Default Values/GDBusServer # SKIP mandatory construct params 1426s ok 29 /Default Values/GEmblem 1426s ok 30 /Default Values/GEmblemedIcon 1426s ok 31 /Default Values/GFileEnumerator # SKIP should be abstract 1426s ok 32 /Default Values/GFileInfo 1426s ok 33 /Default Values/GFileInputStream 1426s ok 34 /Default Values/GFileIOStream # SKIP should be abstract 1426s ok 35 /Default Values/GFileOutputStream 1426s ok 36 /Default Values/GFilenameCompleter 1426s ok 37 /Default Values/GInetAddress # SKIP mandatory construct params 1426s ok 38 /Default Values/GInetAddressMask # SKIP initialization failed 1426s ok 39 /Default Values/GInetSocketAddress # SKIP mandatory construct params 1426s ok 40 /Default Values/GInitiallyUnowned 1426s ok 41 /Default Values/GIOModule 1426s ok 42 /Default Values/GListStore 1426s ok 43 /Default Values/GMemoryInputStream 1426s ok 44 /Default Values/GMemoryOutputStream 1426s ok 45 /Default Values/GMenu 1426s ok 46 /Default Values/GMenuItem 1426s ok 47 /Default Values/GMountOperation 1426s ok 48 /Default Values/GNativeSocketAddress 1426s ok 49 /Default Values/GNetworkAddress 1426s ok 50 /Default Values/GNetworkService 1426s ok 51 /Default Values/GNotification 1426s ok 52 /Default Values/GObject 1426s ok 53 /Default Values/GPropertyAction # SKIP mandatory construct params 1426s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation dummy (GDummyProxyResolver) for ‘gio-proxy-resolver’ 1426s # skipping GProxyAddressEnumerator:proxy-resolver 1426s ok 54 /Default Values/GProxyAddressEnumerator 1426s ok 55 /Default Values/GProxyAddress # SKIP mandatory construct params 1426s ok 56 /Default Values/GSettings # SKIP mandatory construct params 1426s ok 57 /Default Values/GSignalGroup 1426s ok 58 /Default Values/GSimpleAction 1426s ok 59 /Default Values/GSimpleActionGroup 1426s ok 60 /Default Values/GSimpleAsyncResult 1426s ok 61 /Default Values/GSimpleIOStream # SKIP mandatory construct params 1426s ok 62 /Default Values/GSimplePermission 1426s ok 63 /Default Values/GSimpleProxyResolver 1426s # skipping GSocketClient:proxy-resolver 1426s ok 64 /Default Values/GSocketClient 1426s ok 65 /Default Values/GSocketConnection # SKIP mandatory construct params 1426s ok 66 /Default Values/GSocket # SKIP initialization failed 1426s ok 67 /Default Values/GSocketListener 1426s ok 68 /Default Values/GSocketService 1426s ok 69 /Default Values/GSubprocess # SKIP initialization failed 1426s ok 70 /Default Values/GSubprocessLauncher 1426s # GLib-GIO-DEBUG: GTask 0x1f18e42eb270 (source object: (nil), source tag: (nil)) finalized without ever returning (using g_task_return_*()). This potentially indicates a bug in the program. 1426s ok 71 /Default Values/GTask 1426s ok 72 /Default Values/GTcpConnection # SKIP mandatory construct params 1426s ok 73 /Default Values/GTcpWrapperConnection # SKIP mandatory construct params 1426s ok 74 /Default Values/GTestDBus 1426s ok 75 /Default Values/GThemedIcon # SKIP mandatory construct params 1426s ok 76 /Default Values/GThreadedSocketService 1426s ok 77 /Default Values/GTlsInteraction 1426s ok 78 /Default Values/GTlsPassword 1426s ok 79 /Default Values/GUnixConnection # SKIP mandatory construct params 1426s ok 80 /Default Values/GUnixFDList 1426s ok 81 /Default Values/GVfs 1426s ok 82 /Default Values/GVolumeMonitor 1426s ok 83 /Default Values/GZlibCompressor 1426s ok 84 /Default Values/GZlibDecompressor 1426s # End of Default Values tests 1426s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1426s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1426s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1426s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1426s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1426s TAP version 14 1426s # random seed: R02Sd9a497dde7f81e0d948bf1cef9bec842 1426s 1..1 1426s # Start of properties tests 1426s # /properties/notify-in-init summary: Test that emitting notify with a handler already connected in test_object_init() works 1426s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2665 1426s ok 1 /properties/notify-in-init 1426s # End of properties tests 1426s TAP version 14 1426s # random seed: R02Sb281dc630847e67acf5259209f618a14 1426s 1..1 1426s # Start of completion tests 1426s ok 1 /completion/test-completion 1426s # End of completion tests 1426s TAP version 14 1426s # random seed: R02Se780c561ba5b057f9c75225f6b9e3914 1426s 1..11 1426s # Start of inet-address tests 1426s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::1::2 1426s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 2001:1:2:3:4:5:6:7] 1426s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7 1426s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7] 1426s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string [2001:1:2:3:4:5:6:7]:80 1426s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 0:1:2:3:4:5:6:7:8:9 1426s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string ::FFFFFFF 1426s # GLib-GIO-DEBUG: getaddrinfo failed to resolve host string 204.152.189.116:80 1426s ok 1 /inet-address/parse 1426s ok 2 /inet-address/any 1426s ok 3 /inet-address/loopback 1426s ok 4 /inet-address/bytes 1426s ok 5 /inet-address/property 1426s # End of inet-address tests 1426s # Start of socket-address tests 1426s ok 6 /socket-address/basic 1426s ok 7 /socket-address/to-string 1426s # End of socket-address tests 1426s # Start of address-mask tests 1426s ok 8 /address-mask/parse 1426s ok 9 /address-mask/property 1426s ok 10 /address-mask/equal 1426s ok 11 /address-mask/match 1426s # End of address-mask tests 1426s ok - glib/defaultvalue.test 1426s # Running test: glib/notify-init.test 1426s ok - glib/notify-init.test 1426s # Running test: glib/completion.test 1426s ok - glib/completion.test 1426s # Running test: glib/inet-address.test 1426s ok - glib/inet-address.test 1426s # Running test: glib/gi-compile-repository.py.test 1426s TAP version 13 1426s ok 1 __main__.TestGICompileRepository.test_open_failure 1426s # gir path set to [PosixPath('/usr/lib/powerpc64le-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1426s # gi-compile-repository: /usr/bin/gi-compile-repository 1426s # tmpdir: /tmp/tmpfs15lt3m 1426s # Running: ['/usr/bin/gi-compile-repository', 'this-is/not/a-file.gir', '--output', '/tmp/tmpfs15lt3m/invalid.typelib'] 1426s # Return code: 1 1426s # Output: 1426s # 1426s # Error: 1426s # Error parsing file ‘this-is/not/a-file.gir’: Failed to open file “this-is/not/a-file.gir”: No such file or directory 1426s ok 2 __main__.TestGICompileRepositoryForGLib.test_compile 1426s # gir path set to [PosixPath('/usr/lib/powerpc64le-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1426s # gi-compile-repository: /usr/bin/gi-compile-repository 1426s # tmpdir: /tmp/tmpm465rknv 1426s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/powerpc64le-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', '/tmp/tmpm465rknv/GLib-2.typelib'] 1426s # Return code: 0 1426s # Output: 1426s # 1426s # Error: 1426s ok 3 __main__.TestGICompileRepositoryForGLib.test_write_failure 1426s # gi-compile-repository: /usr/bin/gi-compile-repository 1426s # tmpdir: /tmp/tmp5lnzq_5t 1426s # Running: ['/usr/bin/gi-compile-repository', '/usr/lib/powerpc64le-linux-gnu/gir-1.0/GLib-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib'] 1426s # Return code: 1 1426s # Output: 1426s # 1426s # Error: 1426s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1426s ok 4 __main__.TestGICompileRepositoryForGObject.test_compile 1426s # gir path set to [PosixPath('/usr/lib/powerpc64le-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1426s # gi-compile-repository: /usr/bin/gi-compile-repository 1426s # tmpdir: /tmp/tmpzd2b648f 1426s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', '/tmp/tmpzd2b648f/GObject-2.typelib', '--includedir', '/usr/lib/powerpc64le-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1426s # Return code: 0 1426s # Output: 1426s # 1426s # Error: 1427s ok 5 __main__.TestGICompileRepositoryForGObject.test_write_failure 1427s # gi-compile-repository: /usr/bin/gi-compile-repository 1427s # tmpdir: /tmp/tmpdrxttopo 1427s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/GObject-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib', '--includedir', '/usr/lib/powerpc64le-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1427s # Return code: 1 1427s # Output: 1427s # 1427s # Error: 1427s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1427s ok 6 __main__.TestGICompileRepositoryForGio.test_compile 1427s # gir path set to [PosixPath('/usr/lib/powerpc64le-linux-gnu/gir-1.0'), PosixPath('/usr/share/gir-1.0')] 1427s # gi-compile-repository: /usr/bin/gi-compile-repository 1427s # tmpdir: /tmp/tmp_m16oog1 1427s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', '/tmp/tmp_m16oog1/Gio-2.typelib', '--includedir', '/usr/lib/powerpc64le-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1427s # Return code: 0 1427s # Output: 1427s # 1427s # Error: 1428s # Executing: glib/gi-compile-repository.py.test 1428s ok 7 __main__.TestGICompileRepositoryForGio.test_write_failure 1428s # gi-compile-repository: /usr/bin/gi-compile-repository 1428s # tmpdir: /tmp/tmpjxn8m6_q 1428s # Running: ['/usr/bin/gi-compile-repository', '/usr/share/gir-1.0/Gio-2.0.gir', '--output', 'this-is/not/a-good-output/invalid.typelib', '--includedir', '/usr/lib/powerpc64le-linux-gnu/gir-1.0', '--includedir', '/usr/share/gir-1.0'] 1428s # Return code: 1 1428s # Output: 1428s # 1428s # Error: 1428s # Failed to open ‘this-is/not/a-good-output/invalid.typelib.tmp’: No such file or directory 1428s 1..7 1428s ok - glib/gi-compile-repository.py.test 1428s # Running test: glib/gsubprocess.test 1428s TAP version 14 1428s # random seed: R02S176d8bd13e4b6b9f6d7c7abd6fd0d325 1428s 1..84 1428s # Start of gsubprocess tests 1428s ok 1 /gsubprocess/noop 1428s ok 2 /gsubprocess/noop-all-to-null 1428s ok 3 /gsubprocess/noop-no-wait 1428s ok 4 /gsubprocess/noop-stdin-inherit 1428s ok 5 /gsubprocess/search-path 1428s ok 6 /gsubprocess/search-path-from-envp 1431s ok 7 /gsubprocess/signal 1431s # slow test /gsubprocess/signal executed in 2.80 secs 1431s ok 8 /gsubprocess/exit1 1431s ok 9 /gsubprocess/echo1 1431s ok 10 /gsubprocess/echo-merged 1431s ok 11 /gsubprocess/cat-utf8 1432s ok 12 /gsubprocess/cat-eof 1432s # slow test /gsubprocess/cat-eof executed in 1.00 secs 1433s # Executing: glib/gsubprocess.test 1435s ok 13 /gsubprocess/multi1 1435s # slow test /gsubprocess/multi1 executed in 3.01 secs 1435s ok 14 /gsubprocess/communicate 1438s # Executing: glib/gsubprocess.test 1438s ok 15 /gsubprocess/terminate 1438s # slow test /gsubprocess/terminate executed in 2.97 secs 1438s ok 16 /gsubprocess/fail-initialization 1438s ok 17 /gsubprocess/env 1438s ok 18 /gsubprocess/cwd 1438s ok 19 /gsubprocess/launcher-close 1438s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1438s ok 20 /gsubprocess/stdout-file 1438s ok 21 /gsubprocess/stdout-fd 1438s ok 22 /gsubprocess/child-setup 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s ok 23 /gsubprocess/launcher-environment 1438s # Start of exit1 tests 1438s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1438s ok 24 /gsubprocess/exit1/cancel 1438s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=786456 1438s ok 25 /gsubprocess/exit1/cancel_in_cb 1438s # End of exit1 tests 1438s # Start of communicate tests 1438s ok 26 /gsubprocess/communicate/cancelled 1438s ok 27 /gsubprocess/communicate/async 1438s ok 28 /gsubprocess/communicate/utf8 1438s # hello world 1438s ok 29 /gsubprocess/communicate/no-pipes 1438s ok 30 /gsubprocess/communicate/separate-stderr 1438s ok 31 /gsubprocess/communicate/stdout-only 1438s # hello world 1438s ok 32 /gsubprocess/communicate/stderr-only 1438s ok 33 /gsubprocess/communicate/stdout-silence 1438s ok 34 /gsubprocess/communicate/nothing 1438s # Start of async tests 1438s ok 35 /gsubprocess/communicate/async/cancelled 1438s # hello world 1438s ok 36 /gsubprocess/communicate/async/no-pipes 1438s ok 37 /gsubprocess/communicate/async/separate-stderr 1438s ok 38 /gsubprocess/communicate/async/stdout-only 1438s # hello world 1438s ok 39 /gsubprocess/communicate/async/stderr-only 1438s ok 40 /gsubprocess/communicate/async/stdout-silence 1438s # Start of cancelled tests 1438s ok 41 /gsubprocess/communicate/async/cancelled/no-pipes 1438s ok 42 /gsubprocess/communicate/async/cancelled/separate-stderr 1438s ok 43 /gsubprocess/communicate/async/cancelled/stdout-only 1438s ok 44 /gsubprocess/communicate/async/cancelled/stderr-only 1438s ok 45 /gsubprocess/communicate/async/cancelled/stdout-silence 1438s # End of cancelled tests 1438s # End of async tests 1438s # Start of utf8 tests 1438s ok 46 /gsubprocess/communicate/utf8/cancelled 1438s ok 47 /gsubprocess/communicate/utf8/async 1438s # hello world 1438s ok 48 /gsubprocess/communicate/utf8/no-pipes 1438s ok 49 /gsubprocess/communicate/utf8/separate-stderr 1438s ok 50 /gsubprocess/communicate/utf8/stdout-only 1438s # hello world 1438s ok 51 /gsubprocess/communicate/utf8/stderr-only 1438s ok 52 /gsubprocess/communicate/utf8/stdout-silence 1438s ok 53 /gsubprocess/communicate/utf8/invalid 1438s # Start of async tests 1438s ok 54 /gsubprocess/communicate/utf8/async/cancelled 1438s # hello world 1438s ok 55 /gsubprocess/communicate/utf8/async/no-pipes 1438s ok 56 /gsubprocess/communicate/utf8/async/separate-stderr 1438s ok 57 /gsubprocess/communicate/utf8/async/stdout-only 1438s # hello world 1438s ok 58 /gsubprocess/communicate/utf8/async/stderr-only 1438s ok 59 /gsubprocess/communicate/utf8/async/stdout-silence 1438s ok 60 /gsubprocess/communicate/utf8/async/invalid 1438s # Start of cancelled tests 1438s ok 61 /gsubprocess/communicate/utf8/async/cancelled/no-pipes 1438s ok 62 /gsubprocess/communicate/utf8/async/cancelled/separate-stderr 1438s ok 63 /gsubprocess/communicate/utf8/async/cancelled/stdout-only 1438s ok 64 /gsubprocess/communicate/utf8/async/cancelled/stderr-only 1438s ok 65 /gsubprocess/communicate/utf8/async/cancelled/stdout-silence 1438s # End of cancelled tests 1438s # End of async tests 1438s # Start of cancelled tests 1438s ok 66 /gsubprocess/communicate/utf8/cancelled/no-pipes 1438s ok 67 /gsubprocess/communicate/utf8/cancelled/separate-stderr 1438s ok 68 /gsubprocess/communicate/utf8/cancelled/stdout-only 1438s ok 69 /gsubprocess/communicate/utf8/cancelled/stderr-only 1438s ok 70 /gsubprocess/communicate/utf8/cancelled/stdout-silence 1438s # End of cancelled tests 1438s # End of utf8 tests 1438s # Start of cancelled tests 1438s ok 71 /gsubprocess/communicate/cancelled/no-pipes 1438s ok 72 /gsubprocess/communicate/cancelled/separate-stderr 1438s ok 73 /gsubprocess/communicate/cancelled/stdout-only 1438s ok 74 /gsubprocess/communicate/cancelled/stderr-only 1438s ok 75 /gsubprocess/communicate/cancelled/stdout-silence 1438s # End of cancelled tests 1438s # End of communicate tests 1438s # Start of env tests 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1438s ok 76 /gsubprocess/env/inherit 1438s # End of env tests 1438s # Start of pass-fd tests 1438s ok 77 /gsubprocess/pass-fd/basic 1438s ok 78 /gsubprocess/pass-fd/empty-child-setup 1438s ok 79 /gsubprocess/pass-fd/inherit-fds 1438s # End of pass-fd tests 1438s # Start of fd-conflation tests 1438s ok 80 /gsubprocess/fd-conflation/basic 1438s ok 81 /gsubprocess/fd-conflation/empty-child-setup 1438s ok 82 /gsubprocess/fd-conflation/inherit-fds 1438s ok 83 /gsubprocess/fd-conflation/child-err-report-fd 1438s # End of fd-conflation tests 1438s # Start of exit-status tests 1438s # /gsubprocess/exit-status/trapped summary: Test that exit status is reported correctly for ptrace()d child processes 1438s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3433 1438s ok 84 /gsubprocess/exit-status/trapped 1438s # End of exit-status tests 1438s # End of gsubprocess tests 1438s ok - glib/gsubprocess.test 1438s # SUMMARY: total=332; passed=331; skipped=1; failed=0; user=274.2s; system=70.5s; maxrss=437376 1438s autopkgtest [01:32:04]: test installed-tests: -----------------------] 1447s autopkgtest [01:32:13]: test installed-tests: - - - - - - - - - - results - - - - - - - - - - 1447s installed-tests PASS 1449s autopkgtest [01:32:15]: test closure-refcount: preparing testbed 1449s Reading package lists... 1449s Building dependency tree... 1449s Reading state information... 1449s Solving dependencies... 1449s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1493s autopkgtest [01:32:59]: test closure-refcount: [----------------------- 1494s Running test: glib/closure-refcount.test 1494s TAP version 14 1494s # random seed: R02S29c02f56ac16fb1aebb1a07914db67c1 1494s 1..1 1494s # Start of closure tests 1494s # Init 0x3c7db6db0 1494s # Yielding from main thread 1494s # Yielding from main thread 1494s # Yielding from main thread 1494s # Yielding from main thread 1494s # Yielding from main thread 1494s # Yielding from main thread 1494s # Yielding from main thread 1494s # Yielding from thread1 1494s # Yielding from thread2 1494s # Yielding from main thread 1494s # Yielding from main thread 1494s # Yielding from main thread 1494s # Yielding from main thread 1494s # Yielding from main thread 1494s # Yielding from main thread 1494s # Yielding from main thread 1494s # Yielding from main thread 1494s # Yielding from thread1 1494s # Yielding from thread2 1494s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from thread1 1495s # Yielding from thread2 1495s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from thread1 1495s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from main thread 1495s # Yielding from thread2 1495s # Yielding from main thread 1496s # Yielding from main thread 1496s # Yielding from main thread 1496s # Yielding from main thread 1496s # Yielding from thread1 1496s # Yielding from main thread 1496s # Yielding from main thread 1496s # Yielding from main thread 1496s # Yielding from main thread 1496s # Yielding from main thread 1496s # Yielding from main thread 1496s # Yielding from main thread 1496s # Yielding from thread1 1496s # Yielding from main thread 1496s # Yielding from thread2 1496s # Yielding from main thread 1496s # Yielding from main thread 1496s # Yielding from main thread 1496s # Yielding from main thread 1496s # Yielding from thread1 1496s # Yielding from main thread 1496s # Yielding from main thread 1496s # Yielding from main thread 1496s # Yielding from main thread 1497s # Yielding from main thread 1497s # Yielding from thread2 1497s # Yielding from main thread 1497s # Yielding from main thread 1497s # Yielding from main thread 1497s # Yielding from main thread 1497s # Yielding from main thread 1497s # Yielding from thread1 1497s # Yielding from main thread 1497s # Yielding from main thread 1497s # Yielding from thread2 1497s # Yielding from main thread 1497s # Yielding from main thread 1497s # Yielding from main thread 1497s # Yielding from main thread 1497s # Yielding from main thread 1497s # Yielding from main thread 1497s # Yielding from thread1 1497s # Yielding from main thread 1497s # Yielding from thread2 1497s # Yielding from main thread 1497s # Yielding from main thread 1498s # Yielding from main thread 1498s # Yielding from main thread 1498s # Yielding from main thread 1498s # Yielding from main thread 1498s # Yielding from thread1 1498s # Yielding from main thread 1498s # Yielding from main thread 1498s # Yielding from main thread 1498s # Yielding from main thread 1498s # Yielding from thread2 1498s # Yielding from main thread 1498s # Yielding from main thread 1498s # Yielding from main thread 1498s # Yielding from main thread 1498s # Yielding from thread1 1498s # Yielding from main thread 1498s # Yielding from main thread 1498s # Yielding from main thread 1498s # Yielding from main thread 1498s # Yielding from thread2 1498s # Yielding from main thread 1498s # Yielding from main thread 1498s # Yielding from main thread 1498s # Yielding from main thread 1499s # Yielding from main thread 1499s # Yielding from main thread 1499s # Yielding from thread1 1499s # Yielding from main thread 1499s # Yielding from thread2 1499s # Yielding from main thread 1499s Executing: glib/closure-refcount.test 1499s # Yielding from main thread 1499s # Yielding from main thread 1499s # Yielding from main thread 1499s # Yielding from main thread 1499s # Stopping 1499s # Stopped 1499s ok 1 /closure/refcount 1499s # slow test /closure/refcount executed in 5.48 secs 1499s # End of closure tests 1499s PASS: glib/closure-refcount.test 1499s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=10.9s; system=0.0s; maxrss=4096 1499s autopkgtest [01:33:05]: test closure-refcount: -----------------------] 1512s autopkgtest [01:33:18]: test closure-refcount: - - - - - - - - - - results - - - - - - - - - - 1512s closure-refcount PASS 1514s autopkgtest [01:33:20]: test debugcontroller: preparing testbed 1521s Reading package lists... 1521s Building dependency tree... 1521s Reading state information... 1521s Solving dependencies... 1521s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1542s autopkgtest [01:33:48]: test debugcontroller: [----------------------- 1542s Running test: glib/debugcontroller.test 1542s TAP version 14 1542s # random seed: R02S9e723a012cbfbf5dfb6d37f55bbc044d 1542s 1..3 1542s # Start of debug-controller tests 1542s # Start of dbus tests 1542s # /debug-controller/dbus/basic summary: Smoketest for construction and setting of a #GDebugControllerDBus. 1542s # GLib-GIO-DEBUG: Debug output enabled 1542s # GLib-GIO-DEBUG: Debug output disabled 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s ok 1 /debug-controller/dbus/basic 1542s # /debug-controller/dbus/duplicate summary: Test that creating a second #GDebugControllerDBus on the same D-Bus connection fails. 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s ok 2 /debug-controller/dbus/duplicate 1542s # /debug-controller/dbus/properties summary: Test getting and setting properties on a #GDebugControllerDBus. 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1542s # GLib-GIO-DEBUG: Debug output enabled 1542s # GLib-GIO-DEBUG: Debug output disabled 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1542s ok 3 /debug-controller/dbus/properties 1542s # End of dbus tests 1542s # End of debug-controller tests 1542s PASS: glib/debugcontroller.test 1542s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=10240 1542s autopkgtest [01:33:48]: test debugcontroller: -----------------------] 1550s autopkgtest [01:33:56]: test debugcontroller: - - - - - - - - - - results - - - - - - - - - - 1550s debugcontroller PASS 1551s autopkgtest [01:33:57]: test gdbus-server-auth: preparing testbed 1551s Reading package lists... 1551s Building dependency tree... 1551s Reading state information... 1551s Solving dependencies... 1551s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1552s autopkgtest [01:33:58]: test gdbus-server-auth: [----------------------- 1552s Running test: glib/gdbus-server-auth.test 1552s TAP version 14 1552s # random seed: R02S859f5c8d0e3df3ae24f4601e9e6cb882 1552s 1..9 1552s # Start of gdbus tests 1552s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/.dirs/home 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/.dirs/cache 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/.dirs/system-config1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/.dirs/system-config2 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/.dirs/config 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/.dirs/system-data1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/.dirs/system-data2 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/.dirs/data 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/.dirs/state 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/.dirs/runtime 1552s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_QAOMK3/gdbus-server-auth-AXMMK3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:false 1552s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_QAOMK3/gdbus-server-auth-AXMMK3/dbus-FPc3q27H 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40268 1552s ok 1 /gdbus/server-auth 1552s # Start of server-auth tests 1552s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/abstract/.dirs/home 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/abstract/.dirs/cache 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/abstract/.dirs/system-config1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/abstract/.dirs/system-config2 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/abstract/.dirs/config 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/abstract/.dirs/system-data1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/abstract/.dirs/system-data2 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/abstract/.dirs/data 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/abstract/.dirs/state 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/abstract/.dirs/runtime 1552s # Testing GDBus server at unix:tmpdir=/tmp/test_gdbus-server-auth_QAOMK3/gdbus-server-auth-FJRKK3 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:true tcp:false 1552s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_QAOMK3/gdbus-server-auth-FJRKK3/dbus-DDFdGf84 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40268 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1552s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40268 1552s ok 2 /gdbus/server-auth/abstract 1552s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/tcp/.dirs/home 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/tcp/.dirs/cache 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/tcp/.dirs/system-config2 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/tcp/.dirs/config 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/tcp/.dirs/system-data2 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/tcp/.dirs/data 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/tcp/.dirs/state 1552s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/tcp/.dirs/runtime 1552s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:false abstract:false tcp:true 1552s # Connectable address: tcp:host=127.0.0.1,port=42865 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1552s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1552s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1552s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1552s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1552s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1552s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1552s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1552s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1552s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1552s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1552s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1552s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1552s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1553s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1553s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1553s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1553s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1553s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1553s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1553s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1553s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1553s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1553s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1553s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1553s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1553s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1553s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1553s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1553s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1553s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1553s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1553s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1553s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1553s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1553s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1553s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1553s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting "ANONYMOUS" authentication 1553s # GLib-GIO-DEBUG: Accepting "DBUS_COOKIE_SHA1" authentication 1553s # GLib-GIO-DEBUG: Accepting "EXTERNAL" authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1553s ok 3 /gdbus/server-auth/tcp 1553s # slow test /gdbus/server-auth/tcp executed in 0.93 secs 1553s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/.dirs/home 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/.dirs/cache 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/.dirs/system-config1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/.dirs/system-config2 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/.dirs/config 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/.dirs/system-data1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/.dirs/system-data2 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/.dirs/data 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/.dirs/state 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/.dirs/runtime 1553s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_QAOMK3/gdbus-server-auth-ERCMK3 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:false 1553s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_QAOMK3/gdbus-server-auth-ERCMK3/dbus-0fOoRgWS 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40268 1553s ok 4 /gdbus/server-auth/anonymous 1553s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/.dirs/home 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/.dirs/cache 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/.dirs/system-config1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/.dirs/system-config2 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/.dirs/config 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/.dirs/system-data1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/.dirs/system-data2 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/.dirs/data 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/.dirs/state 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/.dirs/runtime 1553s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_QAOMK3/gdbus-server-auth-WXVLK3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1553s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_QAOMK3/gdbus-server-auth-WXVLK3/dbus-CN8Hq9mm 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1553s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40268 1553s ok 5 /gdbus/server-auth/external 1553s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/.dirs/home 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/.dirs/cache 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/.dirs/system-config1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/.dirs/system-config2 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/.dirs/config 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/.dirs/system-data1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/.dirs/system-data2 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/.dirs/data 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/.dirs/state 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/.dirs/runtime 1553s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_QAOMK3/gdbus-server-auth-4ITMK3 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:false 1553s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_QAOMK3/gdbus-server-auth-4ITMK3/dbus-pFAO5P4J 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40268 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1553s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40268 1553s ok 6 /gdbus/server-auth/sha1 1553s # Start of anonymous tests 1553s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/tcp/.dirs/home 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/tcp/.dirs/cache 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/tcp/.dirs/system-config2 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/tcp/.dirs/config 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/tcp/.dirs/system-data2 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/tcp/.dirs/data 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/tcp/.dirs/state 1553s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/anonymous/tcp/.dirs/runtime 1553s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:true sha1:false abstract:false tcp:true 1553s # Connectable address: tcp:host=127.0.0.1,port=38793 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1553s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1553s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1553s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1553s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1553s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Accepting ANONYMOUS authentication 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not ANONYMOUS 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1554s ok 7 /gdbus/server-auth/anonymous/tcp 1554s # slow test /gdbus/server-auth/anonymous/tcp executed in 0.88 secs 1554s # End of anonymous tests 1554s # Start of external tests 1554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/require-same-user/.dirs/home 1554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/require-same-user/.dirs/cache 1554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/require-same-user/.dirs/system-config1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/require-same-user/.dirs/system-config2 1554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/require-same-user/.dirs/config 1554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/require-same-user/.dirs/system-data1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/require-same-user/.dirs/system-data2 1554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/require-same-user/.dirs/data 1554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/require-same-user/.dirs/state 1554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/external/require-same-user/.dirs/runtime 1554s # Testing GDBus server at unix:dir=/tmp/test_gdbus-server-auth_QAOMK3/gdbus-server-auth-LSF7J3 / libdbus client, with flags: external:true anonymous:false sha1:false abstract:false tcp:false 1554s # Connectable address: unix:path=/tmp/test_gdbus-server-auth_QAOMK3/gdbus-server-auth-LSF7J3/dbus-HNipqKqL 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says GDBus client is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 1000, pid 40268 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Rejecting "DBUS_COOKIE_SHA1" authentication: not EXTERNAL 1554s # GLib-GIO-DEBUG: Accepting EXTERNAL authentication 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=40268,uid=1000,gid=1000 1554s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 1000, pid 40268 1554s ok 8 /gdbus/server-auth/external/require-same-user 1554s # End of external tests 1554s # Start of sha1 tests 1554s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/tcp/.dirs/home 1554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/tcp/.dirs/cache 1554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/tcp/.dirs/system-config1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/tcp/.dirs/system-config2 1554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/tcp/.dirs/config 1554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/tcp/.dirs/system-data1:/tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/tcp/.dirs/system-data2 1554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/tcp/.dirs/data 1554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/tcp/.dirs/state 1554s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-server-auth_QAOMK3/gdbus/server-auth/sha1/tcp/.dirs/runtime 1554s # Testing GDBus server at tcp:host=127.0.0.1 / libdbus client, with flags: external:false anonymous:false sha1:true abstract:false tcp:true 1554s # Connectable address: tcp:host=127.0.0.1,port=39913 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says GDBus client is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 0 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 1 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 2 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 3 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 4 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 5 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 6 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: Server says libdbus client 7 is uid 4294967295, pid -1 1554s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1554s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1554s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1554s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1554s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: Server says libdbus client 8 is uid 4294967295, pid -1 1555s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1555s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1555s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: Server says libdbus client 9 is uid 4294967295, pid -1 1555s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1555s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1555s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: Server says libdbus client 10 is uid 4294967295, pid -1 1555s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1555s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1555s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: Server says libdbus client 11 is uid 4294967295, pid -1 1555s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1555s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1555s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: Server says libdbus client 12 is uid 4294967295, pid -1 1555s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1555s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1555s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: Server says libdbus client 13 is uid 4294967295, pid -1 1555s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1555s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1555s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: Server says libdbus client 14 is uid 4294967295, pid -1 1555s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1555s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1555s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: Server says libdbus client 15 is uid 4294967295, pid -1 1555s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1555s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1555s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: Server says libdbus client 16 is uid 4294967295, pid -1 1555s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1555s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1555s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: Server says libdbus client 17 is uid 4294967295, pid -1 1555s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1555s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1555s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: Server says libdbus client 18 is uid 4294967295, pid -1 1555s # GLib-DEBUG: setenv()/putenv() are not thread-safe and should not be used after threads are created 1555s # GLib-GIO-DEBUG: Rejecting "ANONYMOUS" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Accepting DBUS_COOKIE_SHA1 authentication 1555s # GLib-GIO-DEBUG: Rejecting "EXTERNAL" authentication: not DBUS_COOKIE_SHA1 1555s # GLib-GIO-DEBUG: Authorizing peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: New connection from peer with credentials: GCredentials:linux-ucred:pid=0 1555s # GLib-GIO-DEBUG: Server says libdbus client 19 is uid 4294967295, pid -1 1555s ok 9 /gdbus/server-auth/sha1/tcp 1555s # slow test /gdbus/server-auth/sha1/tcp executed in 0.94 secs 1555s # End of sha1 tests 1555s # End of server-auth tests 1555s # End of gdbus tests 1555s PASS: glib/gdbus-server-auth.test 1555s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.1s; system=0.1s; maxrss=8192 1555s autopkgtest [01:34:01]: test gdbus-server-auth: -----------------------] 1569s autopkgtest [01:34:15]: test gdbus-server-auth: - - - - - - - - - - results - - - - - - - - - - 1569s gdbus-server-auth PASS 1569s autopkgtest [01:34:15]: test gdbus-threading: preparing testbed 1569s Reading package lists... 1570s Building dependency tree... 1570s Reading state information... 1570s Solving dependencies... 1570s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1571s autopkgtest [01:34:17]: test gdbus-threading: [----------------------- 1571s Running test: glib/gdbus-threading.test 1571s TAP version 14 1571s # random seed: R02Sdd1e63043a29537302f6933012d08e65 1571s 1..3 1571s # Start of gdbus tests 1571s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_D2TDK3/gdbus/delivery-in-thread/.dirs/home 1571s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_D2TDK3/gdbus/delivery-in-thread/.dirs/cache 1571s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_D2TDK3/gdbus/delivery-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_D2TDK3/gdbus/delivery-in-thread/.dirs/system-config2 1571s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_D2TDK3/gdbus/delivery-in-thread/.dirs/config 1571s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_D2TDK3/gdbus/delivery-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_D2TDK3/gdbus/delivery-in-thread/.dirs/system-data2 1571s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_D2TDK3/gdbus/delivery-in-thread/.dirs/data 1571s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_D2TDK3/gdbus/delivery-in-thread/.dirs/state 1571s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_D2TDK3/gdbus/delivery-in-thread/.dirs/runtime 1571s ok 1 /gdbus/delivery-in-thread 1571s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_D2TDK3/gdbus/method-calls-in-thread/.dirs/home 1571s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_D2TDK3/gdbus/method-calls-in-thread/.dirs/cache 1571s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_D2TDK3/gdbus/method-calls-in-thread/.dirs/system-config1:/tmp/test_gdbus-threading_D2TDK3/gdbus/method-calls-in-thread/.dirs/system-config2 1571s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_D2TDK3/gdbus/method-calls-in-thread/.dirs/config 1571s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_D2TDK3/gdbus/method-calls-in-thread/.dirs/system-data1:/tmp/test_gdbus-threading_D2TDK3/gdbus/method-calls-in-thread/.dirs/system-data2 1571s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_D2TDK3/gdbus/method-calls-in-thread/.dirs/data 1571s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_D2TDK3/gdbus/method-calls-in-thread/.dirs/state 1571s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_D2TDK3/gdbus/method-calls-in-thread/.dirs/runtime 1572s ok 2 /gdbus/method-calls-in-thread 1572s # slow test /gdbus/method-calls-in-thread executed in 0.86 secs 1572s # GLib-DEBUG: g_set_user_dirs: Setting HOME to /tmp/test_gdbus-threading_D2TDK3/gdbus/threaded-singleton/.dirs/home 1572s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CACHE_HOME to /tmp/test_gdbus-threading_D2TDK3/gdbus/threaded-singleton/.dirs/cache 1572s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_DIRS to /tmp/test_gdbus-threading_D2TDK3/gdbus/threaded-singleton/.dirs/system-config1:/tmp/test_gdbus-threading_D2TDK3/gdbus/threaded-singleton/.dirs/system-config2 1572s # GLib-DEBUG: g_set_user_dirs: Setting XDG_CONFIG_HOME to /tmp/test_gdbus-threading_D2TDK3/gdbus/threaded-singleton/.dirs/config 1572s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_DIRS to /tmp/test_gdbus-threading_D2TDK3/gdbus/threaded-singleton/.dirs/system-data1:/tmp/test_gdbus-threading_D2TDK3/gdbus/threaded-singleton/.dirs/system-data2 1572s # GLib-DEBUG: g_set_user_dirs: Setting XDG_DATA_HOME to /tmp/test_gdbus-threading_D2TDK3/gdbus/threaded-singleton/.dirs/data 1572s # GLib-DEBUG: g_set_user_dirs: Setting XDG_STATE_HOME to /tmp/test_gdbus-threading_D2TDK3/gdbus/threaded-singleton/.dirs/state 1572s # GLib-DEBUG: g_set_user_dirs: Setting XDG_RUNTIME_DIR to /tmp/test_gdbus-threading_D2TDK3/gdbus/threaded-singleton/.dirs/runtime 1572s # GLib-GIO-DEBUG: refcount of 0x64c21c002300 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1572s # GLib-GIO-DEBUG: refcount of 0x64c21c002300 is not right (3 rather than 1) in test_threaded_singleton(), sleeping 1573s ok 3 /gdbus/threaded-singleton 1573s # slow test /gdbus/threaded-singleton executed in 1.23 secs 1573s # End of gdbus tests 1573s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1573s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1573s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1573s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1573s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1573s PASS: glib/gdbus-threading.test 1573s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.2s; maxrss=8192 1573s autopkgtest [01:34:19]: test gdbus-threading: -----------------------] 1574s autopkgtest [01:34:20]: test gdbus-threading: - - - - - - - - - - results - - - - - - - - - - 1574s gdbus-threading PASS 1574s autopkgtest [01:34:20]: test gmenumodel: preparing testbed 1574s Reading package lists... 1574s Building dependency tree... 1574s Reading state information... 1574s Solving dependencies... 1574s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1575s autopkgtest [01:34:21]: test gmenumodel: [----------------------- 1575s Running test: glib/gmenumodel.test 1575s TAP version 14 1575s # random seed: R02S0a032ba834e17850223514bec97772b3 1575s 1..15 1575s # Start of gmenu tests 1577s ok 1 /gmenu/equality 1577s # slow test /gmenu/equality executed in 1.50 secs 1579s ok 2 /gmenu/random 1579s # slow test /gmenu/random executed in 1.76 secs 1579s ok 3 /gmenu/attributes 1579s ok 4 /gmenu/links 1579s ok 5 /gmenu/mutable 1579s ok 6 /gmenu/convenience 1579s ok 7 /gmenu/menuitem 1579s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/861 1579s ok 8 /gmenu/input-validation 1579s # Start of dbus tests 1580s ok 9 /gmenu/dbus/roundtrip 1580s # slow test /gmenu/dbus/roundtrip executed in 1.01 secs 1580s ok 10 /gmenu/dbus/subscriptions 1581s Executing: glib/gmenumodel.test 1581s ok 11 /gmenu/dbus/threaded 1581s # slow test /gmenu/dbus/threaded executed in 1.34 secs 1581s # Start of peer tests 1582s ok 12 /gmenu/dbus/peer/roundtrip 1582s # slow test /gmenu/dbus/peer/roundtrip executed in 1.01 secs 1583s ok 13 /gmenu/dbus/peer/subscriptions 1583s # End of peer tests 1583s # Start of export tests 1583s # /gmenu/dbus/export/error-handling summary: Test that error handling of menu model export failure works 1583s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/3366 1583s ok 14 /gmenu/dbus/export/error-handling 1583s # End of export tests 1583s # End of dbus tests 1583s # Start of attributes tests 1583s ok 15 /gmenu/attributes/iterate 1583s # End of attributes tests 1583s # End of gmenu tests 1583s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1583s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1583s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1583s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1583s # GLib-DEBUG: unsetenv() is not thread-safe and should not be used after threads are created 1583s PASS: glib/gmenumodel.test 1583s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=5.7s; system=0.2s; maxrss=36864 1583s autopkgtest [01:34:29]: test gmenumodel: -----------------------] 1584s autopkgtest [01:34:30]: test gmenumodel: - - - - - - - - - - results - - - - - - - - - - 1584s gmenumodel PASS 1584s autopkgtest [01:34:30]: test mainloop: preparing testbed 1585s Reading package lists... 1585s Building dependency tree... 1585s Reading state information... 1585s Solving dependencies... 1585s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1586s autopkgtest [01:34:32]: test mainloop: [----------------------- 1586s Running test: glib/mainloop.test 1586s TAP version 14 1586s # random seed: R02S6f32c7c3584dee449dab0fd306eef9a9 1586s 1..47 1586s # Start of maincontext tests 1586s ok 1 /maincontext/basic 1586s # Add same-priority sources: 41 1586s # Find each source: 20 1586s # Remove in random order: 58 1586s ok 2 /maincontext/nsources_same_priority 1587s # Add different-priority sources: 48 1587s # Find each source: 19 1587s # Remove in random order: 60 1587s ok 3 /maincontext/nsources_different_priority 1587s # Add sources from threads: 348 1587s # Remove sources from threads: 139 1587s ok 4 /maincontext/nsources_threadpool 1587s ok 5 /maincontext/source_finalization 1587s # /maincontext/idle-once summary: Test g_idle_add_once() works 1587s ok 6 /maincontext/idle-once 1587s # /maincontext/timeout-once summary: Test g_timeout_add_once() works 1587s ok 7 /maincontext/timeout-once 1587s # /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. 1587s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/3725 1587s ok 8 /maincontext/context-ref-in-source-callbackfuncs-unref 1587s # Start of source_finalization_from_source tests 1587s # /maincontext/source_finalization_from_source/0 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1587s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1587s ok 9 /maincontext/source_finalization_from_source/0 1587s # /maincontext/source_finalization_from_source/1 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1587s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1587s ok 10 /maincontext/source_finalization_from_source/1 1587s # /maincontext/source_finalization_from_source/2 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1587s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1587s ok 11 /maincontext/source_finalization_from_source/2 1587s # /maincontext/source_finalization_from_source/3 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1587s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1587s ok 12 /maincontext/source_finalization_from_source/3 1587s # /maincontext/source_finalization_from_source/4 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1587s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1587s ok 13 /maincontext/source_finalization_from_source/4 1587s # /maincontext/source_finalization_from_source/5 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1587s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1587s ok 14 /maincontext/source_finalization_from_source/5 1587s # /maincontext/source_finalization_from_source/6 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1587s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1587s ok 15 /maincontext/source_finalization_from_source/6 1587s # /maincontext/source_finalization_from_source/7 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1587s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1587s ok 16 /maincontext/source_finalization_from_source/7 1587s # /maincontext/source_finalization_from_source/8 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1587s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1587s ok 17 /maincontext/source_finalization_from_source/8 1587s # /maincontext/source_finalization_from_source/9 summary: Tests if freeing a GSource as part of another GSource during main context destruction works. 1587s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/merge_requests/1353 1587s ok 18 /maincontext/source_finalization_from_source/9 1587s # End of source_finalization_from_source tests 1587s # Start of source_finalization_from_dispatch tests 1587s # /maincontext/source_finalization_from_dispatch/0 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1587s ok 19 /maincontext/source_finalization_from_dispatch/0 1587s # /maincontext/source_finalization_from_dispatch/1 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1587s ok 20 /maincontext/source_finalization_from_dispatch/1 1587s # /maincontext/source_finalization_from_dispatch/2 summary: Tests if freeing a GSource as part of another GSource during main context iteration works. 1587s ok 21 /maincontext/source_finalization_from_dispatch/2 1587s # End of source_finalization_from_dispatch tests 1587s # End of maincontext tests 1587s # Start of mainloop tests 1587s ok 22 /mainloop/basic 1587s ok 23 /mainloop/timeouts # SKIP Not running timing heavy test 1587s ok 24 /mainloop/priorities 1588s ok 25 /mainloop/invoke 1588s # slow test /mainloop/invoke executed in 0.50 secs 1589s ok 26 /mainloop/child_sources 1589s # slow test /mainloop/child_sources executed in 1.17 secs 1591s ok 27 /mainloop/recursive_child_sources 1591s # slow test /mainloop/recursive_child_sources executed in 2.15 secs 1591s ok 28 /mainloop/recursive_loop_child_sources 1591s ok 29 /mainloop/swapping_child_sources 1591s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=701283 1591s ok 30 /mainloop/blocked_child_sources 1592s Executing: glib/mainloop.test 1592s ok 31 /mainloop/source_time 1592s # slow test /mainloop/source_time executed in 1.00 secs 1592s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=687098 1592s ok 32 /mainloop/overflow 1593s ok 33 /mainloop/ready-time 1593s # slow test /mainloop/ready-time executed in 0.50 secs 1593s ok 34 /mainloop/wakeup 1593s ok 35 /mainloop/remove-invalid 1593s ok 36 /mainloop/unref-while-pending 1594s ok 37 /mainloop/unix-fd 1594s # slow test /mainloop/unix-fd executed in 1.47 secs 1594s ok 38 /mainloop/unix-fd-source 1594s ok 39 /mainloop/source-unix-fd-api 1594s ok 40 /mainloop/wait 1594s ok 41 /mainloop/unix-file-poll 1594s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1592 1594s ok 42 /mainloop/unix-fd-priority 1594s ok 43 /mainloop/nfds 1594s ok 44 /mainloop/steal-fd 1596s ok 45 /mainloop/simultaneous-source-context-destruction 1596s # slow test /mainloop/simultaneous-source-context-destruction executed in 1.36 secs 1596s # Start of ownerless-polling tests 1596s ok 46 /mainloop/ownerless-polling/attach-first 1596s ok 47 /mainloop/ownerless-polling/pop-first 1596s # End of ownerless-polling tests 1596s # End of mainloop tests 1596s PASS: glib/mainloop.test 1596s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=1.7s; system=3.0s; maxrss=30720 1596s autopkgtest [01:34:42]: test mainloop: -----------------------] 1600s mainloop PASS 1600s autopkgtest [01:34:46]: test mainloop: - - - - - - - - - - results - - - - - - - - - - 1601s autopkgtest [01:34:47]: test memory-monitor-dbus: preparing testbed 1601s Reading package lists... 1601s Building dependency tree... 1601s Reading state information... 1601s Solving dependencies... 1601s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1602s autopkgtest [01:34:48]: test memory-monitor-dbus: [----------------------- 1602s Running test: glib/memory-monitor-dbus.test 1602s TAP version 13 1602s ok 1 __main__.TestLowMemoryMonitor.test_low_memory_warning_signal 1602s # Received memory warning signal, level 0 1602s # Received memory warning signal, level 0 1602s # Received memory warning signal, level 100 1602s # Received memory warning signal, level 255 1602s 1..1 1602s PASS: glib/memory-monitor-dbus.test 1602s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.2s; system=0.0s; maxrss=38976 1603s autopkgtest [01:34:49]: test memory-monitor-dbus: -----------------------] 1603s autopkgtest [01:34:49]: test memory-monitor-dbus: - - - - - - - - - - results - - - - - - - - - - 1603s memory-monitor-dbus PASS 1604s autopkgtest [01:34:50]: test socket: preparing testbed 1604s Reading package lists... 1604s Building dependency tree... 1604s Reading state information... 1604s Solving dependencies... 1604s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1605s autopkgtest [01:34:51]: test socket: [----------------------- 1605s Running test: glib/socket.test 1605s TAP version 14 1605s # random seed: R02S61217c53ee9da9524ef67bad7f5305ac 1605s 1..30 1605s # Start of socket tests 1606s ok 1 /socket/ipv4_sync 1606s # slow test /socket/ipv4_sync executed in 1.00 secs 1608s ok 2 /socket/ipv4_async 1608s # slow test /socket/ipv4_async executed in 1.00 secs 1608s ok 3 /socket/ipv6_sync 1608s ok 4 /socket/ipv6_async 1608s ok 5 /socket/ipv6_v4mapped 1609s ok 6 /socket/close_graceful 1609s # slow test /socket/close_graceful executed in 1.00 secs 1609s ok 7 /socket/timed_wait # SKIP Not running timing heavy test 1609s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=741707 1609s ok 8 /socket/fd_reuse 1609s ok 9 /socket/address 1609s ok 10 /socket/unix-from-fd 1609s ok 11 /socket/unix-connection 1609s ok 12 /socket/unix-connection-ancillary-data 1609s ok 13 /socket/source-postmortem 1609s ok 14 /socket/read_write 1609s ok 15 /socket/read_writev 1609s # /socket/receive_bytes summary: Test basic functionality of g_socket_receive_bytes() 1609s ok 16 /socket/receive_bytes 1609s # /socket/receive_bytes_from summary: Test basic functionality of g_socket_receive_bytes_from() 1609s ok 17 /socket/receive_bytes_from 1609s # Start of ipv4_sync tests 1609s ok 18 /socket/ipv4_sync/datagram 1609s # Start of datagram tests 1610s ok 19 /socket/ipv4_sync/datagram/timeouts 1610s # slow test /socket/ipv4_sync/datagram/timeouts executed in 1.10 secs 1610s # End of datagram tests 1610s # End of ipv4_sync tests 1610s # Start of ipv6_sync tests 1610s ok 20 /socket/ipv6_sync/datagram 1610s # Start of datagram tests 1611s ok 21 /socket/ipv6_sync/datagram/timeouts 1611s # slow test /socket/ipv6_sync/datagram/timeouts executed in 1.10 secs 1611s # End of datagram tests 1611s # End of ipv6_sync tests 1611s # Start of reuse tests 1611s ok 22 /socket/reuse/tcp 1611s ok 23 /socket/reuse/udp 1611s # End of reuse tests 1611s # Start of get_available tests 1611s Executing: glib/socket.test 1611s ok 24 /socket/get_available/datagram 1611s ok 25 /socket/get_available/stream 1611s # End of get_available tests 1611s # Start of credentials tests 1611s # Supported on this OS: GCredentials:linux-ucred:pid=0 1611s ok 26 /socket/credentials/tcp_client 1611s # Supported on this OS: GCredentials:linux-ucred:pid=0 1611s ok 27 /socket/credentials/tcp_server 1611s # Supported on this OS: GCredentials:linux-ucred:pid=66259,uid=1000,gid=1000 1611s ok 28 /socket/credentials/unix_socketpair 1611s # End of credentials tests 1611s # Start of accept tests 1611s # /socket/accept/cancelled summary: Calling g_socket_accept() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1611s ok 29 /socket/accept/cancelled 1611s # End of accept tests 1611s # Start of connect tests 1611s # /socket/connect/cancelled summary: Calling g_socket_connect() with a cancelled cancellable should return immediately regardless of whether the socket is blocking 1611s ok 30 /socket/connect/cancelled 1611s # End of connect tests 1611s # End of socket tests 1611s PASS: glib/socket.test 1611s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=8192 1611s autopkgtest [01:34:57]: test socket: -----------------------] 1612s autopkgtest [01:34:58]: test socket: - - - - - - - - - - results - - - - - - - - - - 1612s socket PASS 1613s autopkgtest [01:34:59]: test testfilemonitor: preparing testbed 1613s Reading package lists... 1613s Building dependency tree... 1613s Reading state information... 1613s Solving dependencies... 1613s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1614s autopkgtest [01:35:00]: test testfilemonitor: [----------------------- 1615s Running test: glib/testfilemonitor.test 1615s TAP version 14 1615s # random seed: R02S12ca6ab00d2a9203b8597a6d7fa85ff6 1615s 1..8 1615s # Start of monitor tests 1615s # GLib-GIO-DEBUG: _g_io_module_get_default: Found default implementation local (GLocalVfs) for ‘gio-vfs’ 1615s # Using temporary directory: /tmp/gio-test-testfilemonitor_USMDK3 1615s # Using GFileMonitor GInotifyFileMonitor 1617s ok 1 /monitor/atomic-replace 1617s # slow test /monitor/atomic-replace executed in 2.00 secs 1617s # Using temporary directory: /tmp/gio-test-testfilemonitor_QVQDK3 1617s # Using GFileMonitor GInotifyFileMonitor 1619s ok 2 /monitor/file-changes 1619s # slow test /monitor/file-changes executed in 2.50 secs 1619s # Using temporary directory: /tmp/gio-test-testfilemonitor_CH1KK3 1619s # Using GFileMonitor GInotifyFileMonitor 1620s Executing: glib/testfilemonitor.test 1623s ok 3 /monitor/dir-monitor 1623s # slow test /monitor/dir-monitor executed in 3.51 secs 1623s # Using temporary directory: /tmp/gio-test-testfilemonitor_WOWDK3 1623s # Using GFileMonitor GInotifyFileMonitor 1625s Executing: glib/testfilemonitor.test 1630s Executing: glib/testfilemonitor.test 1637s Executing: glib/testfilemonitor.test 1640s Executing: glib/testfilemonitor.test 1645s Executing: glib/testfilemonitor.test 1648s ok 4 /monitor/dir-not-existent 1648s # slow test /monitor/dir-not-existent executed in 25.02 secs 1648s # Using temporary directory: /tmp/gio-test-testfilemonitor_ZECEK3 1648s # Using GFileMonitor 0 GInotifyFileMonitor 1648s # Using GFileMonitor 1 GInotifyFileMonitor 1650s Executing: glib/testfilemonitor.test 1650s ok 5 /monitor/cross-dir-moves 1650s # slow test /monitor/cross-dir-moves executed in 2.00 secs 1650s # Using temporary directory: /tmp/gio-test-testfilemonitor_2AEEK3 1650s # /monitor/finalize-in-callback summary: Test that finalization of a GFileMonitor in one of its callbacks doesn’t cause a deadlock. 1650s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/1941 1650s ok 6 /monitor/finalize-in-callback 1650s # Using temporary directory: /tmp/gio-test-testfilemonitor_UYJEK3 1650s # /monitor/root summary: Test that GFileMonitor can monitor the root directory. 1650s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/merge_requests/3241 1650s ok 7 /monitor/root 1650s # Start of file tests 1650s # Using temporary directory: /tmp/gio-test-testfilemonitor_WOJEK3 1650s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=755721 1650s # Running with hard link tests 1650s # Using GFileMonitor GInotifyFileMonitor 1653s # Event 0 at expected index 7 skipped because it is marked as optional 1653s # Event 2 at expected index 11 skipped because it is marked as optional 1653s ok 8 /monitor/file/hard-links 1653s # slow test /monitor/file/hard-links executed in 3.50 secs 1653s # End of file tests 1653s # End of monitor tests 1653s PASS: glib/testfilemonitor.test 1653s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=8192 1654s autopkgtest [01:35:40]: test testfilemonitor: -----------------------] 1664s autopkgtest [01:35:50]: test testfilemonitor: - - - - - - - - - - results - - - - - - - - - - 1664s testfilemonitor PASS 1688s autopkgtest [01:36:14]: test thread-pool-slow: preparing testbed 1693s Reading package lists... 1693s Building dependency tree... 1693s Reading state information... 1693s Solving dependencies... 1693s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1694s autopkgtest [01:36:20]: test thread-pool-slow: [----------------------- 1695s Running test: glib/thread-pool-slow.test 1695s TAP version 14 1695s # random seed: R02Sf36b197e344d12318d2a15a89a587229 1695s 1..7 1695s # Start of threadpool tests 1695s ok 1 /threadpool/functions 1695s ok 2 /threadpool/stop-unused 1695s # slow test /threadpool/stop-unused executed in 0.51 secs 1695s ok 3 /threadpool/pools 1695s # [unsorted] ===> pushed new thread with id:40, number of threads:1, unprocessed:1 1695s # [unsorted] ===> pushed new thread with id:45, number of threads:2, unprocessed:2 1695s # [unsorted] ===> pushed new thread with id:25, number of threads:3, unprocessed:3 1695s # [unsorted] ===> pushed new thread with id:76, number of threads:4, unprocessed:4 1695s # [unsorted] ===> pushed new thread with id:87, number of threads:5, unprocessed:5 1695s # [unsorted] ===> pushed new thread with id:69, number of threads:6, unprocessed:6 1695s # [unsorted] ===> pushed new thread with id:29, number of threads:7, unprocessed:7 1695s # [unsorted] ===> pushed new thread with id:100, number of threads:8, unprocessed:8 1695s # [unsorted] ===> pushed new thread with id:75, number of threads:9, unprocessed:9 1695s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:10 1695s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:11 1695s # [unsorted] ===> pushed new thread with id:92, number of threads:10, unprocessed:12 1695s # [unsorted] ===> pushed new thread with id:70, number of threads:10, unprocessed:13 1695s # [unsorted] ===> pushed new thread with id:11, number of threads:10, unprocessed:14 1695s # [unsorted] ===> pushed new thread with id:27, number of threads:10, unprocessed:15 1695s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:16 1695s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:17 1695s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:18 1695s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:19 1695s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:20 1695s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:21 1695s # [unsorted] ===> pushed new thread with id:86, number of threads:10, unprocessed:22 1695s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:23 1695s # [unsorted] ===> pushed new thread with id:82, number of threads:10, unprocessed:24 1695s # [unsorted] ===> pushed new thread with id:51, number of threads:10, unprocessed:25 1695s # [unsorted] ===> pushed new thread with id:62, number of threads:10, unprocessed:26 1695s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:27 1695s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:28 1695s # [unsorted] ===> pushed new thread with id:4, number of threads:10, unprocessed:29 1695s # [unsorted] ===> pushed new thread with id:50, number of threads:10, unprocessed:30 1695s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:31 1695s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:32 1695s # [unsorted] ===> pushed new thread with id:23, number of threads:10, unprocessed:33 1695s # [unsorted] ===> pushed new thread with id:16, number of threads:10, unprocessed:34 1695s # [unsorted] ===> pushed new thread with id:14, number of threads:10, unprocessed:35 1695s # [unsorted] ===> pushed new thread with id:53, number of threads:10, unprocessed:36 1695s # [unsorted] ===> pushed new thread with id:17, number of threads:10, unprocessed:37 1695s # [unsorted] ===> pushed new thread with id:38, number of threads:10, unprocessed:38 1695s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:39 1695s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:40 1695s # [unsorted] ===> pushed new thread with id:18, number of threads:10, unprocessed:41 1695s # [unsorted] ===> pushed new thread with id:89, number of threads:10, unprocessed:42 1695s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:43 1695s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:44 1695s # [unsorted] ===> pushed new thread with id:56, number of threads:10, unprocessed:45 1695s # [unsorted] ===> pushed new thread with id:93, number of threads:10, unprocessed:46 1695s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:47 1695s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:48 1695s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:49 1695s # [unsorted] ===> pushed new thread with id:25, number of threads:10, unprocessed:50 1695s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:51 1695s # [unsorted] ===> pushed new thread with id:74, number of threads:10, unprocessed:52 1695s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:53 1695s # [unsorted] ===> pushed new thread with id:30, number of threads:10, unprocessed:54 1695s # [unsorted] ===> pushed new thread with id:65, number of threads:10, unprocessed:55 1695s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:56 1695s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:57 1695s # [unsorted] ===> pushed new thread with id:9, number of threads:10, unprocessed:58 1695s # [unsorted] ===> pushed new thread with id:63, number of threads:10, unprocessed:59 1695s # [unsorted] ===> pushed new thread with id:97, number of threads:10, unprocessed:60 1695s # [unsorted] ===> pushed new thread with id:85, number of threads:10, unprocessed:61 1695s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:62 1695s # [unsorted] ===> pushed new thread with id:12, number of threads:10, unprocessed:63 1695s # [unsorted] ===> pushed new thread with id:35, number of threads:10, unprocessed:64 1695s # [unsorted] ===> pushed new thread with id:81, number of threads:10, unprocessed:65 1695s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:66 1695s # [unsorted] ===> pushed new thread with id:99, number of threads:10, unprocessed:67 1695s # [unsorted] ===> pushed new thread with id:29, number of threads:10, unprocessed:68 1695s # [unsorted] ===> pushed new thread with id:8, number of threads:10, unprocessed:69 1695s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:70 1695s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:71 1695s # [unsorted] ===> pushed new thread with id:60, number of threads:10, unprocessed:72 1695s # [unsorted] ===> pushed new thread with id:58, number of threads:10, unprocessed:73 1695s # [unsorted] ===> pushed new thread with id:36, number of threads:10, unprocessed:74 1695s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:75 1695s # [unsorted] ===> pushed new thread with id:88, number of threads:10, unprocessed:76 1695s # [unsorted] ===> pushed new thread with id:42, number of threads:10, unprocessed:77 1695s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:78 1695s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:79 1695s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:80 1695s # [unsorted] ===> pushed new thread with id:55, number of threads:10, unprocessed:81 1695s # [unsorted] ===> pushed new thread with id:64, number of threads:10, unprocessed:82 1695s # [unsorted] ===> pushed new thread with id:31, number of threads:10, unprocessed:83 1695s # [unsorted] ===> pushed new thread with id:6, number of threads:10, unprocessed:84 1695s # [unsorted] ===> pushed new thread with id:94, number of threads:10, unprocessed:85 1695s # [unsorted] ===> pushed new thread with id:78, number of threads:10, unprocessed:86 1695s # [unsorted] ===> pushed new thread with id:100, number of threads:10, unprocessed:87 1695s # [unsorted] ===> pushed new thread with id:43, number of threads:10, unprocessed:88 1695s # [unsorted] ===> pushed new thread with id:34, number of threads:10, unprocessed:89 1695s # [unsorted] ===> pushed new thread with id:15, number of threads:10, unprocessed:90 1695s # [unsorted] ===> pushed new thread with id:39, number of threads:10, unprocessed:91 1695s # [unsorted] ===> pushed new thread with id:80, number of threads:10, unprocessed:92 1695s # [unsorted] ===> pushed new thread with id:26, number of threads:10, unprocessed:93 1695s # [unsorted] ===> pushed new thread with id:5, number of threads:10, unprocessed:94 1695s # [unsorted] ===> pushed new thread with id:71, number of threads:10, unprocessed:95 1695s # [unsorted] ===> pushed new thread with id:3, number of threads:10, unprocessed:96 1695s # [unsorted] ===> pushed new thread with id:75, number of threads:10, unprocessed:97 1695s # [unsorted] ===> pushed new thread with id:44, number of threads:10, unprocessed:98 1695s # [unsorted] ===> pushed new thread with id:77, number of threads:10, unprocessed:99 1695s # [unsorted] ===> pushed new thread with id:68, number of threads:10, unprocessed:100 1695s ok 4 /threadpool/no-sort 1695s # [ sorted] ===> pushed new thread with id:61, number of threads:0, unprocessed:1 1695s # [ sorted] ===> pushed new thread with id:64, number of threads:0, unprocessed:2 1695s # [ sorted] ===> pushed new thread with id:14, number of threads:0, unprocessed:3 1695s # [ sorted] ===> pushed new thread with id:67, number of threads:0, unprocessed:4 1695s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:5 1695s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:6 1695s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:7 1695s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:8 1695s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:9 1695s # [ sorted] ===> pushed new thread with id:73, number of threads:0, unprocessed:10 1695s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:11 1695s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:12 1695s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:13 1695s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:14 1695s # [ sorted] ===> pushed new thread with id:95, number of threads:0, unprocessed:15 1695s # [ sorted] ===> pushed new thread with id:50, number of threads:0, unprocessed:16 1695s # [ sorted] ===> pushed new thread with id:51, number of threads:0, unprocessed:17 1695s # [ sorted] ===> pushed new thread with id:78, number of threads:0, unprocessed:18 1695s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:19 1695s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:20 1695s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:21 1695s # [ sorted] ===> pushed new thread with id:85, number of threads:0, unprocessed:22 1695s # [ sorted] ===> pushed new thread with id:69, number of threads:0, unprocessed:23 1695s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:24 1695s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:25 1695s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:26 1695s # [ sorted] ===> pushed new thread with id:32, number of threads:0, unprocessed:27 1695s # [ sorted] ===> pushed new thread with id:38, number of threads:0, unprocessed:28 1695s # [ sorted] ===> pushed new thread with id:6, number of threads:0, unprocessed:29 1695s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:30 1695s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:31 1695s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:32 1695s # [ sorted] ===> pushed new thread with id:89, number of threads:0, unprocessed:33 1695s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:34 1695s # [ sorted] ===> pushed new thread with id:70, number of threads:0, unprocessed:35 1695s # [ sorted] ===> pushed new thread with id:68, number of threads:0, unprocessed:36 1695s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:37 1695s # [ sorted] ===> pushed new thread with id:98, number of threads:0, unprocessed:38 1695s # [ sorted] ===> pushed new thread with id:97, number of threads:0, unprocessed:39 1695s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:40 1695s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:41 1695s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:42 1695s # [ sorted] ===> pushed new thread with id:19, number of threads:0, unprocessed:43 1695s # [ sorted] ===> pushed new thread with id:42, number of threads:0, unprocessed:44 1695s # [ sorted] ===> pushed new thread with id:59, number of threads:0, unprocessed:45 1695s # [ sorted] ===> pushed new thread with id:21, number of threads:0, unprocessed:46 1695s # [ sorted] ===> pushed new thread with id:25, number of threads:0, unprocessed:47 1695s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:48 1695s # [ sorted] ===> pushed new thread with id:34, number of threads:0, unprocessed:49 1695s # [ sorted] ===> pushed new thread with id:11, number of threads:0, unprocessed:50 1695s # [ sorted] ===> pushed new thread with id:12, number of threads:0, unprocessed:51 1695s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:52 1695s # [ sorted] ===> pushed new thread with id:87, number of threads:0, unprocessed:53 1695s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:54 1695s # [ sorted] ===> pushed new thread with id:13, number of threads:0, unprocessed:55 1695s # [ sorted] ===> pushed new thread with id:15, number of threads:0, unprocessed:56 1695s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:57 1695s # [ sorted] ===> pushed new thread with id:76, number of threads:0, unprocessed:58 1695s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:59 1695s # [ sorted] ===> pushed new thread with id:3, number of threads:0, unprocessed:60 1695s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:61 1695s # [ sorted] ===> pushed new thread with id:35, number of threads:0, unprocessed:62 1695s # [ sorted] ===> pushed new thread with id:28, number of threads:0, unprocessed:63 1695s # [ sorted] ===> pushed new thread with id:71, number of threads:0, unprocessed:64 1695s # [ sorted] ===> pushed new thread with id:55, number of threads:0, unprocessed:65 1695s # [ sorted] ===> pushed new thread with id:74, number of threads:0, unprocessed:66 1695s # [ sorted] ===> pushed new thread with id:33, number of threads:0, unprocessed:67 1695s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:68 1695s # [ sorted] ===> pushed new thread with id:53, number of threads:0, unprocessed:69 1695s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:70 1695s # [ sorted] ===> pushed new thread with id:39, number of threads:0, unprocessed:71 1695s # [ sorted] ===> pushed new thread with id:45, number of threads:0, unprocessed:72 1695s # [ sorted] ===> pushed new thread with id:7, number of threads:0, unprocessed:73 1695s # [ sorted] ===> pushed new thread with id:86, number of threads:0, unprocessed:74 1695s # [ sorted] ===> pushed new thread with id:66, number of threads:0, unprocessed:75 1695s # [ sorted] ===> pushed new thread with id:18, number of threads:0, unprocessed:76 1695s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:77 1695s # [ sorted] ===> pushed new thread with id:17, number of threads:0, unprocessed:78 1695s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:79 1695s # [ sorted] ===> pushed new thread with id:54, number of threads:0, unprocessed:80 1695s # [ sorted] ===> pushed new thread with id:29, number of threads:0, unprocessed:81 1695s # [ sorted] ===> pushed new thread with id:36, number of threads:0, unprocessed:82 1695s # [ sorted] ===> pushed new thread with id:99, number of threads:0, unprocessed:83 1695s # [ sorted] ===> pushed new thread with id:40, number of threads:0, unprocessed:84 1695s # [ sorted] ===> pushed new thread with id:93, number of threads:0, unprocessed:85 1695s # [ sorted] ===> pushed new thread with id:75, number of threads:0, unprocessed:86 1695s # [ sorted] ===> pushed new thread with id:96, number of threads:0, unprocessed:87 1695s # [ sorted] ===> pushed new thread with id:62, number of threads:0, unprocessed:88 1695s # [ sorted] ===> pushed new thread with id:77, number of threads:0, unprocessed:89 1695s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:90 1695s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:91 1695s # [ sorted] ===> pushed new thread with id:26, number of threads:0, unprocessed:92 1695s # [ sorted] ===> pushed new thread with id:92, number of threads:0, unprocessed:93 1695s # [ sorted] ===> pushed new thread with id:22, number of threads:0, unprocessed:94 1695s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:95 1695s # [ sorted] ===> pushed new thread with id:4, number of threads:0, unprocessed:96 1695s # [ sorted] ===> pushed new thread with id:56, number of threads:0, unprocessed:97 1695s # [ sorted] ===> pushed new thread with id:10, number of threads:0, unprocessed:98 1695s # [ sorted] ===> pushed new thread with id:48, number of threads:0, unprocessed:99 1695s # [ sorted] ===> pushed new thread with id:60, number of threads:0, unprocessed:100 1695s # Starting thread pool processing 1695s ok 5 /threadpool/sort 1696s ok 6 /threadpool/stop-unused-multiple 1696s # slow test /threadpool/stop-unused-multiple executed in 0.51 secs 1696s # Pool idle thread count: 0, unprocessed jobs: 42 1696s # Pool idle thread count: 0, unprocessed jobs: 0 1696s # Pool idle thread count: 0, unprocessed jobs: 0 1697s # Pool idle thread count: 10, unprocessed jobs: 0 1697s # Pool idle thread count: 10, unprocessed jobs: 0 1697s # Pool idle thread count: 10, unprocessed jobs: 0 1697s # Pool idle thread count: 10, unprocessed jobs: 0 1698s # Pool idle thread count: 10, unprocessed jobs: 0 1701s # Pool idle thread count: 10, unprocessed jobs: 0 1701s # Pool idle thread count: 10, unprocessed jobs: 0 1701s # Pool idle thread count: 10, unprocessed jobs: 0 1701s # Pool idle thread count: 10, unprocessed jobs: 0 1701s # Pool idle thread count: 10, unprocessed jobs: 0 1701s # Pool idle thread count: 10, unprocessed jobs: 0 1701s # Pool idle thread count: 10, unprocessed jobs: 0 1701s Executing: glib/thread-pool-slow.test 1701s # Pool idle thread count: 10, unprocessed jobs: 0 1701s # Pool idle thread count: 10, unprocessed jobs: 0 1701s # Pool idle thread count: 10, unprocessed jobs: 0 1701s # Pool idle thread count: 10, unprocessed jobs: 0 1701s # Pool idle thread count: 10, unprocessed jobs: 0 1701s # Pool idle thread count: 10, unprocessed jobs: 0 1701s # Pool idle thread count: 10, unprocessed jobs: 0 1701s # Pool idle thread count: 10, unprocessed jobs: 0 1702s # Pool idle thread count: 10, unprocessed jobs: 0 1702s # Pool idle thread count: 10, unprocessed jobs: 0 1702s # Pool idle thread count: 10, unprocessed jobs: 0 1702s # Pool idle thread count: 10, unprocessed jobs: 0 1703s # Pool idle thread count: 10, unprocessed jobs: 0 1703s # Pool idle thread count: 10, unprocessed jobs: 0 1703s # Pool idle thread count: 10, unprocessed jobs: 0 1703s # Pool idle thread count: 10, unprocessed jobs: 0 1704s # Pool idle thread count: 10, unprocessed jobs: 0 1704s # Pool idle thread count: 10, unprocessed jobs: 0 1704s # Pool idle thread count: 10, unprocessed jobs: 0 1704s # Pool idle thread count: 10, unprocessed jobs: 0 1705s Executing: glib/thread-pool-slow.test 1705s # Pool idle thread count: 8, unprocessed jobs: 0 1705s # Pool idle thread count: 8, unprocessed jobs: 0 1705s # Pool idle thread count: 8, unprocessed jobs: 0 1705s # Pool idle thread count: 8, unprocessed jobs: 0 1705s # Pool idle thread count: 10, unprocessed jobs: 0 1705s # Pool idle thread count: 10, unprocessed jobs: 0 1706s # Pool idle thread count: 10, unprocessed jobs: 0 1706s # Pool idle thread count: 10, unprocessed jobs: 0 1706s # Pool idle thread count: 10, unprocessed jobs: 0 1706s # Pool idle thread count: 10, unprocessed jobs: 0 1707s # Pool idle thread count: 2, unprocessed jobs: 0 1707s # Pool idle thread count: 2, unprocessed jobs: 0 1707s # Pool idle thread count: 2, unprocessed jobs: 0 1707s # Pool idle thread count: 2, unprocessed jobs: 0 1708s # Pool idle thread count: 2, unprocessed jobs: 0 1708s # Pool idle thread count: 2, unprocessed jobs: 0 1708s # Pool idle thread count: 2, unprocessed jobs: 0 1708s # Pool idle thread count: 2, unprocessed jobs: 0 1709s # Pool idle thread count: 2, unprocessed jobs: 0 1709s # Pool idle thread count: 2, unprocessed jobs: 0 1709s # Pool idle thread count: 2, unprocessed jobs: 0 1709s # Pool idle thread count: 2, unprocessed jobs: 0 1710s Executing: glib/thread-pool-slow.test 1710s # Pool idle thread count: 2, unprocessed jobs: 0 1710s # Pool idle thread count: 2, unprocessed jobs: 0 1710s # Pool idle thread count: 2, unprocessed jobs: 0 1710s # Pool idle thread count: 2, unprocessed jobs: 0 1711s # Pool idle thread count: 2, unprocessed jobs: 0 1711s # Pool idle thread count: 2, unprocessed jobs: 0 1711s # Pool idle thread count: 2, unprocessed jobs: 0 1711s # Pool idle thread count: 2, unprocessed jobs: 0 1712s # Pool idle thread count: 2, unprocessed jobs: 0 1712s # Pool idle thread count: 2, unprocessed jobs: 0 1712s # Pool idle thread count: 2, unprocessed jobs: 0 1712s # Pool idle thread count: 2, unprocessed jobs: 0 1713s # Pool idle thread count: 2, unprocessed jobs: 0 1713s # Pool idle thread count: 2, unprocessed jobs: 0 1715s # Pool idle thread count: 2, unprocessed jobs: 0 1715s # Pool idle thread count: 2, unprocessed jobs: 0 1715s # Pool idle thread count: 2, unprocessed jobs: 0 1715s # Pool idle thread count: 2, unprocessed jobs: 0 1715s # Pool idle thread count: 2, unprocessed jobs: 0 1715s # Pool idle thread count: 2, unprocessed jobs: 0 1715s Executing: glib/thread-pool-slow.test 1715s # Pool idle thread count: 2, unprocessed jobs: 0 1715s # Pool idle thread count: 2, unprocessed jobs: 0 1715s ok 7 /threadpool/idle-time 1715s # slow test /threadpool/idle-time executed in 19.54 secs 1715s # End of threadpool tests 1715s PASS: glib/thread-pool-slow.test 1715s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.5s; system=0.0s; maxrss=8192 1719s autopkgtest [01:36:44]: test thread-pool-slow: -----------------------] 1758s autopkgtest [01:37:23]: test thread-pool-slow: - - - - - - - - - - results - - - - - - - - - - 1758s thread-pool-slow PASS 1795s autopkgtest [01:38:01]: test threadtests: preparing testbed 1796s Reading package lists... 1796s Building dependency tree... 1796s Reading state information... 1796s Solving dependencies... 1796s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1797s autopkgtest [01:38:03]: test threadtests: [----------------------- 1798s Running test: glib/threadtests.test 1798s TAP version 14 1798s # random seed: R02S3089aa8a51dbb6bafbb79d33912756dd 1798s 1..5 1798s # Start of GObject tests 1798s ok 1 /GObject/threaded-object-init 1799s ok 2 /GObject/threaded-weak-ref 1799s # slow test /GObject/threaded-weak-ref executed in 0.96 secs 1799s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/2394 1799s # /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 1799s ok 3 /GObject/threaded-toggle-notify 1799s ok 4 /GObject/threaded-g-pointer-bit-unlock-and-set 1799s # Start of threaded-weak-ref tests 1799s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/-/issues/2390 1799s # /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. 1799s ok 5 /GObject/threaded-weak-ref/on-finalization 1799s # End of threaded-weak-ref tests 1799s # End of GObject tests 1799s PASS: glib/threadtests.test 1799s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=1.1s; system=0.5s; maxrss=4096 1800s autopkgtest [01:38:06]: test threadtests: -----------------------] 1805s autopkgtest [01:38:11]: test threadtests: - - - - - - - - - - results - - - - - - - - - - 1805s threadtests PASS 1806s autopkgtest [01:38:12]: test timeout: preparing testbed 1806s Reading package lists... 1806s Building dependency tree... 1806s Reading state information... 1806s Solving dependencies... 1807s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1808s autopkgtest [01:38:14]: test timeout: [----------------------- 1808s Running test: glib/timeout.test 1808s TAP version 14 1808s # random seed: R02S49fc651a9bcb6fde93a3b9edc5953baf 1808s 1..5 1808s # Start of timeout tests 1808s # Bug Reference: https://bugzilla.gnome.org/show_bug.cgi?id=642052 1810s ok 1 /timeout/seconds 1810s # slow test /timeout/seconds executed in 2.10 secs 1812s ok 2 /timeout/seconds-once 1812s # slow test /timeout/seconds-once executed in 2.10 secs 1812s # Bug Reference: https://gitlab.gnome.org/GNOME/glib/issues/1600 1814s Executing: glib/timeout.test 1814s ok 3 /timeout/weeks-overflow 1814s # slow test /timeout/weeks-overflow executed in 2.10 secs 1814s ok 4 /timeout/far-future-ready-time 1819s Executing: glib/timeout.test 1824s Executing: glib/timeout.test 1825s ok 5 /timeout/rounding 1825s # slow test /timeout/rounding executed in 10.44 secs 1825s # End of timeout tests 1825s PASS: glib/timeout.test 1825s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2048 1825s autopkgtest [01:38:31]: test timeout: -----------------------] 1826s timeout PASS 1826s autopkgtest [01:38:32]: test timeout: - - - - - - - - - - results - - - - - - - - - - 1827s autopkgtest [01:38:33]: test timer: preparing testbed 1827s Reading package lists... 1827s Building dependency tree... 1827s Reading state information... 1827s Solving dependencies... 1827s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1829s autopkgtest [01:38:35]: test timer: [----------------------- 1830s Running test: glib/timer.test 1830s TAP version 14 1830s # random seed: R02Sca92666da50ce0f131bd21ca2241e961 1830s 1..10 1830s # Start of timer tests 1830s ok 1 /timer/basic 1830s ok 2 /timer/stop 1830s ok 3 /timer/continue 1830s ok 4 /timer/reset 1830s ok 5 /timer/is_active 1830s # End of timer tests 1830s # Start of timeval tests 1830s ok 6 /timeval/add 1830s ok 7 /timeval/from-iso8601 1830s ok 8 /timeval/to-iso8601 1830s # Start of to-iso8601 tests 1830s ok 9 /timeval/to-iso8601/overflow 1830s # End of to-iso8601 tests 1830s # End of timeval tests 1830s # Start of usleep tests 1830s ok 10 /usleep/with-zero-wait 1830s # End of usleep tests 1830s PASS: glib/timer.test 1830s SUMMARY: total=1; passed=1; skipped=0; failed=0; user=0.0s; system=0.0s; maxrss=2048 1830s autopkgtest [01:38:36]: test timer: -----------------------] 1831s timer PASS 1831s autopkgtest [01:38:37]: test timer: - - - - - - - - - - results - - - - - - - - - - 1831s autopkgtest [01:38:37]: test 1065022-futureproofing: preparing testbed 1851s Creating nova instance adt-resolute-ppc64el-glib2.0-20260206-002641-juju-7f2275-prod-proposed-migration-environment-20-dce05e57-bf64-42a2-997c-5f6963aa1fa8 from image adt/ubuntu-resolute-ppc64el-server-20260205.img (UUID f866c950-0b62-4023-bac6-0f13279e15ed)... 1910s autopkgtest [01:39:56]: testbed dpkg architecture: ppc64el 1910s autopkgtest [01:39:56]: testbed apt version: 3.1.14 1910s autopkgtest [01:39:56]: @@@@@@@@@@@@@@@@@@@@ test bed setup 1910s autopkgtest [01:39:56]: testbed release detected to be: resolute 1911s autopkgtest [01:39:57]: updating testbed package index (apt update) 1911s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 1911s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 1911s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 1911s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 1911s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1631 kB] 1911s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [31.4 kB] 1911s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [5260 B] 1912s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [221 kB] 1912s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el Packages [262 kB] 1912s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el Packages [1416 kB] 1912s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse ppc64el Packages [19.7 kB] 1912s Fetched 3711 kB in 1s (4393 kB/s) 1913s Reading package lists... 1913s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 1913s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 1913s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 1913s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 1914s Reading package lists... 1914s Reading package lists... 1914s Building dependency tree... 1914s Reading state information... 1915s Calculating upgrade... 1915s The following packages will be upgraded: 1915s libdrm-amdgpu1 libdrm-common libdrm2 mawk pollinate python3-referencing 1915s python3.14-gdbm sed 1915s 8 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1915s Need to get 518 kB of archives. 1915s After this operation, 0 B of additional disk space will be used. 1915s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el sed ppc64el 4.9-2build3 [211 kB] 1915s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el mawk ppc64el 1.3.4.20260129-1 [147 kB] 1915s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm-common all 2.4.131-1 [9774 B] 1915s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm2 ppc64el 2.4.131-1 [51.4 kB] 1915s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3.14-gdbm ppc64el 3.14.3-1 [34.4 kB] 1915s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdrm-amdgpu1 ppc64el 2.4.131-1 [27.5 kB] 1915s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el pollinate all 4.33-4ubuntu5 [14.0 kB] 1915s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-referencing all 0.36.2-1ubuntu2 [22.2 kB] 1915s dpkg-preconfigure: unable to re-open stdin: No such file or directory 1915s Fetched 518 kB in 0s (17.3 MB/s) 1915s (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 ... 82008 files and directories currently installed.) 1915s Preparing to unpack .../sed_4.9-2build3_ppc64el.deb ... 1915s Unpacking sed (4.9-2build3) over (4.9-2build2) ... 1915s Setting up sed (4.9-2build3) ... 1915s (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 ... 82008 files and directories currently installed.) 1915s Preparing to unpack .../0-mawk_1.3.4.20260129-1_ppc64el.deb ... 1915s Unpacking mawk (1.3.4.20260129-1) over (1.3.4.20250131-2) ... 1916s Preparing to unpack .../1-libdrm-common_2.4.131-1_all.deb ... 1916s Unpacking libdrm-common (2.4.131-1) over (2.4.129-1) ... 1916s Preparing to unpack .../2-libdrm2_2.4.131-1_ppc64el.deb ... 1916s Unpacking libdrm2:ppc64el (2.4.131-1) over (2.4.129-1) ... 1916s Preparing to unpack .../3-python3.14-gdbm_3.14.3-1_ppc64el.deb ... 1916s Unpacking python3.14-gdbm (3.14.3-1) over (3.14.2-1) ... 1916s Preparing to unpack .../4-libdrm-amdgpu1_2.4.131-1_ppc64el.deb ... 1916s Unpacking libdrm-amdgpu1:ppc64el (2.4.131-1) over (2.4.129-1) ... 1916s Preparing to unpack .../5-pollinate_4.33-4ubuntu5_all.deb ... 1916s Unpacking pollinate (4.33-4ubuntu5) over (4.33-4ubuntu4) ... 1916s Preparing to unpack .../6-python3-referencing_0.36.2-1ubuntu2_all.deb ... 1925s Unpacking python3-referencing (0.36.2-1ubuntu2) over (0.36.2-1ubuntu1) ... 1925s Setting up pollinate (4.33-4ubuntu5) ... 1927s Setting up python3.14-gdbm (3.14.3-1) ... 1927s Setting up mawk (1.3.4.20260129-1) ... 1927s Setting up libdrm-common (2.4.131-1) ... 1927s Setting up python3-referencing (0.36.2-1ubuntu2) ... 1927s Setting up libdrm2:ppc64el (2.4.131-1) ... 1927s Setting up libdrm-amdgpu1:ppc64el (2.4.131-1) ... 1927s Processing triggers for man-db (2.13.1-1) ... 1928s Processing triggers for install-info (7.2-5) ... 1928s Processing triggers for libc-bin (2.42-2ubuntu4) ... 1928s autopkgtest [01:40:14]: upgrading testbed (apt dist-upgrade and autopurge) 1928s Reading package lists... 1928s Building dependency tree... 1928s Reading state information... 1929s Calculating upgrade... 1929s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1929s Reading package lists... 1929s Building dependency tree... 1929s Reading state information... 1929s Solving dependencies... 1929s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 1929s autopkgtest [01:40:15]: rebooting testbed after setup commands that affected boot 1973s Reading package lists... 1973s Building dependency tree... 1973s Reading state information... 1973s Solving dependencies... 1973s The following NEW packages will be installed: 1973s dconf-gsettings-backend dconf-service dpkg-repack gsettings-desktop-schemas 1973s libdconf1 1973s 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded. 1973s Need to get 155 kB of archives. 1973s After this operation, 833 kB of additional disk space will be used. 1973s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdconf1 ppc64el 0.49.0-4 [45.7 kB] 1973s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el dconf-service ppc64el 0.49.0-4 [31.6 kB] 1973s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el dconf-gsettings-backend ppc64el 0.49.0-4 [27.3 kB] 1973s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el dpkg-repack all 1.54build1 [11.2 kB] 1973s Get:5 http://ftpmaster.internal/ubuntu resolute/main ppc64el gsettings-desktop-schemas all 50~alpha-1ubuntu1 [38.9 kB] 1974s Fetched 155 kB in 0s (559 kB/s) 1974s Selecting previously unselected package libdconf1:ppc64el. 1974s (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 ... 82008 files and directories currently installed.) 1974s Preparing to unpack .../libdconf1_0.49.0-4_ppc64el.deb ... 1974s Unpacking libdconf1:ppc64el (0.49.0-4) ... 1974s Selecting previously unselected package dconf-service. 1974s Preparing to unpack .../dconf-service_0.49.0-4_ppc64el.deb ... 1974s Unpacking dconf-service (0.49.0-4) ... 1974s Selecting previously unselected package dconf-gsettings-backend:ppc64el. 1974s Preparing to unpack .../dconf-gsettings-backend_0.49.0-4_ppc64el.deb ... 1974s Unpacking dconf-gsettings-backend:ppc64el (0.49.0-4) ... 1974s Selecting previously unselected package dpkg-repack. 1974s Preparing to unpack .../dpkg-repack_1.54build1_all.deb ... 1974s Unpacking dpkg-repack (1.54build1) ... 1974s Selecting previously unselected package gsettings-desktop-schemas. 1974s Preparing to unpack .../gsettings-desktop-schemas_50~alpha-1ubuntu1_all.deb ... 1974s Unpacking gsettings-desktop-schemas (50~alpha-1ubuntu1) ... 1974s Setting up dpkg-repack (1.54build1) ... 1974s Setting up libdconf1:ppc64el (0.49.0-4) ... 1974s Setting up dconf-service (0.49.0-4) ... 1974s Setting up dconf-gsettings-backend:ppc64el (0.49.0-4) ... 1974s Setting up gsettings-desktop-schemas (50~alpha-1ubuntu1) ... 1974s Processing triggers for man-db (2.13.1-1) ... 1975s Processing triggers for libglib2.0-0t64:ppc64el (2.86.3-4) ... 1975s Processing triggers for libc-bin (2.42-2ubuntu4) ... 1985s autopkgtest [01:41:11]: test 1065022-futureproofing: [----------------------- 1985s + export DEBIAN_FRONTEND=noninteractive 1985s + n=0 1985s + failed=0 1985s + binary_package=libglib2.0-0t64 1985s + future_binary_package=libglib2.0-0xyz 1985s + pwd 1985s + srcdir=/tmp/autopkgtest.5Le3RJ/build.kkL/src 1985s + mktemp -d 1985s + tmpdir=/tmp/tmp.svGCpgbJio 1985s + cd /tmp/tmp.svGCpgbJio 1985s + exec 1985s + [ -e /tmp/autopkgtest.5Le3RJ/build.kkL/src/debian/tests/manual/local-1065022.sources ] 1985s + dpkg-query -W dpkg-repack 1985s dpkg-repack 1.54build1 1985s + dpkg-query -s libglib2.0-0t64 1985s Package: libglib2.0-0t64 1985s Status: install ok installed 1985s Priority: important 1985s Section: libs 1985s Installed-Size: 6018 1985s Maintainer: Ubuntu Developers 1985s Architecture: ppc64el 1985s Multi-Arch: same 1985s Source: glib2.0 1985s Version: 2.86.3-4 1985s Replaces: libglib2.0-0 (<< 2.80.0-7~) 1985s 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) 1985s 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) 1985s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 1985s Suggests: low-memory-monitor 1985s Breaks: gnome-shell (<< 44.9-2~), libglib2.0-0 (<< 2.80.0-7~) 1985s Description: GLib library of C routines 1985s GLib is a library containing many useful C routines for things such 1985s as trees, hashes, lists, and strings. It is a useful general-purpose 1985s C library used by projects such as GTK+, GIMP, and GNOME. 1985s . 1985s This package contains the shared libraries. 1985s Original-Maintainer: Debian GNOME Maintainers 1985s Homepage: https://gitlab.gnome.org/GNOME/glib 1985s + dpkg-query -W -f ${Version} libglib2.0-0t64 1985s + binary_version=2.86.3-4 1985s + dpkg-repack --generate libglib2.0-0t64 1985s dpkg-repack: warning: unknown information field 'Original-Maintainer' in input data in stanza in dpkg's status file 1985s dpkg-repack: info: created dpkg-repack.libglib2.0-0t64.1Jl9SM for libglib2.0-0t64 1985s dpkg-repack: info: to build use: "dpkg-deb --build dpkg-repack.libglib2.0-0t64.1Jl9SM ." 1985s + grep -q ^Breaks: dpkg-repack.libglib2.0-0t64.1Jl9SM/DEBIAN/control 1985s + grep -q ^Provides: dpkg-repack.libglib2.0-0t64.1Jl9SM/DEBIAN/control 1985s + grep -q ^Replaces: dpkg-repack.libglib2.0-0t64.1Jl9SM/DEBIAN/control 1985s + 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.1Jl9SM/DEBIAN/control 1985s + dpkg-deb --build dpkg-repack.libglib2.0-0t64.1Jl9SM libglib2.0-0xyz.deb 1985s dpkg-deb: building package 'libglib2.0-0xyz' in 'libglib2.0-0xyz.deb'. 1987s + dpkg-deb --info libglib2.0-0xyz.deb 1987s new Debian package, version 2.0. 1987s size 1848848 bytes: control archive=25753 bytes. 1987s 1220 bytes, 24 lines control 1987s 1184 bytes, 14 lines md5sums 1987s 1328 bytes, 44 lines * postinst #!/bin/sh 1987s 2582 bytes, 87 lines * postrm #!/bin/sh 1987s 2408 bytes, 53 lines * preinst #!/bin/sh 1987s 466 bytes, 10 lines shlibs 1987s 172677 bytes, 4529 lines symbols 1987s 176 bytes, 4 lines triggers 1987s Package: libglib2.0-0xyz 1987s Source: glib2.0 1987s Version: 2.86.3-4 1987s Architecture: ppc64el 1987s Maintainer: Ubuntu Developers 1987s Installed-Size: 6018 1987s 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) 1987s Recommends: libglib2.0-data, shared-mime-info, xdg-user-dirs 1987s Suggests: low-memory-monitor 1987s Breaks: gnome-shell (<< 44.9-2~), libglib2.0-0 (<< 2.80.0-7~), libglib2.0-0t64 1987s Replaces: libglib2.0-0 (<< 2.80.0-7~), libglib2.0-0t64 1987s 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) 1987s Section: libs 1987s Priority: important 1987s Multi-Arch: same 1987s Homepage: https://gitlab.gnome.org/GNOME/glib 1987s Description: GLib library of C routines 1987s GLib is a library containing many useful C routines for things such 1987s as trees, hashes, lists, and strings. It is a useful general-purpose 1987s C library used by projects such as GTK+, GIMP, and GNOME. 1987s . 1987s This package contains the shared libraries. 1987s . 1987s (Repackaged on Fri, 06 Feb 2026 01:41:10 +0000 by dpkg-repack.) 1987s + dpkg-deb --contents libglib2.0-0xyz.deb 1987s drwxr-xr-x root/root 0 2026-02-06 01:41 ./ 1987s drwxr-xr-x root/root 0 2026-02-06 01:41 ./usr/ 1987s drwxr-xr-x root/root 0 2026-02-06 01:41 ./usr/lib/ 1987s drwxr-xr-x root/root 0 2026-02-06 01:41 ./usr/lib/powerpc64le-linux-gnu/ 1987s drwxr-xr-x root/root 0 2026-02-06 01:41 ./usr/lib/powerpc64le-linux-gnu/gio/ 1987s drwxr-xr-x root/root 0 2026-02-06 01:41 ./usr/lib/powerpc64le-linux-gnu/gio/modules/ 1987s drwxr-xr-x root/root 0 2026-02-06 01:41 ./usr/lib/powerpc64le-linux-gnu/glib-2.0/ 1987s -rwxr-xr-x root/root 67832 2026-01-01 12:59 ./usr/lib/powerpc64le-linux-gnu/glib-2.0/gio-launch-desktop 1987s -rwxr-xr-x root/root 67832 2026-01-01 12:59 ./usr/lib/powerpc64le-linux-gnu/glib-2.0/gio-querymodules 1987s -rwxr-xr-x root/root 67872 2026-01-01 12:59 ./usr/lib/powerpc64le-linux-gnu/glib-2.0/glib-compile-schemas 1987s -rw-r--r-- root/root 2756184 2026-01-01 12:59 ./usr/lib/powerpc64le-linux-gnu/libgio-2.0.so.0.8600.3 1987s -rw-r--r-- root/root 1904216 2026-01-01 12:59 ./usr/lib/powerpc64le-linux-gnu/libglib-2.0.so.0.8600.3 1987s -rw-r--r-- root/root 67640 2026-01-01 12:59 ./usr/lib/powerpc64le-linux-gnu/libgmodule-2.0.so.0.8600.3 1987s -rw-r--r-- root/root 592184 2026-01-01 12:59 ./usr/lib/powerpc64le-linux-gnu/libgobject-2.0.so.0.8600.3 1987s -rw-r--r-- root/root 67600 2026-01-01 12:59 ./usr/lib/powerpc64le-linux-gnu/libgthread-2.0.so.0.8600.3 1987s drwxr-xr-x root/root 0 2026-02-06 01:41 ./usr/share/ 1987s drwxr-xr-x root/root 0 2026-02-06 01:41 ./usr/share/doc/ 1987s drwxr-xr-x root/root 0 2026-02-06 01:41 ./usr/share/doc/libglib2.0-0t64/ 1987s -rw-r--r-- root/root 258310 2025-12-08 15:46 ./usr/share/doc/libglib2.0-0t64/NEWS.gz 1987s -rw-r--r-- root/root 1703 2026-01-01 12:59 ./usr/share/doc/libglib2.0-0t64/README.Debian 1987s -rw-r--r-- root/root 3248 2025-12-08 15:46 ./usr/share/doc/libglib2.0-0t64/README.md 1987s -rw-r--r-- root/root 39086 2026-01-01 12:59 ./usr/share/doc/libglib2.0-0t64/changelog.Debian.gz 1987s -rw-r--r-- root/root 55103 2026-01-01 12:59 ./usr/share/doc/libglib2.0-0t64/copyright 1987s drwxr-xr-x root/root 0 2026-02-06 01:41 ./usr/share/glib-2.0/ 1987s drwxr-xr-x root/root 0 2026-02-06 01:41 ./usr/share/glib-2.0/schemas/ 1987s drwxr-xr-x root/root 0 2026-02-06 01:41 ./usr/share/lintian/ 1987s drwxr-xr-x root/root 0 2026-02-06 01:41 ./usr/share/lintian/overrides/ 1987s -rw-r--r-- root/root 520 2026-01-01 12:59 ./usr/share/lintian/overrides/libglib2.0-0t64 1987s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/powerpc64le-linux-gnu/libgio-2.0.so.0 -> libgio-2.0.so.0.8600.3 1987s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/powerpc64le-linux-gnu/libglib-2.0.so.0 -> libglib-2.0.so.0.8600.3 1987s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/powerpc64le-linux-gnu/libgmodule-2.0.so.0 -> libgmodule-2.0.so.0.8600.3 1987s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/powerpc64le-linux-gnu/libgobject-2.0.so.0 -> libgobject-2.0.so.0.8600.3 1987s lrwxrwxrwx root/root 0 2026-01-01 12:59 ./usr/lib/powerpc64le-linux-gnu/libgthread-2.0.so.0 -> libgthread-2.0.so.0.8600.3 1987s + apt-get -y install ./libglib2.0-0xyz.deb dconf-gsettings-backend gsettings-desktop-schemas 1987s Reading package lists... 1987s Building dependency tree... 1987s Reading state information... 1987s dconf-gsettings-backend is already the newest version (0.49.0-4). 1987s gsettings-desktop-schemas is already the newest version (50~alpha-1ubuntu1). 1987s Solving dependencies... 1987s The following additional packages will be installed: 1987s xdg-user-dirs 1987s Suggested packages: 1987s low-memory-monitor 1987s The following packages will be REMOVED: 1987s libglib2.0-0t64 1987s The following NEW packages will be installed: 1987s libglib2.0-0xyz xdg-user-dirs 1987s 0 upgraded, 2 newly installed, 1 to remove and 0 not upgraded. 1987s Need to get 20.9 kB/1870 kB of archives. 1987s After this operation, 213 kB of additional disk space will be used. 1987s Get:1 /tmp/tmp.svGCpgbJio/libglib2.0-0xyz.deb libglib2.0-0xyz ppc64el 2.86.3-4 [1849 kB] 1987s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el xdg-user-dirs ppc64el 0.19-1 [20.9 kB] 1988s Fetched 20.9 kB in 0s (284 kB/s) 1988s dpkg: libglib2.0-0t64:ppc64el: dependency problems, but removing anyway as you requested: 1988s udisks2 depends on libglib2.0-0t64 (>= 2.80.0). 1988s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0). 1988s python3-gi depends on libglib2.0-0t64 (>= 2.86.0-7~). 1988s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0). 1988s netplan.io depends on libglib2.0-0t64 (>= 2.70.0). 1988s netplan-generator depends on libglib2.0-0t64 (>= 2.16.0). 1988s libxmlb2:ppc64el depends on libglib2.0-0t64 (>= 2.54.0). 1988s libvolume-key1:ppc64el depends on libglib2.0-0t64 (>= 2.18.0). 1988s libudisks2-0:ppc64el depends on libglib2.0-0t64 (>= 2.83.0). 1988s libqrtr-glib0:ppc64el depends on libglib2.0-0t64 (>= 2.56). 1988s libqmi-proxy depends on libglib2.0-0t64 (>= 2.30.0). 1988s libqmi-glib5:ppc64el depends on libglib2.0-0t64 (>= 2.54.0). 1988s libpolkit-gobject-1-0:ppc64el depends on libglib2.0-0t64 (>= 2.38.0). 1988s libpolkit-agent-1-0:ppc64el depends on libglib2.0-0t64 (>= 2.38.0). 1988s libnetplan1:ppc64el depends on libglib2.0-0t64 (>= 2.76.0). 1988s libmm-glib0:ppc64el depends on libglib2.0-0t64 (>= 2.62.0). 1988s libmbim-proxy depends on libglib2.0-0t64 (>= 2.56). 1988s libmbim-glib4:ppc64el depends on libglib2.0-0t64 (>= 2.56). 1988s libjson-glib-1.0-0:ppc64el depends on libglib2.0-0t64 (>= 2.80.0). 1988s libjcat1:ppc64el depends on libglib2.0-0t64 (>= 2.80.0). 1988s libgudev-1.0-0:ppc64el depends on libglib2.0-0t64 (>= 2.80.0). 1988s libgirepository-2.0-0:ppc64el depends on libglib2.0-0t64 (= 2.86.3-4). 1988s libfwupd3:ppc64el depends on libglib2.0-0t64 (>= 2.80.0). 1988s libdconf1:ppc64el depends on libglib2.0-0t64 (>= 2.80.0). 1988s libblockdev3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2). 1988s libblockdev-utils3:ppc64el depends on libglib2.0-0t64 (>= 2.76.0). 1988s libblockdev-swap3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2). 1988s libblockdev-smart3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2). 1988s libblockdev-part3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2). 1988s libblockdev-nvme3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2). 1988s libblockdev-mdraid3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2). 1988s libblockdev-loop3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2). 1988s libblockdev-fs3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2). 1988s libblockdev-crypto3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2). 1988s gir1.2-glib-2.0:ppc64el depends on libglib2.0-0t64 (= 2.86.3-4). 1988s fwupd depends on libglib2.0-0t64 (>= 2.80.0). 1988s dconf-service depends on libglib2.0-0t64 (>= 2.83.0). 1988s dconf-gsettings-backend:ppc64el depends on libglib2.0-0t64 (>= 2.80.0). 1988s bolt depends on libglib2.0-0t64 (>= 2.80.0). 1988s 1988s (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 ... 82075 files and directories currently installed.) 1988s Removing libglib2.0-0t64:ppc64el (2.86.3-4) ... 1988s Selecting previously unselected package libglib2.0-0xyz:ppc64el. 1988s (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 ... 82056 files and directories currently installed.) 1988s Preparing to unpack .../libglib2.0-0xyz.deb ... 1988s Unpacking libglib2.0-0xyz:ppc64el (2.86.3-4) ... 1988s Selecting previously unselected package xdg-user-dirs. 1988s Preparing to unpack .../xdg-user-dirs_0.19-1_ppc64el.deb ... 1988s Unpacking xdg-user-dirs (0.19-1) ... 1988s Setting up xdg-user-dirs (0.19-1) ... 1989s Created symlink '/etc/systemd/user/graphical-session-pre.target.wants/xdg-user-dirs.service' → '/usr/lib/systemd/user/xdg-user-dirs.service'. 1989s Setting up libglib2.0-0xyz:ppc64el (2.86.3-4) ... 1989s Processing triggers for libc-bin (2.42-2ubuntu4) ... 1989s Processing triggers for man-db (2.13.1-1) ... 1990s ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1990s ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1990s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1990s + n=1 1990s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1990s + echo ok 1 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1990s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1990s + n=2 1990s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1990s + echo ok 2 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1990s ok 3 - test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s ok 4 - test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s ok 5 - test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s ok 6 - test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s + assert test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s + n=3 1990s + test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s + echo ok 3 - test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s + assert test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s + n=4 1990s + test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s + echo ok 4 - test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s + assert test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s + n=5 1990s + test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s + echo ok 5 - test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s + assert test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s + n=6 1990s + test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s + echo ok 6 - test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s + apt-get -y purge libglib2.0-0t64 1990s Reading package lists... 1990s Building dependency tree... 1990s Reading state information... 1990s Solving dependencies... 1990s The following packages will be REMOVED: 1990s libglib2.0-0t64* 1990s 0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded. 1990s After this operation, 0 B of additional disk space will be used. 1990s (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 ... 82090 files and directories currently installed.) 1990s Purging configuration files for libglib2.0-0t64:ppc64el (2.86.3-4) ... 1990s + assert test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xmlok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1990s 1990s + n=7 1990s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1990s + echo ok 7 - test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1990s + assert test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1990s + n=8 1990s + test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1990s + echo ok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiledok 8 - test -s /usr/share/glib-2.0/schemas/gschemas.compiled 1990s ok 9 - test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s ok 10 - test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s ok 11 - test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s ok 12 - test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s 1990s + assert test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s + n=9 1990s + test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s + echo ok 9 - test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s + assert test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s + n=10 1990s + test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s + echo ok 10 - test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1990s + assert test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s + n=11 1990s + test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s + echo ok 11 - test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s + assert test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s + n=12 1990s + test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s + echo ok 12 - test -s /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1990s + apt-get -y purge libglib2.0-0xyz 1991s Reading package lists... 1991s Building dependency tree... 1991s Reading state information... 1991s Solving dependencies... 1991s The following additional packages will be installed: 1991s libglib2.0-0t64 1991s Suggested packages: 1991s low-memory-monitor 1991s The following packages will be REMOVED: 1991s libglib2.0-0xyz* 1991s The following NEW packages will be installed: 1991s libglib2.0-0t64 1991s 0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded. 1991s Need to get 1849 kB of archives. 1991s After this operation, 0 B of additional disk space will be used. 1991s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el libglib2.0-0t64 ppc64el 2.86.3-4 [1849 kB] 1992s Fetched 1849 kB in 1s (3593 kB/s) 1992s dpkg: libglib2.0-0xyz:ppc64el: dependency problems, but removing anyway as you requested: 1992s udisks2 depends on libglib2.0-0t64 (>= 2.80.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s shared-mime-info depends on libglib2.0-0t64 (>= 2.76.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s python3-gi depends on libglib2.0-0t64 (>= 2.86.0-7~); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s python3-dbus depends on libglib2.0-0t64 (>= 2.16.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s netplan.io depends on libglib2.0-0t64 (>= 2.70.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s netplan-generator depends on libglib2.0-0t64 (>= 2.16.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libxmlb2:ppc64el depends on libglib2.0-0t64 (>= 2.54.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libvolume-key1:ppc64el depends on libglib2.0-0t64 (>= 2.18.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libudisks2-0:ppc64el depends on libglib2.0-0t64 (>= 2.83.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libqrtr-glib0:ppc64el depends on libglib2.0-0t64 (>= 2.56); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libqmi-proxy depends on libglib2.0-0t64 (>= 2.30.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libqmi-glib5:ppc64el depends on libglib2.0-0t64 (>= 2.54.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libpolkit-gobject-1-0:ppc64el depends on libglib2.0-0t64 (>= 2.38.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libpolkit-agent-1-0:ppc64el depends on libglib2.0-0t64 (>= 2.38.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libnetplan1:ppc64el depends on libglib2.0-0t64 (>= 2.76.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libmm-glib0:ppc64el depends on libglib2.0-0t64 (>= 2.62.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libmbim-proxy depends on libglib2.0-0t64 (>= 2.56); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libmbim-glib4:ppc64el depends on libglib2.0-0t64 (>= 2.56); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libjson-glib-1.0-0:ppc64el depends on libglib2.0-0t64 (>= 2.80.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libjcat1:ppc64el depends on libglib2.0-0t64 (>= 2.80.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libgudev-1.0-0:ppc64el depends on libglib2.0-0t64 (>= 2.80.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libgirepository-2.0-0:ppc64el depends on libglib2.0-0t64 (= 2.86.3-4); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libfwupd3:ppc64el depends on libglib2.0-0t64 (>= 2.80.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libdconf1:ppc64el depends on libglib2.0-0t64 (>= 2.80.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libblockdev3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libblockdev-utils3:ppc64el depends on libglib2.0-0t64 (>= 2.76.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libblockdev-swap3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libblockdev-smart3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libblockdev-part3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libblockdev-nvme3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libblockdev-mdraid3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libblockdev-loop3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libblockdev-fs3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s libblockdev-crypto3:ppc64el depends on libglib2.0-0t64 (>= 2.42.2); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s gir1.2-glib-2.0:ppc64el depends on libglib2.0-0t64 (= 2.86.3-4); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s fwupd depends on libglib2.0-0t64 (>= 2.80.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s dconf-service depends on libglib2.0-0t64 (>= 2.83.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s dconf-gsettings-backend:ppc64el depends on libglib2.0-0t64 (>= 2.80.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s bolt depends on libglib2.0-0t64 (>= 2.80.0); however: 1992s Package libglib2.0-0t64 is not installed. 1992s Package libglib2.0-0xyz:ppc64el which provides libglib2.0-0t64 is to be removed. 1992s 1992s (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 ... 82090 files and directories currently installed.) 1992s Removing libglib2.0-0xyz:ppc64el (2.86.3-4) ... 1992s Selecting previously unselected package libglib2.0-0t64:ppc64el. 1992s (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 ... 82071 files and directories currently installed.) 1992s Preparing to unpack .../libglib2.0-0t64_2.86.3-4_ppc64el.deb ... 1992s Unpacking libglib2.0-0t64:ppc64el (2.86.3-4) ... 1992s Setting up libglib2.0-0t64:ppc64el (2.86.3-4) ... 1992s Processing triggers for libc-bin (2.42-2ubuntu4) ... 1992s (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 ... 82090 files and directories currently installed.) 1992s Purging configuration files for libglib2.0-0xyz:ppc64el (2.86.3-4) ... 1993s not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1993s not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1993s + assert_not test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1993s + n=13 1993s + test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1993s + echo not ok 13 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/org.gnome.desktop.interface.gschema.xml 1993s + failed=1 1993s + assert_not test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1993s + n=14 1993s + test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1993s + echo not ok 14 - should not have succeeded: test -e /usr/share/glib-2.0/schemas/gschemas.compiled 1993s + failed=1 1993s + assert_not test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1993s + not ok 15 - should not have succeeded: test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1993s not ok 16 - should not have succeeded: test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1993s 1..16 1993s n=15 1993s + test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1993s + echo not ok 15 - should not have succeeded: test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/libdconfsettings.so 1993s + failed=1 1993s + assert_not test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1993s + n=16 1993s + test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1993s + echo not ok 16 - should not have succeeded: test -e /usr/lib/powerpc64le-linux-gnu/gio/modules/giomodule.cache 1993s + failed=1 1993s + echo 1..16 1993s + exit 1 1993s autopkgtest [01:41:19]: test 1065022-futureproofing: -----------------------] 1993s autopkgtest [01:41:19]: test 1065022-futureproofing: - - - - - - - - - - results - - - - - - - - - - 1993s 1065022-futureproofing FLAKY non-zero exit status 1 1994s autopkgtest [01:41:20]: @@@@@@@@@@@@@@@@@@@@ summary 1994s build PASS (superficial) 1994s build-static PASS (superficial) 1994s girepository-tools PASS (superficial) 1994s libgio-2.0-dev-bin PASS (superficial) 1994s libglib2.0-dev PASS (superficial) 1994s installed-tests PASS 1994s closure-refcount PASS 1994s debugcontroller PASS 1994s gdbus-server-auth PASS 1994s gdbus-threading PASS 1994s gmenumodel PASS 1994s mainloop PASS 1994s memory-monitor-dbus PASS 1994s socket PASS 1994s testfilemonitor PASS 1994s thread-pool-slow PASS 1994s threadtests PASS 1994s timeout PASS 1994s timer PASS 1994s 1065022-futureproofing FLAKY non-zero exit status 1